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)
Error when deploying bar/pie charts
ianlufc
Hey Guys
Im running BIRT viewer on Tomcat
i can run a basic report e.g. data displayed on a table
BUT when i run a pie/bar chart i get a stack trace..the app doesnt let me copy the stack trace but it is similar to below
i created the chart in eclipse throught the plugin, would i be missing jars or something?????
SEVERE: An error happened while running the report. Cause:
java.lang.NullPointerException
at org.eclipse.emf.ecore.util.EcoreUtil$Copier.createCopy(EcoreUtil.java:488)
at org.eclipse.emf.ecore.util.EcoreUtil$Copier.copy(EcoreUtil.java:438)
at org.eclipse.emf.ecore.util.EcoreUtil.copy(EcoreUtil.java:355)
at org.eclipse.birt.chart.factory.Generator.prepare(Generator.java:614)
at org.eclipse.birt.chart.reportitem.ChartReportItemGenerationImpl.onRowSets(ChartReportItemGenerationImpl.java:137)
at org.eclipse.birt.report.engine.executor.ExtendedItemExecutor.generateContent(ExtendedItemExecutor.java:141)
at org.eclipse.birt.report.engine.executor.ExtendedItemExecutor.execute(ExtendedItemExecutor.java:88)
at org.eclipse.birt.report.engine.internal.executor.l18n.LocalizedReportItemExecutor.execute(LocalizedReportItemExecutor.java:35)
at org.eclipse.birt.report.engine.layout.html.HTMLPageLM.layoutChildren(HTMLPageLM.java:123)
at org.eclipse.birt.report.engine.layout.html.HTMLPageLM.layout(HTMLPageLM.java:81)
at org.eclipse.birt.report.engine.layout.html.HTMLReportLayoutEngine.layout(HTMLReportLayoutEngine.java:80)
at org.eclipse.birt.report.engine.api.impl.RunAndRenderTask.run(RunAndRenderTask.java:194)
at com.buildforge.report.tag.RenderTag.render(RenderTag.java:177)
at com.buildforge.report.tag.RenderTag.render(RenderTag.java:120)
at com.buildforge.report.tag.RenderTag.doEndTag(RenderTag.java:77)
at org.apache.jsp.jsp.reports.performance_jsp._jspService(org.apache.jsp.jsp.reports.performance_jsp:505)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at com.buildforge.report.servlet.filter.LicenseFilter.doFilter(LicenseFilter.java:80)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at com.buildforge.report.servlet.filter.PermissionsFilter.doFilter(PermissionsFilter.java:53)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at com.buildforge.report.servlet.filter.AuthenticationFilter.doFilter(AuthenticationFilter.java:67)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Thread.java:803)
ANY HELP GREATLY APPRECIATED
Thanks
Find more posts tagged with
Comments
ianlufc
Just to verify
when i preview the chart in eclipse it works
But when i copy it to my tomcat server it blows a stack trace below
07-May-2009 11:31:12 org.eclipse.birt.chart.reportitem.ChartReportItemImpl getPropertyDefinitions
WARNING: Request for property definitions received before model was created.
07-May-2009 11:31:12 org.eclipse.birt.report.engine.api.impl.RunAndRenderTask doRun
SEVERE: An error happened while running the report. Cause:
java.lang.NullPointerException
at org.eclipse.emf.ecore.util.EcoreUtil$Copier.createCopy(EcoreUtil.java:488)
at org.eclipse.emf.ecore.util.EcoreUtil$Copier.copy(EcoreUtil.java:438)
at org.eclipse.emf.ecore.util.EcoreUtil.copy(EcoreUtil.java:355)
at org.eclipse.birt.chart.factory.Generator.prepare(Generator.java:627)
at org.eclipse.birt.chart.reportitem.ChartReportItemGenerationImpl.onRowSets(ChartReportItemGenerationImpl.java:142)
at org.eclipse.birt.report.engine.executor.ExtendedGenerateExecutor.generateContent(ExtendedGenerateExecutor.java:113)
at org.eclipse.birt.report.engine.executor.ExtendedGenerateExecutor.execute(ExtendedGenerateExecutor.java:72)
at org.eclipse.birt.report.engine.executor.ExtendedItemExecutor.execute(ExtendedItemExecutor.java:60)
at org.eclipse.birt.report.engine.internal.executor.dup.SuppressDuplicateItemExecutor.execute(SuppressDuplicateItemExecutor.java:42)
at org.eclipse.birt.report.engine.internal.executor.wrap.WrappedReportItemExecutor.execute(WrappedReportItemExecutor.java:45)
at org.eclipse.birt.report.engine.internal.executor.l18n.LocalizedReportItemExecutor.execute(LocalizedReportItemExecutor.java:33)
at org.eclipse.birt.report.engine.layout.html.HTMLBlockStackingLM.layoutNodes(HTMLBlockStackingLM.java:63)
at org.eclipse.birt.report.engine.layout.html.HTMLPageLM.layout(HTMLPageLM.java:85)
at org.eclipse.birt.report.engine.layout.html.HTMLReportLayoutEngine.layout(HTMLReportLayoutEngine.java:106)
at org.eclipse.birt.report.engine.api.impl.RunAndRenderTask.doRun(RunAndRenderTask.java:140)
at org.eclipse.birt.report.engine.api.impl.RunAndRenderTask.run(RunAndRenderTask.java:68)
at org.eclipse.birt.report.service.ReportEngineService.runAndRenderReport(Unknown Source)
at org.eclipse.birt.report.service.ReportEngineService.runAndRenderReport(Unknown Source)
at org.eclipse.birt.report.service.BirtViewerReportService.runAndRenderReport(Unknown Source)
at org.eclipse.birt.report.service.actionhandler.BirtGetPageAllActionHandler.__execute(Unknown Source)
at org.eclipse.birt.report.service.actionhandler.AbstractBaseActionHandler.execute(Unknown Source)
at org.eclipse.birt.report.soapengine.processor.AbstractBaseDocumentProcessor.__executeAction(Unknown Source)
at org.eclipse.birt.report.soapengine.processor.AbstractBaseComponentProcessor.executeAction(Unknown Source)
at org.eclipse.birt.report.soapengine.processor.BirtDocumentProcessor.handleGetPageAll(Unknown Source)
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:585)
at org.eclipse.birt.report.soapengine.processor.AbstractBaseComponentProcessor.process(Unknown Source)
at org.eclipse.birt.report.soapengine.endpoint.BirtSoapBindingImpl.getUpdatedObjects(Unknown Source)
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:585)
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:453)
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(Unknown Source)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
at org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:327)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
at org.eclipse.birt.report.filter.ViewerFilter.doFilter(Unknown Source)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:825)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:731)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:526)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Thread.java:595)
mwilliams
Hi ianlufc,
Can you recreate this issue with the sample, classic models database so I can see it for myself? Thanks.
ianlufc
Hi Michael
I tried it with the Customers data set and its still the same
Working fine in Eclipse when i preview it but when i copy it over to the Tomcat server i get the above stack trace
i have done simple Grouped listing and copied them over and they worked fine with both the sample dataset and the one i am currently using.
I thought deployment would have been the same regardless of which type of report you are generating.
Any ideas appreciated
Thanks Again
PS i have attached the testPie.rptdesign that i used with the sample dataset
mwilliams
ianlufc,
What version of BIRT and BIRT runtime are you using?
ianlufc
Hi Michael<br />
<br />
the plug ins for eclipse are of this format<br />
org.eclipse.birt.report.viewer_2.3.2.r232_20090212<br />
So im guessing Version <strong class='bbc'>2.3.2</strong><br />
<br />
and the runtime is <br />
birt-runtime-<strong class='bbc'>2_2_2</strong><br />
<br />
I never noticed they were different<br />
<br />
Do you think this would be the cause???<br />
Thanks <br />
Ian
mwilliams
Ian,
Running a 2.3.2 report on the 2.2.2 runtime will not work. You'll want to download the new runtime and deploy it to Tomcat. If you still have problems, let me know.
ianlufc
Hi Michael
Thanks for that il give it a go
I appreciate the help
Ian
mwilliams
Ian,
No problem. Let us know whenever you have questions!
ianlufc
Hi Michael<br />
<br />
I'm still having trouble with deploying these reports in birt runtime<br />
<br />
have a question for you, <br />
when i create my report in eclipse and look at the XML source the version is 3.2.17 see below<br />
<?xml version="1.0" encoding="UTF-8"?><br />
<report xmlns="
http://www.eclipse.org/birt/2005/design"
; <strong class='bbc'>version="3.2.17</strong>" id="1"><br />
<property name="createdBy">Eclipse BIRT Designer Version 2.3.2.r232_20090202 Build <2.3.2.v20090304-1357></property><br />
<property name="units">in</property><br />
<property name="iconFile">/templates/grouped_listing.gif</property><br />
<property name="cheatSheet">org.eclipse.birt.report.designer.ui.cheatsheet.groupedlisting</property><br />
<property name="bidiLayoutOrientation">ltr</property><br />
<parameters><br />
<scalar-parameter name="cat" id="52"><br />
<property name="valueType">dynamic</property><br />
<property name="dataType">string</property><br />
<br />
but the plug in i use is 2_3_2 hmmm<br />
What version of the runtime should be compatible with any typre of reports generated by my version in eclipse???<br />
<br />
At the moment if i create a simple report that groups data and i copy it straight into the folder on my tomcat server the application just hangs on the processsing please wait page and displays errors on page<br />
Error "Constants.request.rtl" is null or not an object..<br />
<br />
But when i preview them in eclipse they work fine<br />
Oh im now using BIRT runtim 2_3_2 on the server<br />
<br />
Sorry about long message<br />
Thanks<br />
Ian
ianlufc
Forgot to mention im now using BIRT runtime 2_3_2
mwilliams
Ian,
So, when you attempt to deploy the report you attached in here, you're getting an error? With both the designer and runtime of version 2.3.2?
ianlufc
Hi Michael
I since changed to BIRT 2_3_2 runtime, the reports i had working in 2_2_2(simple grouped reports) now wont work in this new enviroment.
The tesPie.rtp... that i attached here previously also wont work in the new Runtime 2_3_2 i get the stack trace attached
i tried modifying the xml source changing the version
it was originally 3.2.17
i tried 2.3.2
and "2.3.1
The errors only happen in runtime enviroment...the reports work fine in eclipse when i preview them
Thanks
Ian
mwilliams
Ian,
Where are you putting the reports in the deployed viewer? And what URL are you using to call the reports?
ianlufc
Hi Michael
To call the reports i use
http://localhost:8080/birt-viewer232/run?__report=ReportLCReportpfrPFRparamLifecycle.rptdesign&__parameterpage=true"/target=_self>
;
this works for normal grouped reports
and i put the reports in a structure like this
D:siteFolderTomcat554webappsbirt-viewer232reportLCReportpfr
Thanks
ianlufc
Hi Michael
Again sorry about this but i now have the chart reports working
i think the problem was when you told me to upgrade my viewer i did not deploy them properly with the correct URL
i have now done that and its working
Seriously thanks alot for your help you have increased my knowledge of BIRT from none to some :-)
Thanks
mwilliams
ianlufc,
Glad I could help! Let us know whenever you have questions.