Error when deploying bar/pie charts
#1
Posted 07 May 2009 - 12:24 AM
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
#2
Posted 07 May 2009 - 02:36 AM
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)
#3
Posted 07 May 2009 - 12:56 PM
Can you recreate this issue with the sample, classic models database so I can see it for myself? Thanks.
#4
Posted 08 May 2009 - 12:47 AM
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
Attached File(s)
-
testPie.rptdesign (33.48K)
Number of downloads: 1 -
testPie.rptdesign (33.48K)
Number of downloads: 2
#5
Posted 11 May 2009 - 07:21 AM
What version of BIRT and BIRT runtime are you using?
#7
Posted 14 May 2009 - 06:42 AM
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. :)
#9
Posted 18 May 2009 - 08:40 AM
No problem. Let us know whenever you have questions!
#10
Posted 21 May 2009 - 03:25 AM
I'm still having trouble with deploying these reports in birt runtime
have a question for you,
when i create my report in eclipse and look at the XML source the version is 3.2.17 see below
but the plug in i use is 2_3_2 hmmm
What version of the runtime should be compatible with any typre of reports generated by my version in eclipse???
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
Error "Constants.request.rtl" is null or not an object..
But when i preview them in eclipse they work fine
Oh im now using BIRT runtim 2_3_2 on the server
Sorry about long message
Thanks
Ian
#12
Posted 21 May 2009 - 12:47 PM
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?
#13
Posted 22 May 2009 - 12:14 AM
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
#14
Posted 26 May 2009 - 11:37 AM
Where are you putting the reports in the deployed viewer? And what URL are you using to call the reports?
#15
Posted 28 May 2009 - 06:40 AM
To call the reports i use
http://localhost:8080/birt-viewer232/run?__report=Report\LCReport\pfr\PFRparamLifecycle.rptdesign&__parameterpage=true"/target=_self>
this works for normal grouped reports
and i put the reports in a structure like this
D:\siteFolder\Tomcat554\webapps\birt-viewer232\report\LCReport\pfr\
Thanks
#16
Posted 28 May 2009 - 06:46 AM
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
#17
Posted 28 May 2009 - 09:09 AM
Glad I could help! Let us know whenever you have questions. :)




MultiQuote


