1 Reply Latest reply: Aug 5, 2010 2:07 AM by 807567 RSS

    Not able to generate Jasper Report

    807567
      Hi All,

      Iam using Jasper report3.0 for generating reports. I have compiled jrxml file to jasper . But when i am running the application , iam getting the following error:-

      java.io.InvalidClassException: net.sf.jasperreports.engine.base.JRBaseReport; local class incompatible: stream classdesc serialVersionUID = 10200, local class serialVersionUID = 10002
           at java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:463)
           at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1521)
           at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1435)
           at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1521)
           at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1435)
           at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1626)
           at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
           at java.io.ObjectInputStream.readObject(ObjectInputStream.java:324)
           at net.sf.jasperreports.engine.util.JRLoader.loadObject(JRLoader.java:189)
           at com.wipro.accessctrl.report.action.ReportAction.generateExcelReport(ReportAction.java:4060)
           at com.wipro.accessctrl.report.action.ReportAction.getSADoorwiseRptDisplay(ReportAction.java:2158)
           at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
           at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
           
      NESTED BY :
      net.sf.jasperreports.engine.JRException: Error loading object from InputStream
           at net.sf.jasperreports.engine.util.JRLoader.loadObject(JRLoader.java:193)
           at com.wipro.accessctrl.report.action.ReportAction.generateExcelReport(ReportAction.java:4060)
           at com.wipro.accessctrl.report.action.ReportAction.getSADoorwiseRptDisplay(ReportAction.java:2158)
           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:324)
           at org.apache.struts.actions.DispatchAction.dispatchMethod(DispatchAction.java:274)
           at com.wipro.accessctrl.common.action.AccessCtrlDispatchAction.execute(AccessCtrlDispatchAction.java:61)
           at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:419)
           at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:224)
           at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
           at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
           at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
           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 com.wipro.accessctrl.login.SessionCheckFilter.doFilter(SessionCheckFilter.java:89)
           at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
           at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
           at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)
           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(CustomPrincipalValve.java:39)
           at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:153)
           at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:59)
           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(Thread.java:534)
      Caused by: java.io.InvalidClassException: net.sf.jasperreports.engine.base.JRBaseReport; local class incompatible: stream classdesc serialVersionUID = 10200, local class serialVersionUID = 10002
           at java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:463)
           at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1521)
           at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1435)
           at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1521)
           at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1435)
           at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1626)
           at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
           at java.io.ObjectInputStream.readObject(ObjectInputStream.java:324)
           at net.sf.jasperreports.engine.util.JRLoader.loadObject(JRLoader.java:189)
           ... 36 more

      Iam using JDK1.4_08 and iReports 3.0.

      Really looking forward to replies.

      Thanks & Regards
      Kiran