Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Intelligence (Analytics)
"nested exception : java.lang.NullPointerException" when running a report
mrbrown
Hi!<br />
I'm building a report that integrates images from an url (I give variables in GET method in the url (php file) to build dynamically the image)<br />
But here is my problem :<br />
when I test the report in birt RCP designer, it's working well but when I test it in my tomcat server, I got this message :<br />
<pre class='_prettyXprint _lang-auto _linenums:0'>
org.eclipse.birt.report.service.api.ReportServiceException: Error happened while running the report.; nested exception is: java.lang.NullPointerException
</pre>
Exception stack trace :<br />
<pre class='_prettyXprint _lang-auto _linenums:0'>
org.eclipse.birt.report.engine.presentation.LocalizedContentVisitor.visitImage(LocalizedContentVisitor.java:579)
org.eclipse.birt.report.engine.content.impl.ImageContent.accept(ImageContent.java:80)
org.eclipse.birt.report.engine.presentation.LocalizedContentVisitor.localize(LocalizedContentVisitor.java:149)
org.eclipse.birt.report.engine.internal.executor.l18n.LocalizedReportItemExecutor.execute(LocalizedReportItemExecutor.java:36)
org.eclipse.birt.report.engine.executor.ReportExecutorUtil.executeAll(ReportExecutorUtil.java:86)
org.eclipse.birt.report.engine.executor.ReportExecutorUtil.executeAll(ReportExecutorUtil.java:91)
org.eclipse.birt.report.engine.executor.ReportExecutorUtil.executeAll(ReportExecutorUtil.java:91)
org.eclipse.birt.report.engine.executor.ReportExecutorUtil.executeAll(ReportExecutorUtil.java:91)
org.eclipse.birt.report.engine.executor.ReportExecutorUtil.executeAll(ReportExecutorUtil.java:91)
org.eclipse.birt.report.engine.executor.ReportExecutorUtil.executeMasterPage(ReportExecutorUtil.java:70)
org.eclipse.birt.report.engine.layout.html.HTMLPageLM.start(HTMLPageLM.java:151)
org.eclipse.birt.report.engine.layout.html.HTMLPageLM.layout(HTMLPageLM.java:89)
org.eclipse.birt.report.engine.layout.html.HTMLReportLayoutEngine.layout(HTMLReportLayoutEngine.java:101)
org.eclipse.birt.report.engine.api.impl.RenderTask$PageRangeRender.render(RenderTask.java:508)
org.eclipse.birt.report.engine.api.impl.RenderTask.render(RenderTask.java:221)
org.eclipse.birt.report.service.ReportEngineService.renderReport(ReportEngineService.java:1303)
org.eclipse.birt.report.service.BirtViewerReportService.getPage(BirtViewerReportService.java:178)
org.eclipse.birt.report.service.actionhandler.BirtChangeParameterActionHandler.doRenderPage(BirtChangeParameterActionHandler.java:81)
org.eclipse.birt.report.service.actionhandler.AbstractChangeParameterActionHandler.__execute(AbstractChangeParameterActionHandler.java:101)
org.eclipse.birt.report.service.actionhandler.AbstractBaseActionHandler.execute(AbstractBaseActionHandler.java:89)
org.eclipse.birt.report.soapengine.processor.AbstractBaseDocumentProcessor.__executeAction(AbstractBaseDocumentProcessor.java:47)
org.eclipse.birt.report.soapengine.processor.AbstractBaseComponentProcessor.executeAction(AbstractBaseComponentProcessor.java:159)
org.eclipse.birt.report.soapengine.processor.BirtDocumentProcessor.handleChangeParameter(BirtDocumentProcessor.java:100)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:597)
org.eclipse.birt.report.soapengine.processor.AbstractBaseComponentProcessor.process(AbstractBaseComponentProcessor.java:111)
org.eclipse.birt.report.soapengine.endpoint.BirtSoapBindingImpl.getUpdatedObjects(BirtSoapBindingImpl.java:66)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:597)
org.apache.axis.providers.java.RPCProvider.invokeMethod(RPCProvider.java:397)
org.apache.axis.providers.java.RPCProvider.processMessage(RPCProvider.java:186)
org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider.java:323)
org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
org.apache.axis.handlers.soap.SOAPService.invoke(SOAPService.java:454)
org.apache.axis.server.AxisServer.invoke(AxisServer.java:281)
org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:699)
org.eclipse.birt.report.servlet.BirtSoapMessageDispatcherServlet.doPost(BirtSoapMessageDispatcherServlet.java:225)<
</pre>
Could you help me with this please?
Find more posts tagged with
Comments
cypherdj
What version of Birt are you using?
mrbrown
I'm using the last version birt 2.3 and apache-tomcat 6.0.16
cypherdj
If you download the 2.3 source, you should be able to locate where the null pointer is being raised. Unfortunately, we have restrictions on our network so I cannot download this and find the root of the problem, I've the source code for 2.2.2 only.<br />
<br />
<a class='bbc_url' href='
http://www.eclipse.org/downloads/download.php?file=/birt/downloads/drops/R-R1-2_3_0-200806191030/birt-source-2_3_0.zip'>http://www.eclipse.org/downloads/download.php?file=/birt/downloads/drops/R-R1-2_3_0-200806191030/birt-source-2_3_0.zip</a><br
/>
<br />
I would expand the zip, locate LocalizedContentVisitor.java and find line 579.<br />
<br />
That should help you figure out what object is null in there,<br />
<br />
Hope that helps,<br />
Cedric
mrbrown
Thanks for your help cedric.
It seems that the problem came from an invalid image url in the report.
webpat
I've got exactly the same issue though the url is perfectly valid. It's visible in the designer but it raises the exception in the preview and at runtime.
Do you have any workarounds for this ?