Jump to content
Changes to the Jaspersoft community edition download ×

pb with fillReport exception InvalidClassExce


2004 IR Help

Recommended Posts

By: cyberal82 - cyberal82

pb with fillReport exception InvalidClassExce

2005-06-24 08:15

hi i have a problem with fillReport method, it throws an exception, whereas it works very well with ireport.

 

is there somethings special to do to generate a master report containing subreports.

For the time being, I generate my reports with ireport then in my java programme

I compile the master report and use the method fillReport on the master report

 

my error is :

java.io.InvalidClassException: net.sf.jasperreports.engine.base.JRBaseReport; local class incompatible: stream classdesc serialVersionUID = 607, local class serialVersionUID = 608

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.loadObjectFromLocation(JRLoader.java:235)

at net.sf.jasperreports.engine.fill.JRFillSubreport.evaluate(JRFillSubreport.java:294)

at net.sf.jasperreports.engine.fill.JRFillBand.evaluate(JRFillBand.java:339)

at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillColumnBand(JRVerticalFiller.java:1254)

at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillDetail(JRVerticalFiller.java:586)

at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReportStart(JRVerticalFiller.java:210)

at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReport(JRVerticalFiller.java:118)

at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:622)

at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:489)

at net.sf.jasperreports.engine.fill.JRFiller.fillReport(JRFiller.java:76)

at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:247)

at ReportGenerator.init(ReportGenerator.java:186)

at ReportGenerator.<init>(ReportGenerator.java:94)

at MainReportGenerator.main(MainReportGenerator.java:165)

 

NESTED BY :

java.io.InvalidClassException: net.sf.jasperreports.engine.base.JRBaseReport; local class incompatible: stream classdesc serialVersionUID = 607, local class serialVersionUID = 608

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.loadObjectFromLocation(JRLoader.java:235)

at net.sf.jasperreports.engine.fill.JRFillSubreport.evaluate(JRFillSubreport.java:294)

at net.sf.jasperreports.engine.fill.JRFillBand.evaluate(JRFillBand.java:339)

at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillColumnBand(JRVerticalFiller.java:1254)

at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillDetail(JRVerticalFiller.java:586)

at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReportStart(JRVerticalFiller.java:210)

at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReport(JRVerticalFiller.java:118)

at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:622)

at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:489)

at net.sf.jasperreports.engine.fill.JRFiller.fillReport(JRFiller.java:76)

at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:247)

at ReportGenerator.init(ReportGenerator.java:186)

at ReportGenerator.<init>(ReportGenerator.java:94)

at MainReportGenerator.main(MainReportGenerator.java:165)

 

NESTED BY :

net.sf.jasperreports.engine.JRException: Error loading object from file : C:Program FileseclipseworkspacetestJasperReportreportnumEtape.jasper

at net.sf.jasperreports.engine.util.JRLoader.loadObject(JRLoader.java:89)

at net.sf.jasperreports.engine.util.JRLoader.loadObjectFromLocation(JRLoader.java:235)

at net.sf.jasperreports.engine.fill.JRFillSubreport.evaluate(JRFillSubreport.java:294)

at net.sf.jasperreports.engine.fill.JRFillBand.evaluate(JRFillBand.java:339)

at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillColumnBand(JRVerticalFiller.java:1254)

at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillDetail(JRVerticalFiller.java:586)

at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReportStart(JRVerticalFiller.java:210)

at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReport(JRVerticalFiller.java:118)

at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:622)

at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:489)

at net.sf.jasperreports.engine.fill.JRFiller.fillReport(JRFiller.java:76)

at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:247)

at ReportGenerator.init(ReportGenerator.java:186)

at ReportGenerator.<init>(ReportGenerator.java:94)

at MainReportGenerator.main(MainReportGenerator.java:165)

Caused by: java.io.InvalidClassException: net.sf.jasperreports.engine.base.JRBaseReport; local class incompatible: stream classdesc serialVersionUID = 607, local class serialVersionUID = 608

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)

... 14 more

 

 

thx for help

++

 

 

 

 

 

By: cyberal82 - cyberal82

RE: pb with fillReport exception InvalidClass

2005-06-27 08:36

I solved my problem, in fact it was because ireport used my jdk 1.4 and my eclipse used jdk 1.3. Now my program compile report and subreport and then I use fillReport method on my master report.

 

bye and thx

 

 

 

 

By: zhangyi - zhangyi

RE: pb with fillReport exception InvalidClass

2005-06-28 02:50

The problem is not due to you java version.

It's due to the compiler of ireport has the different version with your jasperreport engine used for your application.

 

 

 

 

By: cyberal82 - cyberal82

RE: pb with fillReport exception InvalidClass

2005-06-28 05:17

it's exact.

 

thx

 

 

 

 

By: zhangyi - zhangyi

RE: pb with fillReport exception InvalidClass

2005-06-29 18:25

Hi, I have a question about subreport to ask. Do you pass JRDataSource to your subreport or you use DB connection for your subreport. If you use JRDataSource for you subreport, how do you pass the driving field of your master report to your subreport so that your subreport can reflect different data when a field of main report changes.

 

Thanks

 

 

 

 

By: cyberal82 - cyberal82

RE: pb with fillReport exception InvalidClass

2005-07-04 07:40

Sry but i use a DB connection.

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...