Go Back   Forum - BIRT Exchange > Deploying Reports Forums > Deploying and Integrating BIRT Report Engine in Applications

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-07-2009, 02:24 AM
Junior Member
 
Join Date: Apr 2009
Posts: 29
Default *HELP NEEDED*Error when deploying bar/pie charts

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

Last edited by ianlufc : 05-07-2009 at 04:24 AM.
Reply With Quote
  #2 (permalink)  
Old 05-07-2009, 04:36 AM
Junior Member
 
Join Date: Apr 2009
Posts: 29
Default got the stack trace fromt he logs

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)
Reply With Quote
  #3 (permalink)  
Old 05-07-2009, 02:56 PM
Senior Member
 
Join Date: May 2008
Posts: 4,215
Send a message via Yahoo to mwilliams
Default

Hi ianlufc,

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

Michael
http://twitter.com/mwilliams_actu
Reply With Quote
  #4 (permalink)  
Old 05-08-2009, 02:47 AM
Junior Member
 
Join Date: Apr 2009
Posts: 29
Default Thanks for your reply

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 Files
File Type: rptdesign testPie.rptdesign (33.5 KB, 1 views)
Reply With Quote
  #5 (permalink)  
Old 05-11-2009, 09:21 AM
Senior Member
 
Join Date: May 2008
Posts: 4,215
Send a message via Yahoo to mwilliams
Default

ianlufc,

What version of BIRT and BIRT runtime are you using?
__________________
Regards,

Michael
http://twitter.com/mwilliams_actu
Reply With Quote
  #6 (permalink)  
Old 05-12-2009, 02:54 AM
Junior Member
 
Join Date: Apr 2009
Posts: 29
Default

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
Reply With Quote
  #7 (permalink)  
Old 05-14-2009, 08:42 AM
Senior Member
 
Join Date: May 2008
Posts: 4,215
Send a message via Yahoo to mwilliams
Default

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.
__________________
Regards,

Michael
http://twitter.com/mwilliams_actu
Reply With Quote
  #8 (permalink)  
Old 05-15-2009, 02:04 AM
Junior Member
 
Join Date: Apr 2009
Posts: 29
Default Thanks

Hi Michael

Thanks for that il give it a go

I appreciate the help

Ian
Reply With Quote
  #9 (permalink)  
Old 05-18-2009, 10:40 AM
Senior Member
 
Join Date: May 2008
Posts: 4,215
Send a message via Yahoo to mwilliams
Default

Ian,

No problem. Let us know whenever you have questions!
__________________
Regards,

Michael
http://twitter.com/mwilliams_actu
Reply With Quote
  #10 (permalink)  
Old 05-21-2009, 05:25 AM
Junior Member
 
Join Date: Apr 2009
Posts: 29
Default Still having trouble

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
<?xml version="1.0" encoding="UTF-8"?>
<report xmlns="http://www.eclipse.org/birt/2005/design" version="3.2.17" id="1">
<property name="createdBy">Eclipse BIRT Designer Version 2.3.2.r232_20090202 Build &lt;2.3.2.v20090304-1357></property>
<property name="units">in</property>
<property name="iconFile">/templates/grouped_listing.gif</property>
<property name="cheatSheet">org.eclipse.birt.report.designer.ui.cheatsheet.groupedlisting</property>
<property name="bidiLayoutOrientation">ltr</property>
<parameters>
<scalar-parameter name="cat" id="52">
<property name="valueType">dynamic</property>
<property name="dataType">string</property>

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

Last edited by ianlufc : 05-21-2009 at 05:29 AM.
Reply With Quote
Reply


Thread Tools
Display Modes




All times are GMT -7. The time now is 02:55 AM.
Powered by vBulletin Copyright © 2000-2010 Jelsoft Enterprises Limited.


Content Relevant URLs by vBSEO 3.1.0