BIRT Exchange Forum: Error when deploying bar/pie charts - BIRT Exchange Forum

Jump to content


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Error when deploying bar/pie charts Rate Topic: -----

#1 User is offline   ianlufc 

  • Junior Member
  • PipPip
  • Group: Members
  • Posts: 29
  • Joined: 24-April 09

Posted 07 May 2009 - 12:24 AM

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
0

#2 User is offline   ianlufc 

  • Junior Member
  • PipPip
  • Group: Members
  • Posts: 29
  • Joined: 24-April 09

Posted 07 May 2009 - 02:36 AM

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)
0

#3 User is offline   mwilliams 

  • BIRT Guru
  • Icon
  • View blog
  • Group: Administrators
  • Posts: 5565
  • Joined: 16-May 08

Posted 07 May 2009 - 12:56 PM

Hi ianlufc,

Can you recreate this issue with the sample, classic models database so I can see it for myself? Thanks.
0

#4 User is offline   ianlufc 

  • Junior Member
  • PipPip
  • Group: Members
  • Posts: 29
  • Joined: 24-April 09

Posted 08 May 2009 - 12:47 AM

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

Attached File(s)


0

#5 User is offline   mwilliams 

  • BIRT Guru
  • Icon
  • View blog
  • Group: Administrators
  • Posts: 5565
  • Joined: 16-May 08

Posted 11 May 2009 - 07:21 AM

ianlufc,

What version of BIRT and BIRT runtime are you using?
0

#6 User is offline   ianlufc 

  • Junior Member
  • PipPip
  • Group: Members
  • Posts: 29
  • Joined: 24-April 09

Posted 12 May 2009 - 12:54 AM

Hi Michael

the plug ins for eclipse are of this format
org.eclipse.birt.report.viewer_2.3.2.r232_20090212
So im guessing Version 2.3.2

and the runtime is
birt-runtime-2_2_2

I never noticed they were different

Do you think this would be the cause???
Thanks
Ian
0

#7 User is offline   mwilliams 

  • BIRT Guru
  • Icon
  • View blog
  • Group: Administrators
  • Posts: 5565
  • Joined: 16-May 08

Posted 14 May 2009 - 06:42 AM

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. :)
0

#8 User is offline   ianlufc 

  • Junior Member
  • PipPip
  • Group: Members
  • Posts: 29
  • Joined: 24-April 09

Posted 15 May 2009 - 12:04 AM

Hi Michael

Thanks for that il give it a go

I appreciate the help

Ian
0

#9 User is offline   mwilliams 

  • BIRT Guru
  • Icon
  • View blog
  • Group: Administrators
  • Posts: 5565
  • Joined: 16-May 08

Posted 18 May 2009 - 08:40 AM

Ian,

No problem. Let us know whenever you have questions!
0

#10 User is offline   ianlufc 

  • Junior Member
  • PipPip
  • Group: Members
  • Posts: 29
  • Joined: 24-April 09

Posted 21 May 2009 - 03:25 AM

Hi Michael

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

version="3.2.17" id="1">
Eclipse BIRT Designer Version 2.3.2.r232_20090202 Build <2.3.2.v20090304-1357>
in
/templates/grouped_listing.gif
org.eclipse.birt.report.designer.ui.cheatsheet.groupedlisting
ltr


dynamic
string

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
0

#11 User is offline   ianlufc 

  • Junior Member
  • PipPip
  • Group: Members
  • Posts: 29
  • Joined: 24-April 09

Posted 21 May 2009 - 03:27 AM

Forgot to mention im now using BIRT runtime 2_3_2
0

#12 User is offline   mwilliams 

  • BIRT Guru
  • Icon
  • View blog
  • Group: Administrators
  • Posts: 5565
  • Joined: 16-May 08

Posted 21 May 2009 - 12:47 PM

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?
0

#13 User is offline   ianlufc 

  • Junior Member
  • PipPip
  • Group: Members
  • Posts: 29
  • Joined: 24-April 09

Posted 22 May 2009 - 12:14 AM

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

Attached File(s)


0

#14 User is offline   mwilliams 

  • BIRT Guru
  • Icon
  • View blog
  • Group: Administrators
  • Posts: 5565
  • Joined: 16-May 08

Posted 26 May 2009 - 11:37 AM

Ian,

Where are you putting the reports in the deployed viewer? And what URL are you using to call the reports?
0

#15 User is offline   ianlufc 

  • Junior Member
  • PipPip
  • Group: Members
  • Posts: 29
  • Joined: 24-April 09

Posted 28 May 2009 - 06:40 AM

Hi Michael

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
0

#16 User is offline   ianlufc 

  • Junior Member
  • PipPip
  • Group: Members
  • Posts: 29
  • Joined: 24-April 09

Posted 28 May 2009 - 06:46 AM

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
0

#17 User is offline   mwilliams 

  • BIRT Guru
  • Icon
  • View blog
  • Group: Administrators
  • Posts: 5565
  • Joined: 16-May 08

Posted 28 May 2009 - 09:09 AM

ianlufc,

Glad I could help! Let us know whenever you have questions. :)
0

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users