Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » Exception in Birt while loading class in Google Analytics client library(Loading some Google Analytics class when using Scripted data source causing NPE)
Exception in Birt while loading class in Google Analytics client library [message #639706] Wed, 17 November 2010 14:37 Go to next message
marko13  is currently offline marko13 Friend
Messages: 5
Registered: November 2010
Junior Member
Hi all!

I'm trying to make a report in Birt 2.6.2 which will present data fetched from Google Analytics service. From forum messages and documentation, I've concluded that scription data source should be used for this purpose.

I developed a java class which logs in to GA and fetches data. This class has dependancies to GA client libraries. I've put this class and libs into scriptlib folder and I also included GA libs on Report Designer classpath.

Java class is instantiated in "open" method for a data set.
The problem occures when class instatiates one of the Google's classes from GA client lib when report is run in Report Designer.

This is the stacktrace of the exception:
org.eclipse.birt.report.service.api.ReportServiceException: Error happened while running the report.
   at org.eclipse.birt.report.service.ReportEngineService.throwDummyException(ReportEngineService.java:1097)
   at org.eclipse.birt.report.service.ReportEngineService.runAndRenderReport(ReportEngineService.java:926)
   at org.eclipse.birt.report.service.BirtViewerReportService.runAndRenderReport(BirtViewerReportService.java:973)
   at org.eclipse.birt.report.service.actionhandler.BirtGetPageAllActionHandler.__execute(BirtGetPageAllActionHandler.java:131)
   at org.eclipse.birt.report.service.actionhandler.AbstractBaseActionHandler.execute(AbstractBaseActionHandler.java:90)
   at org.eclipse.birt.report.soapengine.processor.AbstractBaseDocumentProcessor.__executeAction(AbstractBaseDocumentProcessor.java:47)
   at org.eclipse.birt.report.soapengine.processor.AbstractBaseComponentProcessor.executeAction(AbstractBaseComponentProcessor.java:143)
   at org.eclipse.birt.report.soapengine.processor.BirtDocumentProcessor.handleGetPageAll(BirtDocumentProcessor.java:183)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
   at java.lang.reflect.Method.invoke(Unknown Source)
   at org.eclipse.birt.report.soapengine.processor.AbstractBaseComponentProcessor.process(AbstractBaseComponentProcessor.java:112)
   at org.eclipse.birt.report.soapengine.endpoint.BirtSoapBindingImpl.getUpdatedObjects(BirtSoapBindingImpl.java:66)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
   at java.lang.reflect.Method.invoke(Unknown Source)
   at org.apache.axis.providers.java.RPCProvider.invokeMethod(RPCProvider.java:397)
   at org.apache.axis.providers.java.RPCProvider.processMessage(RPCProvider.java:186)
   at org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider.java:323)
   at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
   at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
   at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
   at org.apache.axis.handlers.soap.SOAPService.invoke(SOAPService.java:454)
   at org.apache.axis.server.AxisServer.invoke(AxisServer.java:281)
   at org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:699)
   at org.eclipse.birt.report.servlet.BirtSoapMessageDispatcherServlet.doPost(BirtSoapMessageDispatcherServlet.java:265)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
   at org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:327)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
   at org.eclipse.birt.report.servlet.BirtSoapMessageDispatcherServlet.service(BirtSoapMessageDispatcherServlet.java:122)
   at org.eclipse.equinox.http.registry.internal.ServletManager$ServletWrapper.service(ServletManager.java:180)
   at org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:61)
   at org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:126)
   at org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:60)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
   at org.eclipse.equinox.http.jetty.internal.HttpServerManager$InternalHttpServiceServlet.service(HttpServerManager.java:318)
   at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)
   at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:390)
   at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
   at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
   at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
   at org.mortbay.jetty.Server.handle(Server.java:326)
   at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542)
   at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:939)
   at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:756)
   at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212)
   at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
   at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409)
   at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)
Caused by: org.eclipse.birt.report.engine.api.EngineException: Error happened while running the report.
   at org.eclipse.birt.report.engine.api.impl.RunAndRenderTask.doRun(RunAndRenderTask.java:209)
   at org.eclipse.birt.report.engine.api.impl.RunAndRenderTask.run(RunAndRenderTask.java:77)
   at org.eclipse.birt.report.service.ReportEngineService.runAndRenderReport(ReportEngineService.java:920)
... 49 more
Caused by: java.lang.ExceptionInInitializerError
   at bumblehood.reporting.GoogleAnalyticsDataFetcher.(GoogleAnalyticsDataFetcher.java:61)
   at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
   at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
   at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
   at java.lang.reflect.Constructor.newInstance(Unknown Source)
   at org.mozilla.javascript.MemberBox.newInstance(MemberBox.java:194)
   at org.mozilla.javascript.NativeJavaClass.constructSpecific(NativeJavaClass.java:281)
   at org.mozilla.javascript.NativeJavaClass.construct(NativeJavaClass.java:200)
   at org.mozilla.javascript.ScriptRuntime.newObject(ScriptRuntime.java:2327)
   at org.mozilla.javascript.gen.c10._c1(:3)
   at org.mozilla.javascript.gen.c10.call()
   at org.mozilla.javascript.optimizer.OptRuntime.callName0(OptRuntime.java:108)
   at org.mozilla.javascript.gen.c11._c0(:0)
   at org.mozilla.javascript.gen.c11.call()
   at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:398)
   at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3065)
   at org.mozilla.javascript.gen.c11.call()
   at org.mozilla.javascript.gen.c11.exec()
   at org.eclipse.birt.core.script.JavascriptEvalUtil.evaluateRawScript(JavascriptEvalUtil.java:95)
   at org.eclipse.birt.core.script.JavascriptEvalUtil.evaluateScript(JavascriptEvalUtil.java:134)
   at org.eclipse.birt.data.engine.script.ScriptEvalUtil.evaluateJSAsExpr(ScriptEvalUtil.java:1001)
   at org.eclipse.birt.data.engine.script.JSMethodRunner.runScript(JSMethodRunner.java:76)
   at org.eclipse.birt.report.engine.script.internal.DtEScriptExecutor.handleJS(DtEScriptExecutor.java:90)
   at org.eclipse.birt.report.engine.script.internal.DataSetScriptExecutor.handleJS(DataSetScriptExecutor.java:219)
   at org.eclipse.birt.report.engine.script.internal.ScriptDataSetScriptExecutor.handleOpen(ScriptDataSetScriptExecutor.java:88)
   at org.eclipse.birt.data.engine.impl.ScriptDataSetRuntime.open(ScriptDataSetRuntime.java:80)
   at org.eclipse.birt.data.engine.impl.PreparedScriptDSQuery$ScriptDSQueryExecutor$CustomDataSet.open(PreparedScriptDSQuery.java:247)
   at org.eclipse.birt.data.engine.impl.PreparedScriptDSQuery$ScriptDSQueryExecutor.executeOdiQuery(PreparedScriptDSQuery.java:223)
   at org.eclipse.birt.data.engine.impl.QueryExecutor.execute(QueryExecutor.java:1094)
   at org.eclipse.birt.data.engine.impl.ServiceForQueryResults.executeQuery(ServiceForQueryResults.java:232)
   at org.eclipse.birt.data.engine.impl.QueryResults.getResultIterator(QueryResults.java:172)
   at org.eclipse.birt.report.engine.data.dte.QueryResultSet.(QueryResultSet.java:98)
   at org.eclipse.birt.report.engine.data.dte.DteDataEngine.doExecuteQuery(DteDataEngine.java:168)
   at org.eclipse.birt.report.engine.data.dte.AbstractDataEngine.execute(AbstractDataEngine.java:265)
   at org.eclipse.birt.report.engine.executor.ExecutionContext.executeQuery(ExecutionContext.java:1876)
   at org.eclipse.birt.report.engine.executor.QueryItemExecutor.executeQuery(QueryItemExecutor.java:80)
   at org.eclipse.birt.report.engine.executor.TableItemExecutor.execute(TableItemExecutor.java:62)
   at org.eclipse.birt.report.engine.internal.executor.dup.SuppressDuplicateItemExecutor.execute(SuppressDuplicateItemExecutor.java:43)
   at org.eclipse.birt.report.engine.internal.executor.wrap.WrappedReportItemExecutor.execute(WrappedReportItemExecutor.java:46)
   at org.eclipse.birt.report.engine.internal.executor.l18n.LocalizedReportItemExecutor.execute(LocalizedReportItemExecutor.java:34)
   at org.eclipse.birt.report.engine.layout.html.HTMLBlockStackingLM.layoutNodes(HTMLBlockStackingLM.java:65)
   at org.eclipse.birt.report.engine.layout.html.HTMLPageLM.layout(HTMLPageLM.java:90)
   at org.eclipse.birt.report.engine.layout.html.HTMLReportLayoutEngine.layout(HTMLReportLayoutEngine.java:99)
   at org.eclipse.birt.report.engine.api.impl.RunAndRenderTask.doRun(RunAndRenderTask.java:180)
... 51 more
Caused by: java.lang.NullPointerException
   at com.google.gdata.client.Service.(Service.java:97)
... 95 more


The java code for root NPE is:

	public class Service {

		private static final String SERVICE_VERSION =
		  "GData-Java/" + Service.class.getPackage().getImplementationVersion() // <------ THIS IS LINE WHICH THROWS NPE
			  + "(gzip)"; // Necessary to get GZIP encoded responses
			  
	....


Does anyone understands why this line causes NPE?

Thanks,
Marko

[Updated on: Wed, 17 November 2010 14:57]

Report message to a moderator

Re: Exception while loading class in Google Analytics client library [message #639774 is a reply to message #639706] Wed, 17 November 2010 17:47 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

Marko,

in the designer can you remove the jars from the script lib and just try
adding them to the project classpath?

Jason

On 11/17/2010 9:37 AM, marko13 wrote:
> Hi all!
>
> I'm trying to make a report in Birt 2.6.2 which will present data
> fetched from Google Analytics service. From forum messages and
> documentation, I've concluded that scription data source should be used
> for this purpose.
> I developed a java class which logs in to GA and fetches data. This
> class has dependancies to GA client libraries. I've put this class and
> libs into scriptlib folder and I also included GA libs on Report
> Designer classpath.
>
> Java class is instantiated in "open" method for a data set.
> The problem occures when class instatiates one of the Google's classes
> from GA client lib when report is run in Report Designer.
>
> This is the stacktrace of the exception:
>
> org.eclipse.birt.report.service.api.ReportServiceException: Error
> happened while running the report.
> at
> org.eclipse.birt.report.service.ReportEngineService.throwDum myException(ReportEngineService.java:1097)
>
> at
> org.eclipse.birt.report.service.ReportEngineService.runAndRe nderReport(ReportEngineService.java:926)
>
> at
> org.eclipse.birt.report.service.BirtViewerReportService.runA ndRenderReport(BirtViewerReportService.java:973)
>
> at
> org.eclipse.birt.report.service.actionhandler.BirtGetPageAll ActionHandler.__execute(BirtGetPageAllActionHandler.java:131 )
>
> at
> org.eclipse.birt.report.service.actionhandler.AbstractBaseAc tionHandler.execute(AbstractBaseActionHandler.java:90)
>
> at
> org.eclipse.birt.report.soapengine.processor.AbstractBaseDoc umentProcessor.__executeAction(AbstractBaseDocumentProcessor .java:47)
>
> at
> org.eclipse.birt.report.soapengine.processor.AbstractBaseCom ponentProcessor.executeAction(AbstractBaseComponentProcessor .java:143)
>
> at
> org.eclipse.birt.report.soapengine.processor.BirtDocumentPro cessor.handleGetPageAll(BirtDocumentProcessor.java:183)
>
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> at java.lang.reflect.Method.invoke(Unknown Source)
> at
> org.eclipse.birt.report.soapengine.processor.AbstractBaseCom ponentProcessor.process(AbstractBaseComponentProcessor.java: 112)
>
> at
> org.eclipse.birt.report.soapengine.endpoint.BirtSoapBindingI mpl.getUpdatedObjects(BirtSoapBindingImpl.java:66)
>
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> at java.lang.reflect.Method.invoke(Unknown Source)
> at
> org.apache.axis.providers.java.RPCProvider.invokeMethod(RPCP rovider.java:397)
>
> at
> org.apache.axis.providers.java.RPCProvider.processMessage(RP CProvider.java:186)
>
> at
> org.apache.axis.providers.java.JavaProvider.invoke(JavaProvi der.java:323)
> at
> org.apache.axis.strategies.InvocationStrategy.visit(Invocati onStrategy.java:32)
>
> at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
> at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
> at org.apache.axis.handlers.soap.SOAPService.invoke(SOAPService .java:454)
> at org.apache.axis.server.AxisServer.invoke(AxisServer.java:281 )
> at org.apache.axis.transport.http.AxisServlet.doPost(AxisServle t.java:699)
> at
> org.eclipse.birt.report.servlet.BirtSoapMessageDispatcherSer vlet.doPost(BirtSoapMessageDispatcherServlet.java:265)
>
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
> at
> org.apache.axis.transport.http.AxisServletBase.service(AxisS ervletBase.java:327)
>
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
> at
> org.eclipse.birt.report.servlet.BirtSoapMessageDispatcherSer vlet.service(BirtSoapMessageDispatcherServlet.java:122)
>
> at
> org.eclipse.equinox.http.registry.internal.ServletManager$Se rvletWrapper.service(ServletManager.java:180)
>
> at
> org.eclipse.equinox.http.servlet.internal.ServletRegistratio n.service(ServletRegistration.java:61)
>
> at
> org.eclipse.equinox.http.servlet.internal.ProxyServlet.proce ssAlias(ProxyServlet.java:126)
>
> at
> org.eclipse.equinox.http.servlet.internal.ProxyServlet.servi ce(ProxyServlet.java:60)
>
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
> at
> org.eclipse.equinox.http.jetty.internal.HttpServerManager$In ternalHttpServiceServlet.service(HttpServerManager.java:318)
>
> at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder .java:511)
> at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandl er.java:390)
> at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandl er.java:182)
> at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandl er.java:765)
> at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapp er.java:152)
> at org.mortbay.jetty.Server.handle(Server.java:326)
> at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnectio n.java:542)
> at
> org.mortbay.jetty.HttpConnection$RequestHandler.content(Http Connection.java:939)
>
> at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:756)
> at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java: 212)
> at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java: 404)
> at
> org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEn dPoint.java:409)
>
> at
> org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThr eadPool.java:582)
>
> Caused by: org.eclipse.birt.report.engine.api.EngineException: Error
> happened while running the report.
> at
> org.eclipse.birt.report.engine.api.impl.RunAndRenderTask.doR un(RunAndRenderTask.java:209)
>
> at
> org.eclipse.birt.report.engine.api.impl.RunAndRenderTask.run (RunAndRenderTask.java:77)
>
> at
> org.eclipse.birt.report.service.ReportEngineService.runAndRe nderReport(ReportEngineService.java:920)
>
> ... 49 more
> Caused by: java.lang.ExceptionInInitializerError
> at
> bumblehood.reporting.GoogleAnalyticsDataFetcher.(GoogleAnaly ticsDataFetcher.java:61)
>
> at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Nativ e Method)
> at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknow n Source)
> at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Un known
> Source)
> at java.lang.reflect.Constructor.newInstance(Unknown Source)
> at org.mozilla.javascript.MemberBox.newInstance(MemberBox.java: 194)
> at
> org.mozilla.javascript.NativeJavaClass.constructSpecific(Nat iveJavaClass.java:281)
>
> at
> org.mozilla.javascript.NativeJavaClass.construct(NativeJavaC lass.java:200)
> at org.mozilla.javascript.ScriptRuntime.newObject(ScriptRuntime .java:2327)
> at org.mozilla.javascript.gen.c10._c1(:3)
> at org.mozilla.javascript.gen.c10.call()
> at
> org.mozilla.javascript.optimizer.OptRuntime.callName0(OptRun time.java:108)
> at org.mozilla.javascript.gen.c11._c0(:0)
> at org.mozilla.javascript.gen.c11.call()
> at org.mozilla.javascript.ContextFactory.doTopCall(ContextFacto ry.java:398)
> at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime .java:3065)
> at org.mozilla.javascript.gen.c11.call()
> at org.mozilla.javascript.gen.c11.exec()
> at
> org.eclipse.birt.core.script.JavascriptEvalUtil.evaluateRawS cript(JavascriptEvalUtil.java:95)
>
> at
> org.eclipse.birt.core.script.JavascriptEvalUtil.evaluateScri pt(JavascriptEvalUtil.java:134)
>
> at
> org.eclipse.birt.data.engine.script.ScriptEvalUtil.evaluateJ SAsExpr(ScriptEvalUtil.java:1001)
>
> at
> org.eclipse.birt.data.engine.script.JSMethodRunner.runScript (JSMethodRunner.java:76)
>
> at
> org.eclipse.birt.report.engine.script.internal.DtEScriptExec utor.handleJS(DtEScriptExecutor.java:90)
>
> at
> org.eclipse.birt.report.engine.script.internal.DataSetScript Executor.handleJS(DataSetScriptExecutor.java:219)
>
> at
> org.eclipse.birt.report.engine.script.internal.ScriptDataSet ScriptExecutor.handleOpen(ScriptDataSetScriptExecutor.java:8 8)
>
> at
> org.eclipse.birt.data.engine.impl.ScriptDataSetRuntime.open( ScriptDataSetRuntime.java:80)
>
> at
> org.eclipse.birt.data.engine.impl.PreparedScriptDSQuery$Scri ptDSQueryExecutor$CustomDataSet.open(PreparedScriptDSQuery.j ava:247)
>
> at
> org.eclipse.birt.data.engine.impl.PreparedScriptDSQuery$Scri ptDSQueryExecutor.executeOdiQuery(PreparedScriptDSQuery.java :223)
>
> at
> org.eclipse.birt.data.engine.impl.QueryExecutor.execute(Quer yExecutor.java:1094)
>
> at
> org.eclipse.birt.data.engine.impl.ServiceForQueryResults.exe cuteQuery(ServiceForQueryResults.java:232)
>
> at
> org.eclipse.birt.data.engine.impl.QueryResults.getResultIter ator(QueryResults.java:172)
>
> at
> org.eclipse.birt.report.engine.data.dte.QueryResultSet.(Quer yResultSet.java:98)
>
> at
> org.eclipse.birt.report.engine.data.dte.DteDataEngine.doExec uteQuery(DteDataEngine.java:168)
>
> at
> org.eclipse.birt.report.engine.data.dte.AbstractDataEngine.e xecute(AbstractDataEngine.java:265)
>
> at
> org.eclipse.birt.report.engine.executor.ExecutionContext.exe cuteQuery(ExecutionContext.java:1876)
>
> at
> org.eclipse.birt.report.engine.executor.QueryItemExecutor.ex ecuteQuery(QueryItemExecutor.java:80)
>
> at
> org.eclipse.birt.report.engine.executor.TableItemExecutor.ex ecute(TableItemExecutor.java:62)
>
> at
> org.eclipse.birt.report.engine.internal.executor.dup.Suppres sDuplicateItemExecutor.execute(SuppressDuplicateItemExecutor .java:43)
>
> at
> org.eclipse.birt.report.engine.internal.executor.wrap.Wrappe dReportItemExecutor.execute(WrappedReportItemExecutor.java:4 6)
>
> at
> org.eclipse.birt.report.engine.internal.executor.l18n.Locali zedReportItemExecutor.execute(LocalizedReportItemExecutor.ja va:34)
>
> at
> org.eclipse.birt.report.engine.layout.html.HTMLBlockStacking LM.layoutNodes(HTMLBlockStackingLM.java:65)
>
> at
> org.eclipse.birt.report.engine.layout.html.HTMLPageLM.layout (HTMLPageLM.java:90)
>
> at
> org.eclipse.birt.report.engine.layout.html.HTMLReportLayoutE ngine.layout(HTMLReportLayoutEngine.java:99)
>
> at
> org.eclipse.birt.report.engine.api.impl.RunAndRenderTask.doR un(RunAndRenderTask.java:180)
>
> ... 51 more
> Caused by: java.lang.NullPointerException
> at com.google.gdata.client.Service.(Service.java:97)
> ... 95 more
>
>
> The java code for root NPE is:
>
>
> public class Service {
>
> private static final String SERVICE_VERSION =
> "GData-Java/" + Service.class.getPackage().getImplementationVersion() //
> <------ THIS IS LINE WHICH THROWS NPE
> + "(gzip)"; // Necessary to get GZIP encoded responses
> ....
>
>
> Does anyone understands why this line causes NPE?
>
> Thanks,
> Marko
Re: Exception in Birt while loading class in Google Analytics client library [message #639878 is a reply to message #639706] Thu, 18 November 2010 09:05 Go to previous messageGo to next message
marko13  is currently offline marko13 Friend
Messages: 5
Registered: November 2010
Junior Member
Jason,

I removed the jars from birt viewer plugin's scriptlib folder as you suggested and then I got ClassNotFoundException.

Caused by: java.lang.ClassNotFoundException: com.google.gdata.util.AuthenticationException
   at org.eclipse.birt.core.framework.URLClassLoader.findClass1(URLClassLoader.java:185)
   at org.eclipse.birt.core.framework.URLClassLoader$1.run(URLClassLoader.java:154)
   at org.eclipse.birt.core.framework.URLClassLoader$1.run(URLClassLoader.java:1)
   at java.security.AccessController.doPrivileged(Native Method)
   at org.eclipse.birt.core.framework.URLClassLoader.findClass(URLClassLoader.java:149)
   at java.lang.ClassLoader.loadClass(Unknown Source)
   at java.lang.ClassLoader.loadClass(Unknown Source)
... 102 more


I did include jars in project classpath in Preferences -> Report Design -> Classpath

[Updated on: Thu, 18 November 2010 09:06]

Report message to a moderator

Re: Exception in Birt while loading class in Google Analytics client library [message #639976 is a reply to message #639878] Thu, 18 November 2010 15:05 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

Are the jars in a separate project or the report project? What version
of BIRT are you using? Any chance you could email me the jars and the
report?

Jason

On 11/18/2010 4:05 AM, marko13 wrote:
> Jason,
>
> I removed the jars from birt vierwer plugin's scriptlib folder and then
> I got ClassNotFoundException.
>
> Caused by: java.lang.ClassNotFoundException:
> com.google.gdata.util.AuthenticationException
> at
> org.eclipse.birt.core.framework.URLClassLoader.findClass1(UR LClassLoader.java:185)
>
> at
> org.eclipse.birt.core.framework.URLClassLoader$1.run(URLClas sLoader.java:154)
>
> at
> org.eclipse.birt.core.framework.URLClassLoader$1.run(URLClas sLoader.java:1)
> at java.security.AccessController.doPrivileged(Native Method)
> at
> org.eclipse.birt.core.framework.URLClassLoader.findClass(URL ClassLoader.java:149)
>
> at java.lang.ClassLoader.loadClass(Unknown Source)
> at java.lang.ClassLoader.loadClass(Unknown Source)
> ... 102 more
> I did include jars in project classpath in Preferences -> Report Design
> -> Classpath
>
Re: Exception in Birt while loading class in Google Analytics client library [message #639989 is a reply to message #639976] Thu, 18 November 2010 15:46 Go to previous messageGo to next message
marko13  is currently offline marko13 Friend
Messages: 5
Registered: November 2010
Junior Member
I'm using RPC Designer, version 2.6.1. I belive that jars are added to the project (not separate project).

I can send you the report and the jars. Just tell me on which email address, since email sending on forum is disabled,

Marko

[Updated on: Thu, 18 November 2010 15:46]

Report message to a moderator

Re: Exception in Birt while loading class in Google Analytics client library [message #639996 is a reply to message #639989] Thu, 18 November 2010 15:50 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

jasonweathersby at windstream dot net

On 11/18/2010 10:46 AM, marko13 wrote:
> I'm using RPC Designer, version 2.6.1. I belive that jars are added to
> the project (not separate project).
>
> I can send you the report and the jars. Just tell me on which email
> address, since email sending on forum is disabled
Re: Exception in Birt while loading class in Google Analytics client library [message #640960 is a reply to message #639996] Tue, 23 November 2010 17:04 Go to previous messageGo to next message
Meghan Missing name is currently offline Meghan Missing nameFriend
Messages: 16
Registered: November 2010
Junior Member
Was this issue resolved? I'm trying to do the exact same thing and would love to see this as an example.

Thank you.
Re: Exception in Birt while loading class in Google Analytics client library [message #640977 is a reply to message #640960] Tue, 23 November 2010 17:52 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

Meghan,

I go the classpath stuff working but got authentication problems when
trying to login to google. Take a look at this blog post to see how to
handle the classpath in the designer:
http://birtworld.blogspot.com/2009/12/birt-designer-classpat h-changes.html

Try creating a java project in the same workspace as the report project
and then add the java project to the classpath of the report project in
the preferences. If you have an example of a working java client I
could build you an example of this.

Jason

On 11/23/2010 12:04 PM, Meghan wrote:
> Was this issue resolved? I'm trying to do the exact same thing and
> would love to see this as an example.
>
> Thank you.
Re: Exception in Birt while loading class in Google Analytics client library [message #640999 is a reply to message #640977] Tue, 23 November 2010 19:45 Go to previous messageGo to next message
Meghan Missing name is currently offline Meghan Missing nameFriend
Messages: 16
Registered: November 2010
Junior Member
Jason,

Thanks for your quick reply. Unfortunately I am very new to BIRT and more importantly unfamiliar with JAVA. I was hoping to work from this report as an example and learn what components I needed to create in order to tap into my Google Analytics account. Any ideas on where to even start?
Re: Exception in Birt while loading class in Google Analytics client library [message #641212 is a reply to message #640999] Wed, 24 November 2010 14:50 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

I will try to put an example together in a day or two.

Jason

On 11/23/2010 2:45 PM, Meghan wrote:
> Jason,
> Thanks for your quick reply. Unfortunately I am very new to BIRT and
> more importantly unfamiliar with JAVA. I was hoping to work from this
> report as an example and learn what components I needed to create in
> order to tap into my Google Analytics account. Any ideas on where to
> even start?
Re: Exception in Birt while loading class in Google Analytics client library [message #645877 is a reply to message #641212] Mon, 20 December 2010 22:00 Go to previous messageGo to next message
Meghan Missing name is currently offline Meghan Missing nameFriend
Messages: 16
Registered: November 2010
Junior Member
Jason,

Any luck on getting an example? Just wanted to follow up.

Thanks.

Meghan
Re: Exception in Birt while loading class in Google Analytics client library [message #645999 is a reply to message #645877] Tue, 21 December 2010 14:22 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

Meghan,

Thanks for reminding me. I will try to get a blog on this up shortly.

Jason

On 12/20/2010 5:00 PM, Meghan wrote:
> Jason,
>
> Any luck on getting an example? Just wanted to follow up.
>
> Thanks.
>
> Meghan
Re: Exception in Birt while loading class in Google Analytics client library [message #646246 is a reply to message #645999] Wed, 22 December 2010 21:01 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

Meghan,

I went through building an example but I am still having issues with the
classpath. Once I get that worked out I will post something.

Jason

On 12/21/2010 9:22 AM, Jason Weathersby wrote:
> Meghan,
>
> Thanks for reminding me. I will try to get a blog on this up shortly.
>
> Jason
>
> On 12/20/2010 5:00 PM, Meghan wrote:
>> Jason,
>>
>> Any luck on getting an example? Just wanted to follow up.
>>
>> Thanks.
>>
>> Meghan
>
Re: Exception in Birt while loading class in Google Analytics client library [message #667183 is a reply to message #646246] Wed, 27 April 2011 09:15 Go to previous messageGo to next message
piratejackus is currently offline piratejackusFriend
Messages: 13
Registered: April 2011
Junior Member
Hello,

I'm trying to use Google Analytics as a data source in my report and i would like to follow an example. So, Is there any progress on this issue?

Thanks.

[Updated on: Wed, 27 April 2011 09:16]

Report message to a moderator

Re: Exception in Birt while loading class in Google Analytics client library [message #667264 is a reply to message #667183] Wed, 27 April 2011 17:49 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

I have an example built but I have not written up yet. I will try to do
this tomorrow. The only issue I have is that the example uses my
private google account settings. What issue are you having?

Jason

On 4/27/2011 5:15 AM, piratejackus wrote:
> Hello Jason,
>
> I'm trying to use Google Analytics as a data source in my report and i
> would like to follow an example. So, Is there any progress on this issue?
>
> Thanks.
>
> [quote title=Jason Weathersby wrote on Wed, 22 December 2010 16:01]Meghan,
>
> I went through building an example but I am still having issues with the
> classpath. Once I get that worked out I will post something.
>
> Jason
Re: Exception in Birt while loading class in Google Analytics client library [message #667273 is a reply to message #667264] Wed, 27 April 2011 19:14 Go to previous messageGo to next message
piratejackus is currently offline piratejackusFriend
Messages: 13
Registered: April 2011
Junior Member
i found a fine example which gave me an idea. I was having an issue with connecting report script and java objects, but i made it.

Thank you for your reponse Jason.

the useful link that i found is on my other computer, i will paste it here if i don't forget (:

[quote title=Jason Weathersby wrote on Wed, 27 April 2011 19:49]I have an example built but I have not written up yet. I will try to do
this tomorrow. The only issue I have is that the example uses my
private google account settings. What issue are you having?

Jason

On 4/27/2011 5:15 AM, piratejackus wrote:
> Hello Jason,
>
> I'm trying to use Google Analytics as a data source in my report and i
> would like to follow an example. So, Is there any progress on this issue?
>
> Thanks.
>
>
Jason Weathersby wrote on Wed, 22 December 2010 16:01
Meghan,
>
> I went through building an example but I am still having issues with the
> classpath. Once I get that worked out I will post something.
>
> Jason

[Updated on: Wed, 27 April 2011 21:55]

Report message to a moderator

Re: Exception in Birt while loading class in Google Analytics client library [message #667281 is a reply to message #667273] Wed, 27 April 2011 20:16 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

I went back through my example and realized that I did not get this to
work. There is a class loader issue with one of the Google static
variables. Did you get your example to work?

Jason

On 4/27/2011 3:14 PM, piratejackus wrote:
> i found a fine example which gave me an idea. I was having an issue with
> connecting report script and java objects, but i made it.
> Thank you for your reponse Jason.
>
> the useful link that i found is on my other computer, i will paste it
> here i don't forget (:
>
> [quote title=Jason Weathersby wrote on Wed, 27 April 2011 19:49]I have
> an example built but I have not written up yet. I will try to do this
> tomorrow. The only issue I have is that the example uses my private
> google account settings. What issue are you having?
>
> Jason
>
> On 4/27/2011 5:15 AM, piratejackus wrote:
>> Hello Jason,
>>
>> I'm trying to use Google Analytics as a data source in my report and i
>> would like to follow an example. So, Is there any progress on this issue?
>>
>> Thanks.
>>
>> Jason Weathersby wrote on Wed, 22 December 2010 16:01
>> Meghan,
>> >
>> > I went through building an example but I am still having issues with
>> the
>> > classpath. Once I get that worked out I will post something.
>> >
>> > Jason
>
>
Re: Exception in Birt while loading class in Google Analytics client library [message #667296 is a reply to message #667281] Wed, 27 April 2011 21:53 Go to previous messageGo to next message
piratejackus is currently offline piratejackusFriend
Messages: 13
Registered: April 2011
Junior Member
Hi Jason,

I can make queries in google analytics and pass the data to my objects and then use them with the javascript (Report Scripting tool) in the reports. More simply; i can use google analytics with POJO s, as a scripted data source, in my reports.

If you like, i can give you a more detailed information on my basic project tomorrow (after about 9-10 hours). I didn't have any big problems with that.

Just let me know.

Jason Weathersby wrote on Wed, 27 April 2011 22:16
I went back through my example and realized that I did not get this to
work. There is a class loader issue with one of the Google static
variables. Did you get your example to work?

Jason

On 4/27/2011 3:14 PM, piratejackus wrote:
> i found a fine example which gave me an idea. I was having an issue with
> connecting report script and java objects, but i made it.
> Thank you for your reponse Jason.
>
> the useful link that i found is on my other computer, i will paste it
> here i don't forget (:
>
>
Jason Weathersby wrote on Wed, 27 April 2011 19:49
I have
> an example built but I have not written up yet. I will try to do this
> tomorrow. The only issue I have is that the example uses my private
> google account settings. What issue are you having?
>
> Jason
>
> On 4/27/2011 5:15 AM, piratejackus wrote:
>> Hello Jason,
>>
>> I'm trying to use Google Analytics as a data source in my report and i
>> would like to follow an example. So, Is there any progress on this issue?
>>
>> Thanks.
>>
>> Jason Weathersby wrote on Wed, 22 December 2010 16:01
>> Meghan,
>> >
>> > I went through building an example but I am still having issues with
>> the
>> > classpath. Once I get that worked out I will post something.
>> >
>> > Jason
>
>


[Updated on: Thu, 28 April 2011 15:42]

Report message to a moderator

Re: Exception in Birt while loading class in Google Analytics client library [message #667325 is a reply to message #667296] Thu, 28 April 2011 07:10 Go to previous messageGo to next message
piratejackus is currently offline piratejackusFriend
Messages: 13
Registered: April 2011
Junior Member
So this is the link that helped me to use 'scripted data source' in my Birt report :
(it is detailed)
http:// thoughts.inphina.com/2010/09/12/using-scripted-data-sources- in-birt-and-deploying-in-application-server/
and the rest of it is just like the google analytics example code:
(under Analytics Account Authorization topic, click the plus near the View the Full Java Example)
http://code.google.com/apis/analytics/docs/gdata/2.0/gdataJa va.html

Those were enough for me, i'm also new to Birt & Google Analytics.

Cheers

[Updated on: Thu, 28 April 2011 07:12]

Report message to a moderator

Re: Exception in Birt while loading class in Google Analytics client library [message #667342 is a reply to message #667325] Thu, 28 April 2011 08:59 Go to previous messageGo to next message
piratejackus is currently offline piratejackusFriend
Messages: 13
Registered: April 2011
Junior Member
hi Jason,

Excuse me for misleading this thread. Yesterday, when i see the gdata results in preview results of data set, i thought that i did it and i had to leave. but when i tried to run the report in preview (same in other formats) i got a similar exception as marko, i copied it here.

The line that i get the ExceptionInInitializerError is:
AnalyticsService analyticsService = new AnalyticsService("GAFetcher");


and for the NPE:
public static Version getVersion()
{
    return VersionRegistry.get().getVersion(Service.class);
}

in com.google.gdata.client.Service.java

It is a fast reply without a solution just to set aright my situation in this. I'm still looking for the reason. As i find it, i will post it here. I will also open this issue in birt-excahnge forum.

Here is the stacktrace:
Quote:

- org.eclipse.birt.report.service.api.ReportServiceException: Error happened while running the report.
AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userExcept ion
faultSubcode:
faultString: org.eclipse.birt.report.service.api.ReportServiceException: Error happened while running the report.
faultActor:
faultNode:
faultDetail:
{http://xml.apache.org/axis/}stackTrace:org.eclipse.birt.rep ort.service.api.ReportServiceException: Error happened while running the report.
at org.eclipse.birt.report.service.ReportEngineService.throwDum myException(ReportEngineService.java:1105)
at org.eclipse.birt.report.service.ReportEngineService.runAndRe nderReport(ReportEngineService.java:934)
at org.eclipse.birt.report.service.BirtViewerReportService.runA ndRenderReport(BirtViewerReportService.java:973)
at org.eclipse.birt.report.service.actionhandler.BirtRunAndRend erActionHandler.__execute(BirtRunAndRenderActionHandler.java :76)
at org.eclipse.birt.report.service.actionhandler.AbstractBaseAc tionHandler.execute(AbstractBaseActionHandler.java:90)
at org.eclipse.birt.report.presentation.aggregation.layout.Engi neFragment.doService(EngineFragment.java:318)
at org.eclipse.birt.report.presentation.aggregation.AbstractBas eFragment.service(AbstractBaseFragment.java:76)
at org.eclipse.birt.report.servlet.BirtEngineServlet.__doGet(Bi rtEngineServlet.java:120)
at org.eclipse.birt.report.servlet.BaseReportEngineServlet.doGe t(BaseReportEngineServlet.java:185)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
at org.apache.axis.transport.http.AxisServletBase.service(AxisS ervletBase.java:327)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at org.eclipse.birt.report.servlet.BaseReportEngineServlet.serv ice(BaseReportEngineServlet.java:116)
at org.eclipse.equinox.http.registry.internal.ServletManager$Se rvletWrapper.service(ServletManager.java:180)
at org.eclipse.equinox.http.servlet.internal.ServletRegistratio n.service(ServletRegistration.java:61)
at org.eclipse.equinox.http.servlet.internal.ProxyServlet.proce ssAlias(ProxyServlet.java:126)
at org.eclipse.equinox.http.servlet.internal.ProxyServlet.servi ce(ProxyServlet.java:60)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at org.eclipse.equinox.http.jetty.internal.HttpServerManager$In ternalHttpServiceServlet.service(HttpServerManager.java:318)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder .java:511)
at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandl er.java:390)
at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandl er.java:182)
at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandl er.java:765)
at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapp er.java:152)
at org.mortbay.jetty.Server.handle(Server.java:326)
at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnectio n.java:542)
at org.mortbay.jetty.HttpConnection$RequestHandler.headerComple te(HttpConnection.java:924)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:549)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java: 212)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java: 404)
at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEn dPoint.java:409)
at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThr eadPool.java:582)
Caused by: org.eclipse.birt.report.engine.api.EngineException: Error happened while running the report.
at org.eclipse.birt.report.engine.api.impl.RunAndRenderTask.doR un(RunAndRenderTask.java:209)
at org.eclipse.birt.report.engine.api.impl.RunAndRenderTask.run (RunAndRenderTask.java:77)
at org.eclipse.birt.report.service.ReportEngineService.runAndRe nderReport(ReportEngineService.java:928)
... 30 more
Caused by: java.lang.ExceptionInInitializerError
at gafetcher.WoomjiUserSystemInfo.getVisitorsSystemAndVisitInfo (WoomjiUserSystemInfo.java:43)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:616)
at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:161)
at org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMetho d.java:247)
at org.mozilla.javascript.optimizer.OptRuntime.callProp0(OptRun time.java:119)
at org.mozilla.javascript.gen.c5._c1(/report/data-sets/script-d ata-set[@id=&quot;13&quot;]/method[@name=&quot;o pen&quot;]:5)
at org.mozilla.javascript.gen.c5.call(/report/data-sets/script- data-set[@id=&quot;13&quot;]/method[@name=&quot; open&quot;])
at org.mozilla.javascript.optimizer.OptRuntime.callName0(OptRun time.java:108)
at org.mozilla.javascript.gen.c6._c0(/report/data-sets/script-d ata-set[@id=&quot;13&quot;]/method[@name=&quot;o pen&quot;]:0)
at org.mozilla.javascript.gen.c6.call(/report/data-sets/script- data-set[@id=&quot;13&quot;]/method[@name=&quot; open&quot;])
at org.mozilla.javascript.ContextFactory.doTopCall(ContextFacto ry.java:398)
at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime .java:3065)
at org.mozilla.javascript.gen.c6.call(/report/data-sets/script- data-set[@id=&quot;13&quot;]/method[@name=&quot; open&quot;])
at org.mozilla.javascript.gen.c6.exec(/report/data-sets/script- data-set[@id=&quot;13&quot;]/method[@name=&quot; open&quot;])
at org.eclipse.birt.core.script.JavascriptEvalUtil.evaluateRawS cript(JavascriptEvalUtil.java:95)
at org.eclipse.birt.core.script.JavascriptEvalUtil.evaluateScri pt(JavascriptEvalUtil.java:134)
at org.eclipse.birt.data.engine.script.ScriptEvalUtil.evaluateJ SAsExpr(ScriptEvalUtil.java:1001)
at org.eclipse.birt.data.engine.script.JSMethodRunner.runScript (JSMethodRunner.java:138)
at org.eclipse.birt.report.engine.script.internal.DtEScriptExec utor.handleJS(DtEScriptExecutor.java:90)
at org.eclipse.birt.report.engine.script.internal.DataSetScript Executor.handleJS(DataSetScriptExecutor.java:246)
at org.eclipse.birt.report.engine.script.internal.ScriptDataSet ScriptExecutor.handleOpen(ScriptDataSetScriptExecutor.java:9 7)
at org.eclipse.birt.data.engine.impl.ScriptDataSetRuntime.open( ScriptDataSetRuntime.java:80)
at org.eclipse.birt.data.engine.impl.PreparedScriptDSQuery$Scri ptDSQueryExecutor$CustomDataSet.open(PreparedScriptDSQuery.j ava:247)
at org.eclipse.birt.data.engine.impl.PreparedScriptDSQuery$Scri ptDSQueryExecutor.executeOdiQuery(PreparedScriptDSQuery.java :223)
at org.eclipse.birt.data.engine.impl.QueryExecutor.execute(Quer yExecutor.java:1103)
at org.eclipse.birt.data.engine.impl.ServiceForQueryResults.exe cuteQuery(ServiceForQueryResults.java:232)
at org.eclipse.birt.data.engine.impl.QueryResults.getResultIter ator(QueryResults.java:173)
at org.eclipse.birt.report.engine.data.dte.QueryResultSet.& lt;init&gt;(QueryResultSet.java:98)
at org.eclipse.birt.report.engine.data.dte.DteDataEngine.doExec uteQuery(DteDataEngine.java:168)
at org.eclipse.birt.report.engine.data.dte.AbstractDataEngine.e xecute(AbstractDataEngine.java:265)
at org.eclipse.birt.report.engine.executor.ExecutionContext.exe cuteQuery(ExecutionContext.java:1890)
at org.eclipse.birt.report.engine.executor.QueryItemExecutor.ex ecuteQuery(QueryItemExecutor.java:80)
at org.eclipse.birt.report.engine.executor.TableItemExecutor.ex ecute(TableItemExecutor.java:62)
at org.eclipse.birt.report.engine.internal.executor.dup.Suppres sDuplicateItemExecutor.execute(SuppressDuplicateItemExecutor .java:43)
at org.eclipse.birt.report.engine.internal.executor.wrap.Wrappe dReportItemExecutor.execute(WrappedReportItemExecutor.java:4 6)
at org.eclipse.birt.report.engine.internal.executor.l18n.Locali zedReportItemExecutor.execute(LocalizedReportItemExecutor.ja va:34)
at org.eclipse.birt.report.engine.layout.html.HTMLBlockStacking LM.layoutNodes(HTMLBlockStackingLM.java:65)
at org.eclipse.birt.report.engine.layout.html.HTMLPageLM.layout (HTMLPageLM.java:90)
at org.eclipse.birt.report.engine.layout.html.HTMLReportLayoutE ngine.layout(HTMLReportLayoutEngine.java:99)
at org.eclipse.birt.report.engine.api.impl.RunAndRenderTask.doR un(RunAndRenderTask.java:180)
... 32 more
Caused by: java.lang.NullPointerException
at com.google.gdata.client.Service.&lt;clinit&gt;(Servi ce.java:97)
... 75 more

{http://xml.apache.org/axis/}hostname:extelia_innovation_699
{}:org.eclipse.birt.report.service.api.ReportServiceExceptio n: Error happened while running the report.
at org.eclipse.birt.report.service.ReportEngineService.throwDum myException(ReportEngineService.java:1105)
at org.eclipse.birt.report.service.ReportEngineService.runAndRe nderReport(ReportEngineService.java:934)
at org.eclipse.birt.report.service.BirtViewerReportService.runA ndRenderReport(BirtViewerReportService.java:973)
at org.eclipse.birt.report.service.actionhandler.BirtRunAndRend erActionHandler.__execute(BirtRunAndRenderActionHandler.java :76)
at org.eclipse.birt.report.service.actionhandler.AbstractBaseAc tionHandler.execute(AbstractBaseActionHandler.java:90)
at org.eclipse.birt.report.presentation.aggregation.layout.Engi neFragment.doService(EngineFragment.java:318)
at org.eclipse.birt.report.presentation.aggregation.AbstractBas eFragment.service(AbstractBaseFragment.java:76)
at org.eclipse.birt.report.servlet.BirtEngineServlet.__doGet(Bi rtEngineServlet.java:120)
at org.eclipse.birt.report.servlet.BaseReportEngineServlet.doGe t(BaseReportEngineServlet.java:185)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
at org.apache.axis.transport.http.AxisServletBase.service(AxisS ervletBase.java:327)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at org.eclipse.birt.report.servlet.BaseReportEngineServlet.serv ice(BaseReportEngineServlet.java:116)
at org.eclipse.equinox.http.registry.internal.ServletManager$Se rvletWrapper.service(ServletManager.java:180)
at org.eclipse.equinox.http.servlet.internal.ServletRegistratio n.service(ServletRegistration.java:61)
at org.eclipse.equinox.http.servlet.internal.ProxyServlet.proce ssAlias(ProxyServlet.java:126)
at org.eclipse.equinox.http.servlet.internal.ProxyServlet.servi ce(ProxyServlet.java:60)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at org.eclipse.equinox.http.jetty.internal.HttpServerManager$In ternalHttpServiceServlet.service(HttpServerManager.java:318)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder .java:511)
at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandl er.java:390)
at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandl er.java:182)
at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandl er.java:765)
at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapp er.java:152)
at org.mortbay.jetty.Server.handle(Server.java:326)
at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnectio n.java:542)
at org.mortbay.jetty.HttpConnection$RequestHandler.headerComple te(HttpConnection.java:924)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:549)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java: 212)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java: 404)
at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEn dPoint.java:409)
at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThr eadPool.java:582)
Caused by: org.eclipse.birt.report.engine.api.EngineException: Error happened while running the report.
at org.eclipse.birt.report.engine.api.impl.RunAndRenderTask.doR un(RunAndRenderTask.java:209)
at org.eclipse.birt.report.engine.api.impl.RunAndRenderTask.run (RunAndRenderTask.java:77)
at org.eclipse.birt.report.service.ReportEngineService.runAndRe nderReport(ReportEngineService.java:928)
... 30 more
Caused by: java.lang.ExceptionInInitializerError
at gafetcher.WoomjiUserSystemInfo.getVisitorsSystemAndVisitInfo (WoomjiUserSystemInfo.java:43)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:616)
at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:161)
at org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMetho d.java:247)
at org.mozilla.javascript.optimizer.OptRuntime.callProp0(OptRun time.java:119)
at org.mozilla.javascript.gen.c5._c1(/report/data-sets/script-d ata-set[@id=&quot;13&quot;]/method[@name=&quot;o pen&quot;]:5)
at org.mozilla.javascript.gen.c5.call(/report/data-sets/script- data-set[@id=&quot;13&quot;]/method[@name=&quot; open&quot;])
at org.mozilla.javascript.optimizer.OptRuntime.callName0(OptRun time.java:108)
at org.mozilla.javascript.gen.c6._c0(/report/data-sets/script-d ata-set[@id=&quot;13&quot;]/method[@name=&quot;o pen&quot;]:0)
at org.mozilla.javascript.gen.c6.call(/report/data-sets/script- data-set[@id=&quot;13&quot;]/method[@name=&quot; open&quot;])
at org.mozilla.javascript.ContextFactory.doTopCall(ContextFacto ry.java:398)
at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime .java:3065)
at org.mozilla.javascript.gen.c6.call(/report/data-sets/script- data-set[@id=&quot;13&quot;]/method[@name=&quot; open&quot;])
at org.mozilla.javascript.gen.c6.exec(/report/data-sets/script- data-set[@id=&quot;13&quot;]/method[@name=&quot; open&quot;])
at org.eclipse.birt.core.script.JavascriptEvalUtil.evaluateRawS cript(JavascriptEvalUtil.java:95)
at org.eclipse.birt.core.script.JavascriptEvalUtil.evaluateScri pt(JavascriptEvalUtil.java:134)
at org.eclipse.birt.data.engine.script.ScriptEvalUtil.evaluateJ SAsExpr(ScriptEvalUtil.java:1001)
at org.eclipse.birt.data.engine.script.JSMethodRunner.runScript (JSMethodRunner.java:138)
at org.eclipse.birt.report.engine.script.internal.DtEScriptExec utor.handleJS(DtEScriptExecutor.java:90)
at org.eclipse.birt.report.engine.script.internal.DataSetScript Executor.handleJS(DataSetScriptExecutor.java:246)
at org.eclipse.birt.report.engine.script.internal.ScriptDataSet ScriptExecutor.handleOpen(ScriptDataSetScriptExecutor.java:9 7)
at org.eclipse.birt.data.engine.impl.ScriptDataSetRuntime.open( ScriptDataSetRuntime.java:80)
at org.eclipse.birt.data.engine.impl.PreparedScriptDSQuery$Scri ptDSQueryExecutor$CustomDataSet.open(PreparedScriptDSQuery.j ava:247)
at org.eclipse.birt.data.engine.impl.PreparedScriptDSQuery$Scri ptDSQueryExecutor.executeOdiQuery(PreparedScriptDSQuery.java :223)
at org.eclipse.birt.data.engine.impl.QueryExecutor.execute(Quer yExecutor.java:1103)
at org.eclipse.birt.data.engine.impl.ServiceForQueryResults.exe cuteQuery(ServiceForQueryResults.java:232)
at org.eclipse.birt.data.engine.impl.QueryResults.getResultIter ator(QueryResults.java:173)
at org.eclipse.birt.report.engine.data.dte.QueryResultSet.& lt;init&gt;(QueryResultSet.java:98)
at org.eclipse.birt.report.engine.data.dte.DteDataEngine.doExec uteQuery(DteDataEngine.java:168)
at org.eclipse.birt.report.engine.data.dte.AbstractDataEngine.e xecute(AbstractDataEngine.java:265)
at org.eclipse.birt.report.engine.executor.ExecutionContext.exe cuteQuery(ExecutionContext.java:1890)
at org.eclipse.birt.report.engine.executor.QueryItemExecutor.ex ecuteQuery(QueryItemExecutor.java:80)
at org.eclipse.birt.report.engine.executor.TableItemExecutor.ex ecute(TableItemExecutor.java:62)
at org.eclipse.birt.report.engine.internal.executor.dup.Suppres sDuplicateItemExecutor.execute(SuppressDuplicateItemExecutor .java:43)
at org.eclipse.birt.report.engine.internal.executor.wrap.Wrappe dReportItemExecutor.execute(WrappedReportItemExecutor.java:4 6)
at org.eclipse.birt.report.engine.internal.executor.l18n.Locali zedReportItemExecutor.execute(LocalizedReportItemExecutor.ja va:34)
at org.eclipse.birt.report.engine.layout.html.HTMLBlockStacking LM.layoutNodes(HTMLBlockStackingLM.java:65)
at org.eclipse.birt.report.engine.layout.html.HTMLPageLM.layout (HTMLPageLM.java:90)
at org.eclipse.birt.report.engine.layout.html.HTMLReportLayoutE ngine.layout(HTMLReportLayoutEngine.java:99)
at org.eclipse.birt.report.engine.api.impl.RunAndRenderTask.doR un(RunAndRenderTask.java:180)
... 32 more
Caused by: java.lang.NullPointerException
at com.google.gdata.client.Service.&lt;clinit&gt;(Servi ce.java:97)
... 75 more


org.eclipse.birt.report.service.api.ReportServiceException: Error happened while running the report.
at org.apache.axis.AxisFault.makeFault(AxisFault.java:101)
at org.eclipse.birt.report.utility.BirtUtility.makeAxisFault(Bi rtUtility.java:761)
at org.eclipse.birt.report.service.actionhandler.AbstractBaseAc tionHandler.execute(AbstractBaseActionHandler.java:94)
at org.eclipse.birt.report.presentation.aggregation.layout.Engi neFragment.doService(EngineFragment.java:318)
at org.eclipse.birt.report.presentation.aggregation.AbstractBas eFragment.service(AbstractBaseFragment.java:76)
at org.eclipse.birt.report.servlet.BirtEngineServlet.__doGet(Bi rtEngineServlet.java:120)
at org.eclipse.birt.report.servlet.BaseReportEngineServlet.doGe t(BaseReportEngineServlet.java:185)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
at org.apache.axis.transport.http.AxisServletBase.service(AxisS ervletBase.java:327)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at org.eclipse.birt.report.servlet.BaseReportEngineServlet.serv ice(BaseReportEngineServlet.java:116)
at org.eclipse.equinox.http.registry.internal.ServletManager$Se rvletWrapper.service(ServletManager.java:180)
at org.eclipse.equinox.http.servlet.internal.ServletRegistratio n.service(ServletRegistration.java:61)
at org.eclipse.equinox.http.servlet.internal.ProxyServlet.proce ssAlias(ProxyServlet.java:126)
at org.eclipse.equinox.http.servlet.internal.ProxyServlet.servi ce(ProxyServlet.java:60)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at org.eclipse.equinox.http.jetty.internal.HttpServerManager$In ternalHttpServiceServlet.service(HttpServerManager.java:318)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder .java:511)
at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandl er.java:390)
at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandl er.java:182)
at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandl er.java:765)
at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapp er.java:152)
at org.mortbay.jetty.Server.handle(Server.java:326)
at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnectio n.java:542)
at org.mortbay.jetty.HttpConnection$RequestHandler.headerComple te(HttpConnection.java:924)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:549)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java: 212)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java: 404)
at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEn dPoint.java:409)
at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThr eadPool.java:582)
Caused by: org.eclipse.birt.report.service.api.ReportServiceException: Error happened while running the report.
at org.eclipse.birt.report.service.ReportEngineService.throwDum myException(ReportEngineService.java:1105)
at org.eclipse.birt.report.service.ReportEngineService.runAndRe nderReport(ReportEngineService.java:934)
at org.eclipse.birt.report.service.BirtViewerReportService.runA ndRenderReport(BirtViewerReportService.java:973)
at org.eclipse.birt.report.service.actionhandler.BirtRunAndRend erActionHandler.__execute(BirtRunAndRenderActionHandler.java :76)
at org.eclipse.birt.report.service.actionhandler.AbstractBaseAc tionHandler.execute(AbstractBaseActionHandler.java:90)
... 27 more
Caused by: org.eclipse.birt.report.engine.api.EngineException: Error happened while running the report.
at org.eclipse.birt.report.engine.api.impl.RunAndRenderTask.doR un(RunAndRenderTask.java:209)
at org.eclipse.birt.report.engine.api.impl.RunAndRenderTask.run (RunAndRenderTask.java:77)
at org.eclipse.birt.report.service.ReportEngineService.runAndRe nderReport(ReportEngineService.java:928)
... 30 more
Caused by: java.lang.ExceptionInInitializerError
at gafetcher.WoomjiUserSystemInfo.getVisitorsSystemAndVisitInfo (WoomjiUserSystemInfo.java:43)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:616)
at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:161)
at org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMetho d.java:247)
at org.mozilla.javascript.optimizer.OptRuntime.callProp0(OptRun time.java:119)
at org.mozilla.javascript.gen.c5._c1(/report/data-sets/script-d ata-set[@id= "13"]/method[@name="open"]:5)
at org.mozilla.javascript.gen.c5.call(/report/data-sets/script- data-set[@id= "13"]/method[@name="open"])
at org.mozilla.javascript.optimizer.OptRuntime.callName0(OptRun time.java:108)
at org.mozilla.javascript.gen.c6._c0(/report/data-sets/script-d ata-set[@id= "13"]/method[@name="open"]:0)
at org.mozilla.javascript.gen.c6.call(/report/data-sets/script- data-set[@id= "13"]/method[@name="open"])
at org.mozilla.javascript.ContextFactory.doTopCall(ContextFacto ry.java:398)
at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime .java:3065)
at org.mozilla.javascript.gen.c6.call(/report/data-sets/script- data-set[@id= "13"]/method[@name="open"])
at org.mozilla.javascript.gen.c6.exec(/report/data-sets/script- data-set[@id= "13"]/method[@name="open"])
at org.eclipse.birt.core.script.JavascriptEvalUtil.evaluateRawS cript(JavascriptEvalUtil.java:95)
at org.eclipse.birt.core.script.JavascriptEvalUtil.evaluateScri pt(JavascriptEvalUtil.java:134)
at org.eclipse.birt.data.engine.script.ScriptEvalUtil.evaluateJ SAsExpr(ScriptEvalUtil.java:1001)
at org.eclipse.birt.data.engine.script.JSMethodRunner.runScript (JSMethodRunner.java:138)
at org.eclipse.birt.report.engine.script.internal.DtEScriptExec utor.handleJS(DtEScriptExecutor.java:90)
at org.eclipse.birt.report.engine.script.internal.DataSetScript Executor.handleJS(DataSetScriptExecutor.java:246)
at org.eclipse.birt.report.engine.script.internal.ScriptDataSet ScriptExecutor.handleOpen(ScriptDataSetScriptExecutor.java:9 7)
at org.eclipse.birt.data.engine.impl.ScriptDataSetRuntime.open( ScriptDataSetRuntime.java:80)
at org.eclipse.birt.data.engine.impl.PreparedScriptDSQuery$Scri ptDSQueryExecutor$CustomDataSet.open(PreparedScriptDSQuery.j ava:247)
at org.eclipse.birt.data.engine.impl.PreparedScriptDSQuery$Scri ptDSQueryExecutor.executeOdiQuery(PreparedScriptDSQuery.java :223)
at org.eclipse.birt.data.engine.impl.QueryExecutor.execute(Quer yExecutor.java:1103)
at org.eclipse.birt.data.engine.impl.ServiceForQueryResults.exe cuteQuery(ServiceForQueryResults.java:232)
at org.eclipse.birt.data.engine.impl.QueryResults.getResultIter ator(QueryResults.java:173)
at org.eclipse.birt.report.engine.data.dte.QueryResultSet.<init >(QueryResultSet.java:98)
at org.eclipse.birt.report.engine.data.dte.DteDataEngine.doExec uteQuery(DteDataEngine.java:168)
at org.eclipse.birt.report.engine.data.dte.AbstractDataEngine.e xecute(AbstractDataEngine.java:265)
at org.eclipse.birt.report.engine.executor.ExecutionContext.exe cuteQuery(ExecutionContext.java:1890)
at org.eclipse.birt.report.engine.executor.QueryItemExecutor.ex ecuteQuery(QueryItemExecutor.java:80)
at org.eclipse.birt.report.engine.executor.TableItemExecutor.ex ecute(TableItemExecutor.java:62)
at org.eclipse.birt.report.engine.internal.executor.dup.Suppres sDuplicateItemExecutor.execute(SuppressDuplicateItemExecutor .java:43)
at org.eclipse.birt.report.engine.internal.executor.wrap.Wrappe dReportItemExecutor.execute(WrappedReportItemExecutor.java:4 6)
at org.eclipse.birt.report.engine.internal.executor.l18n.Locali zedReportItemExecutor.execute(LocalizedReportItemExecutor.ja va:34)
at org.eclipse.birt.report.engine.layout.html.HTMLBlockStacking LM.layoutNodes(HTMLBlockStackingLM.java:65)
at org.eclipse.birt.report.engine.layout.html.HTMLPageLM.layout (HTMLPageLM.java:90)
at org.eclipse.birt.report.engine.layout.html.HTMLReportLayoutE ngine.layout(HTMLReportLayoutEngine.java:99)
at org.eclipse.birt.report.engine.api.impl.RunAndRenderTask.doR un(RunAndRenderTask.java:180)
... 32 more
Caused by: java.lang.NullPointerException
at com.google.gdata.client.Service.<clinit>(Service.java:97)
... 75 more

[Updated on: Fri, 29 April 2011 09:55]

Report message to a moderator

Re: Exception in Birt while loading class in Google Analytics client library [message #667395 is a reply to message #667342] Thu, 28 April 2011 13:55 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

This is the error that I got. It is a classloader issue with the BIRT
engine. Currently I do not have a work around.

Jason

On 4/28/2011 4:59 AM, piratejackus wrote:
> hi Jason,
>
> Excuse me for misleading this thread. Yesterday, when i see the gdata
> results in preview results of data set, i thought that i did it and i
> had to leave. but when i tried to run the report in preview (same in
> other formats) i got a similar exception as marko, i copied it here.
>
> The line that i get the ExceptionInInitializerError is:
> "...
> AnalyticsService analyticsService = new AnalyticsService("GAFetcher");
> ..."
>
> and for the NPE:
> "...
> public static Version getVersion()
> {
> return VersionRegistry.get().getVersion(Service.class);
> }
> ..."
>
> in com.google.gdata.client.Service.java
>
> It is a fast reply withour a solution just to set aright my situation in
> this. I'm still looking for the reason. As i find it, i will post it here.
>
> - org.eclipse.birt.report.service.api.ReportServiceException: Error
> happened while running the report.
>
> AxisFault
> faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userExcept ion
> faultSubcode: faultString:
> org.eclipse.birt.report.service.api.ReportServiceException: Error
> happened while running the report.
> faultActor: faultNode: faultDetail:
> {http://xml.apache.org/axis/}stackTrace:org.eclipse.birt.rep ort.service.api.ReportServiceException:
> Error happened while running the report.
> at org.eclipse.birt.report.service.ReportEngineService.throwDum
> myException(ReportEngineService.java:1105)
> at org.eclipse.birt.report.service.ReportEngineService.runAndRe
> nderReport(ReportEngineService.java:934)
> at org.eclipse.birt.report.service.BirtViewerReportService.runA
> ndRenderReport(BirtViewerReportService.java:973)
> at org.eclipse.birt.report.service.actionhandler.BirtRunAndRend
> erActionHandler.__execute(BirtRunAndRenderActionHandler.java :76)
> at org.eclipse.birt.report.service.actionhandler.AbstractBaseAc
> tionHandler.execute(AbstractBaseActionHandler.java:90)
> at org.eclipse.birt.report.presentation.aggregation.layout.Engi
> neFragment.doService(EngineFragment.java:318)
> at org.eclipse.birt.report.presentation.aggregation.AbstractBas
> eFragment.service(AbstractBaseFragment.java:76)
> at org.eclipse.birt.report.servlet.BirtEngineServlet.__doGet(Bi
> rtEngineServlet.java:120)
> at org.eclipse.birt.report.servlet.BaseReportEngineServlet.doGe
> t(BaseReportEngineServlet.java:185)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
> at org.apache.axis.transport.http.AxisServletBase.service(AxisS
> ervletBase.java:327)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
> at org.eclipse.birt.report.servlet.BaseReportEngineServlet.serv
> ice(BaseReportEngineServlet.java:116)
> at org.eclipse.equinox.http.registry.internal.ServletManager$Se
> rvletWrapper.service(ServletManager.java:180)
> at org.eclipse.equinox.http.servlet.internal.ServletRegistratio
> n.service(ServletRegistration.java:61)
> at org.eclipse.equinox.http.servlet.internal.ProxyServlet.proce
> ssAlias(ProxyServlet.java:126)
> at org.eclipse.equinox.http.servlet.internal.ProxyServlet.servi
> ce(ProxyServlet.java:60)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
> at org.eclipse.equinox.http.jetty.internal.HttpServerManager$In
> ternalHttpServiceServlet.service(HttpServerManager.java:318)
> at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder .java:511)
> at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandl
> er.java:390)
> at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandl
> er.java:182)
> at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandl
> er.java:765)
> at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapp
> er.java:152)
> at org.mortbay.jetty.Server.handle(Server.java:326)
> at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnectio n.java:542)
> at org.mortbay.jetty.HttpConnection$RequestHandler.headerComple
> te(HttpConnection.java:924)
> at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:549)
> at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java: 212)
> at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java: 404)
> at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEn
> dPoint.java:409)
> at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThr
> eadPool.java:582)
> Caused by: org.eclipse.birt.report.engine.api.EngineException: Error
> happened while running the report.
> at org.eclipse.birt.report.engine.api.impl.RunAndRenderTask.doR
> un(RunAndRenderTask.java:209)
> at org.eclipse.birt.report.engine.api.impl.RunAndRenderTask.run
> (RunAndRenderTask.java:77)
> at org.eclipse.birt.report.service.ReportEngineService.runAndRe
> nderReport(ReportEngineService.java:928)
> ... 30 more
> Caused by: java.lang.ExceptionInInitializerError
> at gafetcher.WoomjiUserSystemInfo.getVisitorsSystemAndVisitInfo
> (WoomjiUserSystemInfo.java:43)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce
> ssorImpl.java:57)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe
> thodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:616)
> at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:161)
> at org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMetho d.java:247)
> at org.mozilla.javascript.optimizer.OptRuntime.callProp0(OptRun
> time.java:119)
> at org.mozilla.javascript.gen.c5._c1(/report/data-sets/script-d
> ata-set[@id="13"]/method[@name="o pen"]:5)
> at org.mozilla.javascript.gen.c5.call(/report/data-sets/script-
> data-set[@id="13"]/method[@name=" open"])
> at org.mozilla.javascript.optimizer.OptRuntime.callName0(OptRun
> time.java:108)
> at org.mozilla.javascript.gen.c6._c0(/report/data-sets/script-d
> ata-set[@id="13"]/method[@name="o pen"]:0)
> at org.mozilla.javascript.gen.c6.call(/report/data-sets/script-
> data-set[@id="13"]/method[@name=" open"])
> at org.mozilla.javascript.ContextFactory.doTopCall(ContextFacto
> ry.java:398)
> at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime .java:3065)
> at org.mozilla.javascript.gen.c6.call(/report/data-sets/script-
> data-set[@id="13"]/method[@name=" open"])
> at org.mozilla.javascript.gen.c6.exec(/report/data-sets/script-
> data-set[@id="13"]/method[@name=" open"])
> at org.eclipse.birt.core.script.JavascriptEvalUtil.evaluateRawS
> cript(JavascriptEvalUtil.java:95)
> at org.eclipse.birt.core.script.JavascriptEvalUtil.evaluateScri
> pt(JavascriptEvalUtil.java:134)
> at org.eclipse.birt.data.engine.script.ScriptEvalUtil.evaluateJ
> SAsExpr(ScriptEvalUtil.java:1001)
> at org.eclipse.birt.data.engine.script.JSMethodRunner.runScript
> (JSMethodRunner.java:138)
> at org.eclipse.birt.report.engine.script.internal.DtEScriptExec
> utor.handleJS(DtEScriptExecutor.java:90)
> at org.eclipse.birt.report.engine.script.internal.DataSetScript
> Executor.handleJS(DataSetScriptExecutor.java:246)
> at org.eclipse.birt.report.engine.script.internal.ScriptDataSet
> ScriptExecutor.handleOpen(ScriptDataSetScriptExecutor.java:9 7)
> at org.eclipse.birt.data.engine.impl.ScriptDataSetRuntime.open(
> ScriptDataSetRuntime.java:80)
> at org.eclipse.birt.data.engine.impl.PreparedScriptDSQuery$Scri
> ptDSQueryExecutor$CustomDataSet.open(PreparedScriptDSQuery.j ava:247)
> at org.eclipse.birt.data.engine.impl.PreparedScriptDSQuery$Scri
> ptDSQueryExecutor.executeOdiQuery(PreparedScriptDSQuery.java :223)
> at org.eclipse.birt.data.engine.impl.QueryExecutor.execute(Quer
> yExecutor.java:1103)
> at org.eclipse.birt.data.engine.impl.ServiceForQueryResults.exe
> cuteQuery(ServiceForQueryResults.java:232)
> at org.eclipse.birt.data.engine.impl.QueryResults.getResultIter
> ator(QueryResults.java:173)
> at org.eclipse.birt.report.engine.data.dte.QueryResultSet.&
> lt;init>(QueryResultSet.java:98)
> at org.eclipse.birt.report.engine.data.dte.DteDataEngine.doExec
> uteQuery(DteDataEngine.java:168)
> at org.eclipse.birt.report.engine.data.dte.AbstractDataEngine.e
> xecute(AbstractDataEngine.java:265)
> at org.eclipse.birt.report.engine.executor.ExecutionContext.exe
> cuteQuery(ExecutionContext.java:1890)
> at org.eclipse.birt.report.engine.executor.QueryItemExecutor.ex
> ecuteQuery(QueryItemExecutor.java:80)
> at org.eclipse.birt.report.engine.executor.TableItemExecutor.ex
> ecute(TableItemExecutor.java:62)
> at org.eclipse.birt.report.engine.internal.executor.dup.Suppres
> sDuplicateItemExecutor.execute(SuppressDuplicateItemExecutor .java:43)
> at org.eclipse.birt.report.engine.internal.executor.wrap.Wrappe
> dReportItemExecutor.execute(WrappedReportItemExecutor.java:4 6)
> at org.eclipse.birt.report.engine.internal.executor.l18n.Locali
> zedReportItemExecutor.execute(LocalizedReportItemExecutor.ja va:34)
> at org.eclipse.birt.report.engine.layout.html.HTMLBlockStacking
> LM.layoutNodes(HTMLBlockStackingLM.java:65)
> at org.eclipse.birt.report.engine.layout.html.HTMLPageLM.layout
> (HTMLPageLM.java:90)
> at org.eclipse.birt.report.engine.layout.html.HTMLReportLayoutE
> ngine.layout(HTMLReportLayoutEngine.java:99)
> at org.eclipse.birt.report.engine.api.impl.RunAndRenderTask.doR
> un(RunAndRenderTask.java:180)
> ... 32 more
> Caused by: java.lang.NullPointerException
> at com.google.gdata.client.Service.<clinit>(Servi ce.java:97)
> ... 75 more
>
> {http://xml.apache.org/axis/}hostname:extelia_innovation_699
> {}:org.eclipse.birt.report.service.api.ReportServiceExceptio n: Error
> happened while running the report.
> at org.eclipse.birt.report.service.ReportEngineService.throwDum
> myException(ReportEngineService.java:1105)
> at org.eclipse.birt.report.service.ReportEngineService.runAndRe
> nderReport(ReportEngineService.java:934)
> at org.eclipse.birt.report.service.BirtViewerReportService.runA
> ndRenderReport(BirtViewerReportService.java:973)
> at org.eclipse.birt.report.service.actionhandler.BirtRunAndRend
> erActionHandler.__execute(BirtRunAndRenderActionHandler.java :76)
> at org.eclipse.birt.report.service.actionhandler.AbstractBaseAc
> tionHandler.execute(AbstractBaseActionHandler.java:90)
> at org.eclipse.birt.report.presentation.aggregation.layout.Engi
> neFragment.doService(EngineFragment.java:318)
> at org.eclipse.birt.report.presentation.aggregation.AbstractBas
> eFragment.service(AbstractBaseFragment.java:76)
> at org.eclipse.birt.report.servlet.BirtEngineServlet.__doGet(Bi
> rtEngineServlet.java:120)
> at org.eclipse.birt.report.servlet.BaseReportEngineServlet.doGe
> t(BaseReportEngineServlet.java:185)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
> at org.apache.axis.transport.http.AxisServletBase.service(AxisS
> ervletBase.java:327)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
> at org.eclipse.birt.report.servlet.BaseReportEngineServlet.serv
> ice(BaseReportEngineServlet.java:116)
> at org.eclipse.equinox.http.registry.internal.ServletManager$Se
> rvletWrapper.service(ServletManager.java:180)
> at org.eclipse.equinox.http.servlet.internal.ServletRegistratio
> n.service(ServletRegistration.java:61)
> at org.eclipse.equinox.http.servlet.internal.ProxyServlet.proce
> ssAlias(ProxyServlet.java:126)
> at org.eclipse.equinox.http.servlet.internal.ProxyServlet.servi
> ce(ProxyServlet.java:60)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
> at org.eclipse.equinox.http.jetty.internal.HttpServerManager$In
> ternalHttpServiceServlet.service(HttpServerManager.java:318)
> at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder .java:511)
> at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandl
> er.java:390)
> at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandl
> er.java:182)
> at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandl
> er.java:765)
> at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapp
> er.java:152)
> at org.mortbay.jetty.Server.handle(Server.java:326)
> at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnectio n.java:542)
> at org.mortbay.jetty.HttpConnection$RequestHandler.headerComple
> te(HttpConnection.java:924)
> at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:549)
> at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java: 212)
> at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java: 404)
> at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEn
> dPoint.java:409)
> at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThr
> eadPool.java:582)
> Caused by: org.eclipse.birt.report.engine.api.EngineException: Error
> happened while running the report.
> at org.eclipse.birt.report.engine.api.impl.RunAndRenderTask.doR
> un(RunAndRenderTask.java:209)
> at org.eclipse.birt.report.engine.api.impl.RunAndRenderTask.run
> (RunAndRenderTask.java:77)
> at org.eclipse.birt.report.service.ReportEngineService.runAndRe
> nderReport(ReportEngineService.java:928)
> ... 30 more
> Caused by: java.lang.ExceptionInInitializerError
> at gafetcher.WoomjiUserSystemInfo.getVisitorsSystemAndVisitInfo
> (WoomjiUserSystemInfo.java:43)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce
> ssorImpl.java:57)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe
> thodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:616)
> at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:161)
> at org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMetho d.java:247)
> at org.mozilla.javascript.optimizer.OptRuntime.callProp0(OptRun
> time.java:119)
> at org.mozilla.javascript.gen.c5._c1(/report/data-sets/script-d
> ata-set[@id="13"]/method[@name="o pen"]:5)
> at org.mozilla.javascript.gen.c5.call(/report/data-sets/script-
> data-set[@id="13"]/method[@name=" open"])
> at org.mozilla.javascript.optimizer.OptRuntime.callName0(OptRun
> time.java:108)
> at org.mozilla.javascript.gen.c6._c0(/report/data-sets/script-d
> ata-set[@id="13"]/method[@name="o pen"]:0)
> at org.mozilla.javascript.gen.c6.call(/report/data-sets/script-
> data-set[@id="13"]/method[@name=" open"])
> at org.mozilla.javascript.ContextFactory.doTopCall(ContextFacto
> ry.java:398)
> at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime .java:3065)
> at org.mozilla.javascript.gen.c6.call(/report/data-sets/script-
> data-set[@id="13"]/method[@name=" open"])
> at org.mozilla.javascript.gen.c6.exec(/report/data-sets/script-
> data-set[@id="13"]/method[@name=" open"])
> at org.eclipse.birt.core.script.JavascriptEvalUtil.evaluateRawS
> cript(JavascriptEvalUtil.java:95)
> at org.eclipse.birt.core.script.JavascriptEvalUtil.evaluateScri
> pt(JavascriptEvalUtil.java:134)
> at org.eclipse.birt.data.engine.script.ScriptEvalUtil.evaluateJ
> SAsExpr(ScriptEvalUtil.java:1001)
> at org.eclipse.birt.data.engine.script.JSMethodRunner.runScript
> (JSMethodRunner.java:138)
> at org.eclipse.birt.report.engine.script.internal.DtEScriptExec
> utor.handleJS(DtEScriptExecutor.java:90)
> at org.eclipse.birt.report.engine.script.internal.DataSetScript
> Executor.handleJS(DataSetScriptExecutor.java:246)
> at org.eclipse.birt.report.engine.script.internal.ScriptDataSet
> ScriptExecutor.handleOpen(ScriptDataSetScriptExecutor.java:9 7)
> at org.eclipse.birt.data.engine.impl.ScriptDataSetRuntime.open(
> ScriptDataSetRuntime.java:80)
> at org.eclipse.birt.data.engine.impl.PreparedScriptDSQuery$Scri
> ptDSQueryExecutor$CustomDataSet.open(PreparedScriptDSQuery.j ava:247)
> at org.eclipse.birt.data.engine.impl.PreparedScriptDSQuery$Scri
> ptDSQueryExecutor.executeOdiQuery(PreparedScriptDSQuery.java :223)
> at org.eclipse.birt.data.engine.impl.QueryExecutor.execute(Quer
> yExecutor.java:1103)
> at org.eclipse.birt.data.engine.impl.ServiceForQueryResults.exe
> cuteQuery(ServiceForQueryResults.java:232)
> at org.eclipse.birt.data.engine.impl.QueryResults.getResultIter
> ator(QueryResults.java:173)
> at org.eclipse.birt.report.engine.data.dte.QueryResultSet.&
> lt;init>(QueryResultSet.java:98)
> at org.eclipse.birt.report.engine.data.dte.DteDataEngine.doExec
> uteQuery(DteDataEngine.java:168)
> at org.eclipse.birt.report.engine.data.dte.AbstractDataEngine.e
> xecute(AbstractDataEngine.java:265)
> at org.eclipse.birt.report.engine.executor.ExecutionContext.exe
> cuteQuery(ExecutionContext.java:1890)
> at org.eclipse.birt.report.engine.executor.QueryItemExecutor.ex
> ecuteQuery(QueryItemExecutor.java:80)
> at org.eclipse.birt.report.engine.executor.TableItemExecutor.ex
> ecute(TableItemExecutor.java:62)
> at org.eclipse.birt.report.engine.internal.executor.dup.Suppres
> sDuplicateItemExecutor.execute(SuppressDuplicateItemExecutor .java:43)
> at org.eclipse.birt.report.engine.internal.executor.wrap.Wrappe
> dReportItemExecutor.execute(WrappedReportItemExecutor.java:4 6)
> at org.eclipse.birt.report.engine.internal.executor.l18n.Locali
> zedReportItemExecutor.execute(LocalizedReportItemExecutor.ja va:34)
> at org.eclipse.birt.report.engine.layout.html.HTMLBlockStacking
> LM.layoutNodes(HTMLBlockStackingLM.java:65)
> at org.eclipse.birt.report.engine.layout.html.HTMLPageLM.layout
> (HTMLPageLM.java:90)
> at org.eclipse.birt.report.engine.layout.html.HTMLReportLayoutE
> ngine.layout(HTMLReportLayoutEngine.java:99)
> at org.eclipse.birt.report.engine.api.impl.RunAndRenderTask.doR
> un(RunAndRenderTask.java:180)
> ... 32 more
> Caused by: java.lang.NullPointerException
> at com.google.gdata.client.Service.<clinit>(Servi ce.java:97)
> ... 75 more
>
>
> org.eclipse.birt.report.service.api.ReportServiceException: Error
> happened while running the report.
> at org.apache.axis.AxisFault.makeFault(AxisFault.java:101)
> at org.eclipse.birt.report.utility.BirtUtility.makeAxisFault(Bi
> rtUtility.java:761)
> at org.eclipse.birt.report.service.actionhandler.AbstractBaseAc
> tionHandler.execute(AbstractBaseActionHandler.java:94)
> at org.eclipse.birt.report.presentation.aggregation.layout.Engi
> neFragment.doService(EngineFragment.java:318)
> at org.eclipse.birt.report.presentation.aggregation.AbstractBas
> eFragment.service(AbstractBaseFragment.java:76)
> at org.eclipse.birt.report.servlet.BirtEngineServlet.__doGet(Bi
> rtEngineServlet.java:120)
> at org.eclipse.birt.report.servlet.BaseReportEngineServlet.doGe
> t(BaseReportEngineServlet.java:185)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
> at org.apache.axis.transport.http.AxisServletBase.service(AxisS
> ervletBase.java:327)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
> at org.eclipse.birt.report.servlet.BaseReportEngineServlet.serv
> ice(BaseReportEngineServlet.java:116)
> at org.eclipse.equinox.http.registry.internal.ServletManager$Se
> rvletWrapper.service(ServletManager.java:180)
> at org.eclipse.equinox.http.servlet.internal.ServletRegistratio
> n.service(ServletRegistration.java:61)
> at org.eclipse.equinox.http.servlet.internal.ProxyServlet.proce
> ssAlias(ProxyServlet.java:126)
> at org.eclipse.equinox.http.servlet.internal.ProxyServlet.servi
> ce(ProxyServlet.java:60)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
> at org.eclipse.equinox.http.jetty.internal.HttpServerManager$In
> ternalHttpServiceServlet.service(HttpServerManager.java:318)
> at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder .java:511)
> at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandl
> er.java:390)
> at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandl
> er.java:182)
> at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandl
> er.java:765)
> at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapp
> er.java:152)
> at org.mortbay.jetty.Server.handle(Server.java:326)
> at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnectio n.java:542)
> at org.mortbay.jetty.HttpConnection$RequestHandler.headerComple
> te(HttpConnection.java:924)
> at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:549)
> at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java: 212)
> at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java: 404)
> at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEn
> dPoint.java:409)
> at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThr
> eadPool.java:582)
> Caused by: org.eclipse.birt.report.service.api.ReportServiceException:
> Error happened while running the report.
> at org.eclipse.birt.report.service.ReportEngineService.throwDum
> myException(ReportEngineService.java:1105)
> at org.eclipse.birt.report.service.ReportEngineService.runAndRe
> nderReport(ReportEngineService.java:934)
> at org.eclipse.birt.report.service.BirtViewerReportService.runA
> ndRenderReport(BirtViewerReportService.java:973)
> at org.eclipse.birt.report.service.actionhandler.BirtRunAndRend
> erActionHandler.__execute(BirtRunAndRenderActionHandler.java :76)
> at org.eclipse.birt.report.service.actionhandler.AbstractBaseAc
> tionHandler.execute(AbstractBaseActionHandler.java:90)
> ... 27 more
> Caused by: org.eclipse.birt.report.engine.api.EngineException: Error
> happened while running the report.
> at org.eclipse.birt.report.engine.api.impl.RunAndRenderTask.doR
> un(RunAndRenderTask.java:209)
> at org.eclipse.birt.report.engine.api.impl.RunAndRenderTask.run
> (RunAndRenderTask.java:77)
> at org.eclipse.birt.report.service.ReportEngineService.runAndRe
> nderReport(ReportEngineService.java:928)
> ... 30 more
> Caused by: java.lang.ExceptionInInitializerError
> at gafetcher.WoomjiUserSystemInfo.getVisitorsSystemAndVisitInfo
> (WoomjiUserSystemInfo.java:43)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce
> ssorImpl.java:57)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe
> thodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:616)
> at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:161)
> at org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMetho d.java:247)
> at org.mozilla.javascript.optimizer.OptRuntime.callProp0(OptRun
> time.java:119)
> at org.mozilla.javascript.gen.c5._c1(/report/data-sets/script-d
> ata-set[@id= "13"]/method[@name="open"]:5)
> at org.mozilla.javascript.gen.c5.call(/report/data-sets/script-
> data-set[@id= "13"]/method[@name="open"])
> at org.mozilla.javascript.optimizer.OptRuntime.callName0(OptRun
> time.java:108)
> at org.mozilla.javascript.gen.c6._c0(/report/data-sets/script-d
> ata-set[@id= "13"]/method[@name="open"]:0)
> at org.mozilla.javascript.gen.c6.call(/report/data-sets/script-
> data-set[@id= "13"]/method[@name="open"])
> at org.mozilla.javascript.ContextFactory.doTopCall(ContextFacto
> ry.java:398)
> at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime .java:3065)
> at org.mozilla.javascript.gen.c6.call(/report/data-sets/script-
> data-set[@id= "13"]/method[@name="open"])
> at org.mozilla.javascript.gen.c6.exec(/report/data-sets/script-
> data-set[@id= "13"]/method[@name="open"])
> at org.eclipse.birt.core.script.JavascriptEvalUtil.evaluateRawS
> cript(JavascriptEvalUtil.java:95)
> at org.eclipse.birt.core.script.JavascriptEvalUtil.evaluateScri
> pt(JavascriptEvalUtil.java:134)
> at org.eclipse.birt.data.engine.script.ScriptEvalUtil.evaluateJ
> SAsExpr(ScriptEvalUtil.java:1001)
> at org.eclipse.birt.data.engine.script.JSMethodRunner.runScript
> (JSMethodRunner.java:138)
> at org.eclipse.birt.report.engine.script.internal.DtEScriptExec
> utor.handleJS(DtEScriptExecutor.java:90)
> at org.eclipse.birt.report.engine.script.internal.DataSetScript
> Executor.handleJS(DataSetScriptExecutor.java:246)
> at org.eclipse.birt.report.engine.script.internal.ScriptDataSet
> ScriptExecutor.handleOpen(ScriptDataSetScriptExecutor.java:9 7)
> at org.eclipse.birt.data.engine.impl.ScriptDataSetRuntime.open(
> ScriptDataSetRuntime.java:80)
> at org.eclipse.birt.data.engine.impl.PreparedScriptDSQuery$Scri
> ptDSQueryExecutor$CustomDataSet.open(PreparedScriptDSQuery.j ava:247)
> at org.eclipse.birt.data.engine.impl.PreparedScriptDSQuery$Scri
> ptDSQueryExecutor.executeOdiQuery(PreparedScriptDSQuery.java :223)
> at org.eclipse.birt.data.engine.impl.QueryExecutor.execute(Quer
> yExecutor.java:1103)
> at org.eclipse.birt.data.engine.impl.ServiceForQueryResults.exe
> cuteQuery(ServiceForQueryResults.java:232)
> at org.eclipse.birt.data.engine.impl.QueryResults.getResultIter
> ator(QueryResults.java:173)
> at org.eclipse.birt.report.engine.data.dte.QueryResultSet.<init
> >(QueryResultSet.java:98)
> at org.eclipse.birt.report.engine.data.dte.DteDataEngine.doExec
> uteQuery(DteDataEngine.java:168)
> at org.eclipse.birt.report.engine.data.dte.AbstractDataEngine.e
> xecute(AbstractDataEngine.java:265)
> at org.eclipse.birt.report.engine.executor.ExecutionContext.exe
> cuteQuery(ExecutionContext.java:1890)
> at org.eclipse.birt.report.engine.executor.QueryItemExecutor.ex
> ecuteQuery(QueryItemExecutor.java:80)
> at org.eclipse.birt.report.engine.executor.TableItemExecutor.ex
> ecute(TableItemExecutor.java:62)
> at org.eclipse.birt.report.engine.internal.executor.dup.Suppres
> sDuplicateItemExecutor.execute(SuppressDuplicateItemExecutor .java:43)
> at org.eclipse.birt.report.engine.internal.executor.wrap.Wrappe
> dReportItemExecutor.execute(WrappedReportItemExecutor.java:4 6)
> at org.eclipse.birt.report.engine.internal.executor.l18n.Locali
> zedReportItemExecutor.execute(LocalizedReportItemExecutor.ja va:34)
> at org.eclipse.birt.report.engine.layout.html.HTMLBlockStacking
> LM.layoutNodes(HTMLBlockStackingLM.java:65)
> at org.eclipse.birt.report.engine.layout.html.HTMLPageLM.layout
> (HTMLPageLM.java:90)
> at org.eclipse.birt.report.engine.layout.html.HTMLReportLayoutE
> ngine.layout(HTMLReportLayoutEngine.java:99)
> at org.eclipse.birt.report.engine.api.impl.RunAndRenderTask.doR
> un(RunAndRenderTask.java:180)
> ... 32 more
> Caused by: java.lang.NullPointerException
> at com.google.gdata.client.Service.<clinit>(Service.java:97)
> ... 75 more
>
>
Re: Exception in Birt while loading class in Google Analytics client library [message #667397 is a reply to message #667395] Thu, 28 April 2011 14:07 Go to previous messageGo to next message
piratejackus is currently offline piratejackusFriend
Messages: 13
Registered: April 2011
Junior Member
hi Jason,

I'm still on this and tried to copy the necessary libraries to the scriptlib (in my case under ~/software/springsource/sts-2.5.2.SR1/plugins/org.eclipse.bi rt.report.viewer_2.6.2.r262_v20110214/birt/scriptlib)
and i put them in the resources under Report Design - Property Editor. They are also in the classpath but it still doesn't work. If i can find a solution, i will be back!

p.s. : i created another detailed thread (with the code) under the birt-exchange forum to get more help from birt admins:http:// www.birt-exchange.org/org/forum/index.php/topic/22184-google -analytics-api-as-a-scripted-data-source/


Jason Weathersby wrote on Thu, 28 April 2011 15:55
This is the error that I got. It is a classloader issue with the BIRT
engine. Currently I do not have a work around.

Jason

[Updated on: Thu, 28 April 2011 15:27]

Report message to a moderator

Re: Exception in Birt while loading class in Google Analytics client library [message #667420 is a reply to message #667395] Thu, 28 April 2011 15:27 Go to previous messageGo to next message
piratejackus is currently offline piratejackusFriend
Messages: 13
Registered: April 2011
Junior Member
Hi Jason,

Do you know the difference between the dataset preview and the designer preview? You said that it is a classloader issue, so it means that the engine cannot find the jars to initialize the service (Google Analytics), right?

Jason Weathersby wrote on Thu, 28 April 2011 15:55
This is the error that I got. It is a classloader issue with the BIRT
engine. Currently I do not have a work around.

Jason



[Updated on: Thu, 28 April 2011 15:28]

Report message to a moderator

Re: Exception in Birt while loading class in Google Analytics client library [message #667435 is a reply to message #667420] Thu, 28 April 2011 17:43 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

BIRT uses a custom classloader that does not implement optional features
that are being used by the AnalyticsService class.

Jason

On 4/28/2011 11:27 AM, piratejackus wrote:
> Hi Jason,
>
> Do you know the difference between the dataset preview and the designer
> preview? You said that it is a classloader issue, so it means that the
> engine cannot find the jars to initialize the service (Google
> Analytics), right?
> Jason Weathersby wrote on Thu, 28 April 2011 15:55
>> This is the error that I got. It is a classloader issue with the BIRT
>> engine. Currently I do not have a work around.
>>
>> Jason
>
>
Re: Exception in Birt while loading class in Google Analytics client library [message #667570 is a reply to message #667435] Fri, 29 April 2011 15:11 Go to previous messageGo to next message
piratejackus is currently offline piratejackusFriend
Messages: 13
Registered: April 2011
Junior Member
Hi Jason,

I searched my other reporting tool option: pentaho but its google analytics api plugin is not free! For the jasper, i couldn't find much resources till now.
I tried to put the libs, my classes and my report under the birt-runtime example (birt-runtime-2_6_2 -> WebViewerExample) packaged it as a war and deployed in a tomcat server. I got:

Quote:

...
WARNING: Fail to execute script in function __bm_OPEN(). Source:
------
" +

appUserSystemInfo = new Packages.AppUserSystemInfo();

appVisitersSystemAndVisitInfos = appUserSystemInfo.getVisitorsSystemAndVisitInfo();

i = 0; + "
-----
A BIRT exception occurred. See next exception for more information.
Error evaluating Javascript expression. Script engine error: TypeError: [JavaPackage AppUserSystemInfo] is not a function, it is object. (/report/data-sets/script-data-set[@id="13"]/method[@name= "open"]#3)
Script source: /report/data-sets/script-data-set[@id="13"]/method[@name="open "], line: 0, text:
__bm_OPEN()
org.eclipse.birt.data.engine.core.DataException: Fail to execute script in function __bm_OPEN(). Source:
------
" +

appUserSystemInfo = new Packages.AppUserSystemInfo();

appVisitersSystemAndVisitInfos = appUserSystemInfo.getVisitorsSystemAndVisitInfo();

i = 0; + "
-----
A BIRT exception occurred. See next exception for more information.
...





Actually i'm trying this way because the classloader issue tired me a lot. I opened a bug for that one:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=344239.
So do you think that it might work by deploying the projet in a web server?

Thanks.

[Updated on: Fri, 29 April 2011 15:14]

Report message to a moderator

Re: Exception in Birt while loading class in Google Analytics client library [message #667596 is a reply to message #667570] Fri, 29 April 2011 20:12 Go to previous messageGo to next message
Meghan Missing name is currently offline Meghan Missing nameFriend
Messages: 16
Registered: November 2010
Junior Member
We actually got this working.

We downloaded the following jars:
gdata-analytics-2.1
gdata-analytics-meta-2.1
gdata-client-1.0
gdata-client-meta-1.0
gdata-core-1.0
google-collect-1.0-rc1

The class files were unpacked and stored in the plugin folder of our Eclipse directory. My path looks like this:

C:\Eclipse\eclipse\plugins\org.eclipse.birt.report.viewer_2. 6.1.v20100913\birt\WEB-INF\classes\com\google\gdata

We've also created another directory under classes\com\[remainingpath] that stores the following class files:

AnalyticsServiceAdapter.class, PriorityFutureTask.class, ThrottledPriorityBlockingQueue.class, and UsageData.class

It is this set of class files that is referenced by our data set.

in the data set open event we have code like this:

count = 0;

var myUrl = 'https://www.google.com/analytics/feeds/data' +
// this is your google account ID
'?ids=ga%##### +
'&dimensions=ga%3Adate%2Cga%3ApagePath' +
'%2Cga%3Acountry' +
'%2Cga%3Aregion' +
'&metrics=ga%3Apageviews%2Cga%3AtimeOnPage' +
'&filters=ga%3ApagePath%3D%40training%2F' +
'&sort=-ga%3Apageviews' +
'&start-date=2010-01-01' +
'&end-date=2010-01-31'

var gaa = new Packages.com.folderpath.google.analytics.AnalyticsServiceAda pter();

stock = gaa.doQuery(myUrl);

Then, in the fetch script we have:

if (typeof stock == "undefined"){
return (false);
}
var myObject = eval('(' + stock + ')');
if (typeof myObject == "undefined"){
return (false);
}


if ('entries' in myObject && typeof myObject.entries.length == 'undefined'){

var totCount = 1;


if(count < totCount){
row["Date"] = myObject.entries.dimensions[0].value;
row["RealDate"] = row["Date"].substring(0, 4) + '-' + row["Date"].substring(4,6) + '-' + row["Date"].substring(6,8);
row["ContentPath"] = myObject.entries.dimensions[1].value;
row["Country"] = myObject.entries.dimensions[2].value;
row["Region"] = myObject.entries.dimensions[3].value;
row["ContentViews"] = myObject.entries.metrics[0].value;
row["TimeOnContent"] = myObject.entries.metrics[1].value;

count++;
return(true);
}
}
else


if ('entries' in myObject){

var totCount = myObject.entries.length;


if(count < totCount){
row["Date"] = myObject.entries[count].dimensions[0].value;
row["RealDate"] = row["Date"].substring(0, 4) + '-' + row["Date"].substring(4,6) + '-' + row["Date"].substring(6,8);
row["ContentPath"] = myObject.entries[count].dimensions[1].value;
row["Country"] = myObject.entries[count].dimensions[2].value;
row["Region"] = myObject.entries[count].dimensions[3].value;
row["ContentViews"] = myObject.entries[count].metrics[0].value;
row["TimeOnContent"] = myObject.entries[count].metrics[1].value;

count++;
return (true);
}
}

return (false);

I hope this helps.
Re: Exception in Birt while loading class in Google Analytics client library [message #667612 is a reply to message #667596] Fri, 29 April 2011 22:02 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

Thanks Meghan. This is good information.

On 4/29/2011 4:12 PM, Meghan wrote:
> We actually got this working.
>
> We downloaded the following jars:
> gdata-analytics-2.1
> gdata-analytics-meta-2.1
> gdata-client-1.0
> gdata-client-meta-1.0
> gdata-core-1.0
> google-collect-1.0-rc1
>
> The class files were unpacked and stored in the plugin folder of our
> Eclipse directory. My path looks like this:
>
> C:\Eclipse\eclipse\plugins\org.eclipse.birt.report.viewer_2.
> 6.1.v20100913\birt\WEB-INF\classes\com\google\gdata
>
> We've also created another directory under classes\com\[remainingpath]
> that stores the following class files:
>
> AnalyticsServiceAdapter.class, PriorityFutureTask.class,
> ThrottledPriorityBlockingQueue.class, and UsageData.class
>
> It is this set of class files that is referenced by our data set.
>
> in the data set open event we have code like this:
>
> count = 0;
> var myUrl = 'https://www.google.com/analytics/feeds/data' +
> // this is your google account ID
> '?ids=ga%##### +
> '&dimensions=ga%3Adate%2Cga%3ApagePath' +
> '%2Cga%3Acountry' + '%2Cga%3Aregion' +
> '&metrics=ga%3Apageviews%2Cga%3AtimeOnPage' +
> '&filters=ga%3ApagePath%3D%40training%2F' + '&sort=-ga%3Apageviews' +
> '&start-date=2010-01-01' +
> '&end-date=2010-01-31'
> var gaa = new
> Packages.com.folderpath.google.analytics.AnalyticsServiceAda pter();
>
> stock = gaa.doQuery(myUrl);
>
> Then, in the fetch script we have:
>
> if (typeof stock == "undefined"){
> return (false);
> }
> var myObject = eval('(' + stock + ')');
> if (typeof myObject == "undefined"){
> return (false);
> }
>
>
> if ('entries' in myObject && typeof myObject.entries.length ==
> 'undefined'){
>
> var totCount = 1;
>
>
> if(count < totCount){
> row["Date"] = myObject.entries.dimensions[0].value;
> row["RealDate"] = row["Date"].substring(0, 4) + '-' +
> row["Date"].substring(4,6) + '-' + row["Date"].substring(6,8);
> row["ContentPath"] = myObject.entries.dimensions[1].value;
> row["Country"] = myObject.entries.dimensions[2].value;
> row["Region"] = myObject.entries.dimensions[3].value;
> row["ContentViews"] = myObject.entries.metrics[0].value;
> row["TimeOnContent"] = myObject.entries.metrics[1].value;
> count++;
> return(true);
> }
> }
> else
>
>
> if ('entries' in myObject){
>
> var totCount = myObject.entries.length;
>
>
> if(count < totCount){
> row["Date"] = myObject.entries[count].dimensions[0].value;
> row["RealDate"] = row["Date"].substring(0, 4) + '-' +
> row["Date"].substring(4,6) + '-' + row["Date"].substring(6,8);
> row["ContentPath"] = myObject.entries[count].dimensions[1].value;
> row["Country"] = myObject.entries[count].dimensions[2].value;
> row["Region"] = myObject.entries[count].dimensions[3].value;
> row["ContentViews"] = myObject.entries[count].metrics[0].value;
> row["TimeOnContent"] = myObject.entries[count].metrics[1].value;
> count++;
> return (true);
> }
> }
>
> return (false);
>
> I hope this helps.
>
Re: Exception in Birt while loading class in Google Analytics client library [message #667633 is a reply to message #667612] Sat, 30 April 2011 08:07 Go to previous messageGo to next message
piratejackus is currently offline piratejackusFriend
Messages: 13
Registered: April 2011
Junior Member
Hi all,

Meghan, thank you for this solution but i got some questions:
- Where did you put those jars? classpath, scriptlib, WEB-INF/lib,Report Design -> Property Editor -> Jar Files (which one or ones?)
- I think you created those classes,com,google,data directories and also for your depending classes that other directory, am i right?
- If you already referenced ga api libraries, why did you placed AnalyticsServiceAdapter.class under WEB-INF too?

In my side, i have some news too!
i created a bug form for the birt application and this issue. can be found;
https://bugs.eclipse.org/bugs/show_bug.cgi?id=344239
I received a patch for the URLClassLoader.java from the birt team. I applied it and it worked for me. I don't have anymore problems on this issue. That may help you too.
(The patch and the solution is in that link)

Thank you one more time Meghan and Jason for all your effort.
Ciao!


Jason Weathersby wrote on Sat, 30 April 2011 00:02
Thanks Meghan. This is good information.

On 4/29/2011 4:12 PM, Meghan wrote:
> We actually got this working.
>
> We downloaded the following jars:
> gdata-analytics-2.1
> gdata-analytics-meta-2.1
> gdata-client-1.0
> gdata-client-meta-1.0
> gdata-core-1.0
> google-collect-1.0-rc1
>
> The class files were unpacked and stored in the plugin folder of our
> Eclipse directory. My path looks like this:
>
> C:\Eclipse\eclipse\plugins\org.eclipse.birt.report.viewer_2.
> 6.1.v20100913\birt\WEB-INF\classes\com\google\gdata
>
> We've also created another directory under classes\com\[remainingpath]
> that stores the following class files:
>
> AnalyticsServiceAdapter.class, PriorityFutureTask.class,
> ThrottledPriorityBlockingQueue.class, and UsageData.class
>
> It is this set of class files that is referenced by our data set.
>
> in the data set open event we have code like this:
>
> count = 0;
> var myUrl = 'https://www.google.com/analytics/feeds/data' +
> // this is your google account ID
> '?ids=ga%##### +
> '&dimensions=ga%3Adate%2Cga%3ApagePath' +
> '%2Cga%3Acountry' + '%2Cga%3Aregion' +
> '&metrics=ga%3Apageviews%2Cga%3AtimeOnPage' +
> '&filters=ga%3ApagePath%3D%40training%2F' + '&sort=-ga%3Apageviews' +
> '&start-date=2010-01-01' +
> '&end-date=2010-01-31'
> var gaa = new
> Packages.com.folderpath.google.analytics.AnalyticsServiceAda pter();
>
> stock = gaa.doQuery(myUrl);
>
> Then, in the fetch script we have:
>
> if (typeof stock == "undefined"){
> return (false);
> }
> var myObject = eval('(' + stock + ')');
> if (typeof myObject == "undefined"){
> return (false);
> }
>
>
> if ('entries' in myObject && typeof myObject.entries.length ==
> 'undefined'){
>
> var totCount = 1;
>
>
> if(count < totCount){
> row["Date"] = myObject.entries.dimensions[0].value;
> row["RealDate"] = row["Date"].substring(0, 4) + '-' +
> row["Date"].substring(4,6) + '-' + row["Date"].substring(6,8);
> row["ContentPath"] = myObject.entries.dimensions[1].value;
> row["Country"] = myObject.entries.dimensions[2].value;
> row["Region"] = myObject.entries.dimensions[3].value;
> row["ContentViews"] = myObject.entries.metrics[0].value;
> row["TimeOnContent"] = myObject.entries.metrics[1].value;
> count++;
> return(true);
> }
> }
> else
>
>
> if ('entries' in myObject){
>
> var totCount = myObject.entries.length;
>
>
> if(count < totCount){
> row["Date"] = myObject.entries[count].dimensions[0].value;
> row["RealDate"] = row["Date"].substring(0, 4) + '-' +
> row["Date"].substring(4,6) + '-' + row["Date"].substring(6,8);
> row["ContentPath"] = myObject.entries[count].dimensions[1].value;
> row["Country"] = myObject.entries[count].dimensions[2].value;
> row["Region"] = myObject.entries[count].dimensions[3].value;
> row["ContentViews"] = myObject.entries[count].metrics[0].value;
> row["TimeOnContent"] = myObject.entries[count].metrics[1].value;
> count++;
> return (true);
> }
> }
>
> return (false);
>
> I hope this helps.
>

[Updated on: Sat, 30 April 2011 08:08]

Report message to a moderator

Re: Exception in Birt while loading class in Google Analytics client library [message #685826 is a reply to message #667633] Mon, 20 June 2011 09:57 Go to previous messageGo to next message
Teo  is currently offline Teo Friend
Messages: 14
Registered: May 2011
Junior Member
Hi,

I am trying to reproduce the solution that is suggested in this thread, for using scripted datasets to produce reports with data extracted from the Google Analytics Data API. It is rather difficult to follow the instructions here. I have tried moving the google api jar here and there but I still dont have any results. Is there some way I can get an example of how this could be done?

Thank you for your help

-Teo
Re: Exception in Birt while loading class in Google Analytics client library [message #685830 is a reply to message #685826] Mon, 20 June 2011 10:10 Go to previous messageGo to next message
piratejackus is currently offline piratejackusFriend
Messages: 13
Registered: April 2011
Junior Member
Hi Teo,

What is your problem exactly? Can you post your stacktrace or any error message? Did you try to use the patched version of URLClassLoader class?
Re: Exception in Birt while loading class in Google Analytics client library [message #685979 is a reply to message #685830] Tue, 21 June 2011 08:44 Go to previous messageGo to next message
Teo  is currently offline Teo Friend
Messages: 14
Registered: May 2011
Junior Member
Hi,

I am trying to fetch some data from GA and present them through a scripted data source. I currently have the POJOs that implement the model of the scripted data source in the ...org.eclipse.birt.report.viewer_2.6.2.r262_v20110214\birt\WEB-INF\classes\com\gamodel folder and include the GA jars in the report designer classpath. The jars are located inside the scriptlib folder, but I have also extracted the gdata folder as follows ...org.eclipse.birt.report.viewer_2.6.2.r262_v20110214\birt\WEB-INF\classes\com\google\gdata . Do I need to put them somewhere else?

Thank you for your help,
Teo


this is the stacktrace I get by using the patched URLClassLoader...



org.eclipse.birt.report.service.api.ReportServiceException: Error happened while running the report.
at org.eclipse.birt.report.service.ReportEngineService.throwDummyException(ReportEngineService.java:1105)
at org.eclipse.birt.report.service.ReportEngineService.runAndRenderReport(ReportEngineService.java:934)
at org.eclipse.birt.report.service.BirtViewerReportService.runAndRenderReport(BirtViewerReportService.java:973)
at org.eclipse.birt.report.service.actionhandler.BirtGetPageAllActionHandler.__execute(BirtGetPageAllActionHandler.java:131)
at org.eclipse.birt.report.service.actionhandler.AbstractBaseActionHandler.execute(AbstractBaseActionHandler.java:90)
at org.eclipse.birt.report.soapengine.processor.AbstractBaseDocumentProcessor.__executeAction(AbstractBaseDocumentProcessor.java:47)
at org.eclipse.birt.report.soapengine.processor.AbstractBaseComponentProcessor.executeAction(AbstractBaseComponentProcessor.java:143)
at org.eclipse.birt.report.soapengine.processor.BirtDocumentProcessor.handleGetPageAll(BirtDocumentProcessor.java:183)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.eclipse.birt.report.soapengine.processor.AbstractBaseComponentProcessor.process(AbstractBaseComponentProcessor.java:112)
at org.eclipse.birt.report.soapengine.endpoint.BirtSoapBindingImpl.getUpdatedObjects(BirtSoapBindingImpl.java:66)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.axis.providers.java.RPCProvider.invokeMethod(RPCProvider.java:397)
at org.apache.axis.providers.java.RPCProvider.processMessage(RPCProvider.java:186)
at org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider.java:323)
at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
at org.apache.axis.handlers.soap.SOAPService.invoke(SOAPService.java:454)
at org.apache.axis.server.AxisServer.invoke(AxisServer.java:281)
at org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:699)
at org.eclipse.birt.report.servlet.BirtSoapMessageDispatcherServlet.doPost(BirtSoapMessageDispatcherServlet.java:265)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
at org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:327)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at org.eclipse.birt.report.servlet.BirtSoapMessageDispatcherServlet.service(BirtSoapMessageDispatcherServlet.java:122)
at org.eclipse.equinox.http.registry.internal.ServletManager$ServletWrapper.service(ServletManager.java:180)
at org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:61)
at org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:126)
at org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:60)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at org.eclipse.equinox.http.jetty.internal.HttpServerManager$InternalHttpServiceServlet.service(HttpServerManager.java:318)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)
at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:390)
at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
at org.mortbay.jetty.Server.handle(Server.java:326)
at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542)
at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:939)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:756)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409)
at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)
Caused by: org.eclipse.birt.report.engine.api.EngineException: Error happened while running the report.
at org.eclipse.birt.report.engine.api.impl.RunAndRenderTask.doRun(RunAndRenderTask.java:209)
at org.eclipse.birt.report.engine.api.impl.RunAndRenderTask.run(RunAndRenderTask.java:77)
at org.eclipse.birt.report.service.ReportEngineService.runAndRenderReport(ReportEngineService.java:928)
... 49 more
Caused by: java.lang.NoClassDefFoundError: com/google/gdata/util/AuthenticationException
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Class.java:2427)
at java.lang.Class.privateGetPublicMethods(Class.java:2547)
at java.lang.Class.getMethods(Class.java:1410)
at org.mozilla.javascript.JavaMembers.discoverAccessibleMethods(JavaMembers.java:380)
at org.mozilla.javascript.JavaMembers.discoverAccessibleMethods(JavaMembers.java:335)
at org.mozilla.javascript.JavaMembers.reflect(JavaMembers.java:450)
at org.mozilla.javascript.JavaMembers.(JavaMembers.java:76)
at org.mozilla.javascript.JavaMembers.lookupClass(JavaMembers.java:838)
at org.mozilla.javascript.NativeJavaClass.initMembers(NativeJavaClass.java:84)
at org.mozilla.javascript.NativeJavaClass.(NativeJavaClass.java:78)
at org.mozilla.javascript.NativeJavaPackage.getPkgProperty(NativeJavaPackage.java:164)
at org.mozilla.javascript.ImporterTopLevel.getPackageProperty(ImporterTopLevel.java:146)
at org.mozilla.javascript.ImporterTopLevel.get(ImporterTopLevel.java:134)
at org.mozilla.javascript.ScriptableObject.getProperty(ScriptableObject.java:1617)
at org.mozilla.javascript.ScriptRuntime.topScopeName(ScriptRuntime.java:1788)
at org.mozilla.javascript.ScriptRuntime.nameOrFunction(ScriptRuntime.java:1755)
at org.mozilla.javascript.ScriptRuntime.name(ScriptRuntime.java:1697)
at org.mozilla.javascript.gen.c5._c1(/report/data-sets/script-data-set[@id="8"]/method[@name="open"]:4)
at org.mozilla.javascript.gen.c5.call(/report/data-sets/script-data-set[@id="8"]/method[@name="open"])
at org.mozilla.javascript.optimizer.OptRuntime.callName0(OptRuntime.java:108)
at org.mozilla.javascript.gen.c6._c0(/report/data-sets/script-data-set[@id="8"]/method[@name="open"]:0)
at org.mozilla.javascript.gen.c6.call(/report/data-sets/script-data-set[@id="8"]/method[@name="open"])
at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:398)
at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3065)
at org.mozilla.javascript.gen.c6.call(/report/data-sets/script-data-set[@id="8"]/method[@name="open"])
at org.mozilla.javascript.gen.c6.exec(/report/data-sets/script-data-set[@id="8"]/method[@name="open"])
at org.eclipse.birt.core.script.JavascriptEvalUtil.evaluateRawScript(JavascriptEvalUtil.java:95)
at org.eclipse.birt.core.script.JavascriptEvalUtil.evaluateScript(JavascriptEvalUtil.java:134)
at org.eclipse.birt.data.engine.script.ScriptEvalUtil.evaluateJSAsExpr(ScriptEvalUtil.java:1001)
at org.eclipse.birt.data.engine.script.JSMethodRunner.runScript(JSMethodRunner.java:138)
at org.eclipse.birt.report.engine.script.internal.DtEScriptExecutor.handleJS(DtEScriptExecutor.java:90)
at org.eclipse.birt.report.engine.script.internal.DataSetScriptExecutor.handleJS(DataSetScriptExecutor.java:246)
at org.eclipse.birt.report.engine.script.internal.ScriptDataSetScriptExecutor.handleOpen(ScriptDataSetScriptExecutor.java:97)
at org.eclipse.birt.data.engine.impl.ScriptDataSetRuntime.open(ScriptDataSetRuntime.java:80)
at org.eclipse.birt.data.engine.impl.PreparedScriptDSQuery$ScriptDSQueryExecutor$CustomDataSet.open(PreparedScriptDSQuery.java:247)
at org.eclipse.birt.data.engine.impl.PreparedScriptDSQuery$ScriptDSQueryExecutor.executeOdiQuery(PreparedScriptDSQuery.java:223)
at org.eclipse.birt.data.engine.impl.QueryExecutor.execute(QueryExecutor.java:1103)
at org.eclipse.birt.data.engine.impl.ServiceForQueryResults.executeQuery(ServiceForQueryResults.java:232)
at org.eclipse.birt.data.engine.impl.QueryResults.getResultIterator(QueryResults.java:173)
at org.eclipse.birt.report.engine.data.dte.QueryResultSet.(QueryResultSet.java:98)
at org.eclipse.birt.report.engine.data.dte.DteDataEngine.doExecuteQuery(DteDataEngine.java:168)
at org.eclipse.birt.report.engine.data.dte.AbstractDataEngine.execute(AbstractDataEngine.java:265)
at org.eclipse.birt.report.engine.executor.ExecutionContext.executeQuery(ExecutionContext.java:1890)
at org.eclipse.birt.report.engine.executor.QueryItemExecutor.executeQuery(QueryItemExecutor.java:80)
at org.eclipse.birt.report.engine.executor.TableItemExecutor.execute(TableItemExecutor.java:62)
at org.eclipse.birt.report.engine.internal.executor.dup.SuppressDuplicateItemExecutor.execute(SuppressDuplicateItemExecutor.java:43)
at org.eclipse.birt.report.engine.internal.executor.wrap.WrappedReportItemExecutor.execute(WrappedReportItemExecutor.java:46)
at org.eclipse.birt.report.engine.internal.executor.l18n.LocalizedReportItemExecutor.execute(LocalizedReportItemExecutor.java:34)
at org.eclipse.birt.report.engine.layout.html.HTMLBlockStackingLM.layoutNodes(HTMLBlockStackingLM.java:65)
at org.eclipse.birt.report.engine.layout.html.HTMLPageLM.layout(HTMLPageLM.java:90)
at org.eclipse.birt.report.engine.layout.html.HTMLReportLayoutEngine.layout(HTMLReportLayoutEngine.java:99)
at org.eclipse.birt.report.engine.api.impl.RunAndRenderTask.doRun(RunAndRenderTask.java:180)
... 51 more
Caused by: java.lang.ClassNotFoundException: com.google.gdata.util.AuthenticationException
at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:506)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:422)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:410)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
... 104 more

[Updated on: Tue, 21 June 2011 12:40]

Report message to a moderator

Re: Exception in Birt while loading class in Google Analytics client library [message #685982 is a reply to message #685979] Tue, 21 June 2011 09:04 Go to previous messageGo to next message
piratejackus is currently offline piratejackusFriend
Messages: 13
Registered: April 2011
Junior Member
That exception is the same that i got before. Here is my project hierarchy:
piratejackus@D20715:~/software/springsource/workspace-sts-2.6.0.SR1/GAFetcher$ tree -a
.
|-- bin
|   |-- constants
|   |   `-- LoginCredentials.class
|   |-- gafetcher
|   |   |-- GAFetcherTest.class
|   |   `-- MyProjectUserSystemInfo.class
|   |-- js
|   |   `-- debugWindow.js
|   |-- models
|   |   `-- UserSystemAndVisitInfo.class
|   `-- reports
|       `-- myProject_user_ga.rptdesign
|-- .classpath
|-- lib
|   |-- activation.jar
|   |-- gdata-analytics-2.1.jar
|   |-- gdata-analytics-meta-2.1.jar
|   |-- gdata-client-1.0.jar
|   |-- gdata-client-meta-1.0.jar
|   |-- gdata-core-1.0.jar
|   |-- gdata-docs-3.0.jar
|   |-- gdata-docs-meta-3.0.jar
|   |-- gdata-media-1.0.jar
|   |-- google-collect-1.0-rc1.jar
|   |-- jsr305.jar
|   |-- mail.jar
|   `-- servlet-api.jar
|-- .project
|-- .settings
|   `-- org.eclipse.jdt.core.prefs
`-- src
    |-- constants
    |   `-- LoginCredentials.java
    |-- gafetcher
    |   |-- GAFetcherTest.java
    |   `-- MyProjectUserSystemInfo.java
    |-- js
    |   `-- debugWindow.js
    |-- models
    |   `-- UserSystemAndVisitInfo.java
    `-- reports
        `-- myProject_user_ga.rptdesign



i also have these libraries under scriptlib directory(actually i didn't try by removing libraries from here):
piratejackus@D20715:~/software/springsource/sts-2.5.2.SR1/plugins/org.eclipse.birt.report.viewer_2.6.2.r262_v20110214/birt/scriptlib$ ls
activation.jar           gdata-analytics-meta-2.1.jar  gdata-client-meta-1.0.jar  gdata-docs-3.0.jar       gdata-media-1.0.jar         jsr305.jar  readme.txt
gdata-analytics-2.1.jar  gdata-client-1.0.jar          gdata-core-1.0.jar         gdata-docs-meta-3.0.jar  google-collect-1.0-rc1.jar  mail.jar    servlet-api.jar


Can you preview the results in your dateset properties(right click your dataset and click on edit then preview results)? Just to be sure if your scripting code(java script) and POJOs works well.

If you can get results here so try to replace your libraries as i mentioned above.
If you have still problems, let me know.

[Updated on: Tue, 21 June 2011 09:05]

Report message to a moderator

Re: Exception in Birt while loading class in Google Analytics client library [message #686032 is a reply to message #685982] Tue, 21 June 2011 12:54 Go to previous messageGo to next message
Teo  is currently offline Teo Friend
Messages: 14
Registered: May 2011
Junior Member
the POJOs and the javascript code seem to be working fine as I tried them with some dummy data. The problem apears when I try to connect to GA to get the data. That is when I get this exception. I don't know what your implementation is but I am trying to connet to the GA API inside my Java Classes and not by using javascript in the report design.. So you just moved the jars to the scriptlib, recompiled the URLClassLoader.java, applied the produced classes and it worked? The hierarchy in your workspace is not that important, right?
Re: Exception in Birt while loading class in Google Analytics client library [message #686036 is a reply to message #686032] Tue, 21 June 2011 13:18 Go to previous messageGo to next message
piratejackus is currently offline piratejackusFriend
Messages: 13
Registered: April 2011
Junior Member
In one of my older post i gave a link (which is: http://www.birt-exchange.org/org/forum/index.php/topic/22184-google-analytics-api-as-a-scripted-data-source/) where you can find all my source code. I used java classes to get GA data too. Java script is just to call my java classes from report.
The hierarchy is not important. I got it working just after i applied the patch.
Did you apply the patch? I couldn't see the NPE in your stack trace, is that all of the trace?

At last, you have a AuthenticationException which is different from my situation i guess (i made a mistake buy saying that they are same problems).

[Updated on: Tue, 21 June 2011 13:19]

Report message to a moderator

Re: Exception in Birt while loading class in Google Analytics client library [message #686452 is a reply to message #686036] Wed, 22 June 2011 09:05 Go to previous messageGo to next message
Teo  is currently offline Teo Friend
Messages: 14
Registered: May 2011
Junior Member
Thanks for your help, it was absolutely vital Smile. I finally got it working. I had some real authentication issues and that is why I could not get any results.

-Te0
Re: Exception in Birt while loading class in Google Analytics client library [message #686454 is a reply to message #686452] Wed, 22 June 2011 09:12 Go to previous message
piratejackus is currently offline piratejackusFriend
Messages: 13
Registered: April 2011
Junior Member
Gald to hear that. Good luck on your project.
Previous Topic:Documented changes to font sizes?
Next Topic:PageVariable classcast-exception after osgi-bundle-refresh
Goto Forum:
  


Current Time: Thu Apr 18 18:21:05 GMT 2024

Powered by FUDForum. Page generated in 0.04715 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top