PDA

View Full Version : the problem of JasperReport to pentaho



ellvn521
03-06-2006, 06:39 PM
Following the instruction of Create_Pentaho_Solution.pdf,i use the tool named "iReport" on version 1.2.0 to create japser-reports.and try to integerate them to pentaho.Following the instructions,i create a **.jrxml with ireport, then build it to get the **.jasper file. And next, copy this two files into the {pci}/pentaho-solutions/samples/reporting.By studying the example of jasperreport integerated to pentaho named "Quadrant.jrxml" and pdf instruction, i create a **.xaction sequence to mapping with **.jrxml.The problem now is the pentaho-demo couldn't load the design of this jasperreport.I've tried to change the version of ireport, create the JNDI entry like the report integrating to pentaho with pentaho report wizard, also use JDBC entry...but noting could be helped!Could you tell me why?
And addition,i've used the tool of iReport since last year before.

2006-03-07 10:17:27,124 DEBUG [org.pentaho.jasper.JasperReportsComponent] 85adf426-ad80-11da-96df-e1022918a255:COMPONENT:context-14552233-1141697847104:testreport.xaction ????"D:/pentaho-demo/pentaho-solutions\\samples\\reporting\\testreport.jrxml"
2006-03-07 10:17:27,124 DEBUG [org.pentaho.jasper.JasperReportsComponent] 85adf426-ad80-11da-96df-e1022918a255:COMPONENT:context-14552233-1141697847104:testreport.xaction ??????
2006-03-07 10:17:27,124 DEBUG [org.pentaho.jasper.JasperReportsComponent] 85adf426-ad80-11da-96df-e1022918a255:COMPONENT:context-14552233-1141697847104:testreport.xaction ???????? D:\\pentaho-demo\\pentaho-solutions\\samples\\reporting\\testreport.jasper
2006-03-07 10:17:27,124 DEBUG [org.pentaho.jasper.JasperReportsComponent] 85adf426-ad80-11da-96df-e1022918a255:COMPONENT:context-14552233-1141697847104:testreport.xaction ??????? html
2006-03-07 10:17:27,124 DEBUG [org.pentaho.jasper.JasperReportsComponent] 85adf426-ad80-11da-96df-e1022918a255:COMPONENT:context-14552233-1141697847104:testreport.xaction ??????
2006-03-07 10:17:27,124 ERROR [org.pentaho.jasper.JasperReportsComponent] Error Start: Pentaho [zh_CN_140] 1.0.0.0 build [zh_CN_136] 0001
2006-03-07 10:17:27,124 ERROR [org.pentaho.jasper.JasperReportsComponent] 85adf426-ad80-11da-96df-e1022918a255:COMPONENT:context-14552233-1141697847104:testreport.xaction JasperReport.ERROR_0012 - ???????????
java.io.InvalidClassException: net.sf.jasperreports.engine.base.JRBaseReport; local class incompatible: stream classdesc serialVersionUID = 10200, local class serialVersionUID = 10000
at java.io.ObjectStreamClass.initNonProxy(Unknown Source)
at java.io.ObjectInputStream.readNonProxyDesc(Unknown Source)
at java.io.ObjectInputStream.readClassDesc(Unknown Source)
at java.io.ObjectInputStream.readNonProxyDesc(Unknown Source)
at java.io.ObjectInputStream.readClassDesc(Unknown Source)
at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
at java.io.ObjectInputStream.readObject0(Unknown Source)
at java.io.ObjectInputStream.readObject(Unknown Source)
at net.sf.jasperreports.engine.util.JRLoader.loadObject(JRLoader.java:85)
at net.sf.jasperreports.engine.util.JRLoader.loadObject(JRLoader.java:62)
at org.pentaho.jasper.JasperReportsComponent.executeAction(Unknown Source)
at org.pentaho.component.ComponentBase.execute(Unknown Source)
at org.pentaho.runtime.RuntimeContext.executeComponent(Unknown Source)
at org.pentaho.runtime.RuntimeContext.executeAction(Unknown Source)
at org.pentaho.runtime.RuntimeContext.executeLoop(Unknown Source)
at org.pentaho.runtime.RuntimeContext.executeSequence(Unknown Source)
at org.pentaho.runtime.RuntimeContext.executeSequence(Unknown Source)
at org.pentaho.solution.SolutionEngine.execute(Unknown Source)
at org.pentaho.services.BaseRequestHandler.handleActionRequest(Unknown Source)
at org.pentaho.ui.servlet.ViewAction.doGet(Unknown Source)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(Unknown Source)
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.jboss.web.tomcat.security.CustomPrincipalValve.invoke(Unknown Source)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(Unknown Source)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(Unknown Source)
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.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
at java.lang.Thread.run(Unknown Source)

NESTED BY :
net.sf.jasperreports.engine.JRException: Error loading object from file : D:\\pentaho-demo\\pentaho-solutions\\samples\\reporting\\testreport.jasper
at net.sf.jasperreports.engine.util.JRLoader.loadObject(JRLoader.java:89)
at net.sf.jasperreports.engine.util.JRLoader.loadObject(JRLoader.java:62)
at org.pentaho.jasper.JasperReportsComponent.executeAction(Unknown Source)
at org.pentaho.component.ComponentBase.execute(Unknown Source)
at org.pentaho.runtime.RuntimeContext.executeComponent(Unknown Source)
at org.pentaho.runtime.RuntimeContext.executeAction(Unknown Source)
at org.pentaho.runtime.RuntimeContext.executeLoop(Unknown Source)
at org.pentaho.runtime.RuntimeContext.executeSequence(Unknown Source)
at org.pentaho.runtime.RuntimeContext.executeSequence(Unknown Source)
at org.pentaho.solution.SolutionEngine.execute(Unknown Source)
at org.pentaho.services.BaseRequestHandler.handleActionRequest(Unknown Source)
at org.pentaho.ui.servlet.ViewAction.doGet(Unknown Source)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(Unknown Source)
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.jboss.web.tomcat.security.CustomPrincipalValve.invoke(Unknown Source)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(Unknown Source)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(Unknown Source)
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.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
at java.lang.Thread.run(Unknown Source)
Caused by: java.io.InvalidClassException: net.sf.jasperreports.engine.base.JRBaseReport; local class incompatible: stream classdesc serialVersionUID = 10200, local class serialVersionUID = 10000
at java.io.ObjectStreamClass.initNonProxy(Unknown Source)
at java.io.ObjectInputStream.readNonProxyDesc(Unknown Source)
at java.io.ObjectInputStream.readClassDesc(Unknown Source)
at java.io.ObjectInputStream.readNonProxyDesc(Unknown Source)
at java.io.ObjectInputStream.readClassDesc(Unknown Source)
at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
at java.io.ObjectInputStream.readObject0(Unknown Source)
at java.io.ObjectInputStream.readObject(Unknown Source)
at net.sf.jasperreports.engine.util.JRLoader.loadObject(JRLoader.java:85)
... 32 more
2006-03-07 10:17:27,134 ERROR [org.pentaho.jasper.JasperReportsComponent] Error end:
2006-03-07 10:17:27,134 DEBUG [org.pentaho.runtime.RuntimeContext] 85adf426-ad80-11da-96df-e1022918a255:RUNTIME:context-14552233-1141697847104:testreport.xaction [cn_15] executeComponent finished audited execute
2006-03-07 10:17:27,134 ERROR [org.pentaho.runtime.RuntimeContext] 85adf426-ad80-11da-96df-e1022918a255:RUNTIME:context-14552233-1141697847104:testreport.xaction RuntimeContext.ERROR_0012 - [cn_33] ?org.pentaho.jasper.JasperReportsComponent???Action????
2006-03-07 10:17:27,134 ERROR [org.pentaho.solution.SolutionEngine] 85adf426-ad80-11da-96df-e1022918a255:SOLUTION-ENGINE: testreport.xactionSolutionEngine.ERROR_0007 - [cn_27] Action sequence????
2006-03-07 10:17:27,134 DEBUG [org.pentaho.repository.HibernateUtil] [cn_59] ????????????.
2006-03-07 10:17:27,134 DEBUG [org.pentaho.repository.HibernateUtil] [cn_63] ???????.

Luuzz
03-07-2006, 03:29 AM
Hello,
Try to copy the jasperreports*.jar file in the lib directory of iReport (The one you used for creating the report) and copy it in the lib directory of tour application.
Best Regards,
Alassane

ellvn521
03-07-2006, 05:55 AM
I've sloved the problem about it this morning.
You are right.It's related to the jaserperreport*.jar...
Anyway,thanks very much for your help.