This week's book giveaway is in the Design forum.
We're giving away four copies of Design for the Mind and have Victor S. Yocco on-line!
See this thread for details.
Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

subreport in jasper

 
mudassir shahab
Ranch Hand
Posts: 54
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi..

i made a subReport with the name "SubDemo" using iReports..now when i call it through another report "Demo" which u can say the parent report it gives following error..remember i gave the full path of "subDemo.jasper" in my parent report..
-------------------------------------------------------
Filling report... Error�filling�print... java.io.InvalidClassException:�dori.jasper.engine.base.JRBaseReport;�local�class�incompatible:�stream�classdesc�serialVersionUID�=�502,�local�class�serialVersionUID�=�503 ����at�java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:454) ����at�java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1511) ����at�java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1425) ����at�java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1511) ����at�java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1425) ����at�java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1616) ����at�java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1264) ����at�java.io.ObjectInputStream.readObject(ObjectInputStream.java:322) ����at�dori.jasper.engine.util.JRLoader.loadObject(JRLoader.java:129) ����at�dori.jasper.engine.util.JRLoader.loadObjectFromLocation(JRLoader.java:279) ����at�dori.jasper.engine.fill.JRFillSubreport.evaluate(JRFillSubreport.java:337) ����at�dori.jasper.engine.fill.JRFillBand.evaluate(JRFillBand.java:383) ����at�dori.jasper.engine.fill.JRVerticalFiller.fillColumnBand(JRVerticalFiller.java:1123) ����at�dori.jasper.engine.fill.JRVerticalFiller.fillDetail(JRVerticalFiller.java:642) ����at�dori.jasper.engine.fill.JRVerticalFiller.fillReportStart(JRVerticalFiller.java:267) ����at�dori.jasper.engine.fill.JRVerticalFiller.fillReport(JRVerticalFiller.java:175) ����at�dori.jasper.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:554) ����at�dori.jasper.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:471) ����at�dori.jasper.engine.fill.JRFiller.fillReport(JRFiller.java:120) ����at�dori.jasper.engine.JasperFillManager.fillReport(JasperFillManager.java:222) ����at�dori.jasper.engine.JasperFillManager.fillReport(JasperFillManager.java:162) ����at�it.businesslogic.ireport.IReportCompiler.run(IReportCompiler.java:415) ����at�java.lang.Thread.run(Thread.java:536) NESTED�BY�: java.io.InvalidClassException:�dori.jasper.engine.base.JRBaseReport;�local�class�incompatible:�stream�classdesc�serialVersionUID�=�502,�local�class�serialVersionUID�=�503 ����at�java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:454) ����at�java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1511) ����at�java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1425) ����at�java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1511) ����at�java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1425) ����at�java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1616) ����at�java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1264) ����at�java.io.ObjectInputStream.readObject(ObjectInputStream.java:322) ����at�dori.jasper.engine.util.JRLoader.loadObject(JRLoader.java:129) ����at�dori.jasper.engine.util.JRLoader.loadObjectFromLocation(JRLoader.java:279) ����at�dori.jasper.engine.fill.JRFillSubreport.evaluate(JRFillSubreport.java:337) ����at�dori.jasper.engine.fill.JRFillBand.evaluate(JRFillBand.java:383) ����at�dori.jasper.engine.fill.JRVerticalFiller.fillColumnBand(JRVerticalFiller.java:1123) ����at�dori.jasper.engine.fill.JRVerticalFiller.fillDetail(JRVerticalFiller.java:642) ����at�dori.jasper.engine.fill.JRVerticalFiller.fillReportStart(JRVerticalFiller.java:267) ����at�dori.jasper.engine.fill.JRVerticalFiller.fillReport(JRVerticalFiller.java:175) ����at�dori.jasper.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:554) ����at�dori.jasper.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:471) ����at�dori.jasper.engine.fill.JRFiller.fillReport(JRFiller.java:120) ����at�dori.jasper.engine.JasperFillManager.fillReport(JasperFillManager.java:222) ����at�dori.jasper.engine.JasperFillManager.fillReport(JasperFillManager.java:162) ����at�it.businesslogic.ireport.IReportCompiler.run(IReportCompiler.java:415) ����at�java.lang.Thread.run(Thread.java:536) NESTED�BY�: dori.jasper.engine.JRException:�Error�loading�object�from�file�:�C:\Program�Files\JavaSoft\Apache�Tomcat�4.0\webapps\examples\reports\DemoSub.jasper ����at�dori.jasper.engine.util.JRLoader.loadObject(JRLoader.java:133) ����at�dori.jasper.engine.util.JRLoader.loadObjectFromLocation(JRLoader.java:279) ����at�dori.jasper.engine.fill.JRFillSubreport.evaluate(JRFillSubreport.java:337) ����at�dori.jasper.engine.fill.JRFillBand.evaluate(JRFillBand.java:383) ����at�dori.jasper.engine.fill.JRVerticalFiller.fillColumnBand(JRVerticalFiller.java:1123) ����at�dori.jasper.engine.fill.JRVerticalFiller.fillDetail(JRVerticalFiller.java:642) ����at�dori.jasper.engine.fill.JRVerticalFiller.fillReportStart(JRVerticalFiller.java:267) ����at�dori.jasper.engine.fill.JRVerticalFiller.fillReport(JRVerticalFiller.java:175) ����at�dori.jasper.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:554) ����at�dori.jasper.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:471) ����at�dori.jasper.engine.fill.JRFiller.fillReport(JRFiller.java:120) ����at�dori.jasper.engine.JasperFillManager.fillReport(JasperFillManager.java:222) ����at�dori.jasper.engine.JasperFillManager.fillReport(JasperFillManager.java:162) ����at�it.businesslogic.ireport.IReportCompiler.run(IReportCompiler.java:415) ����at�java.lang.Thread.run(Thread.java:536) Caused�by:�java.io.InvalidClassException:�dori.jasper.engine.base.JRBaseReport;�local�class�incompatible:�stream�classdesc�serialVersionUID�=�502,�local�class�serialVersionUID�=�503 ����at�java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:454) ����at�java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1511) ����at�java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1425) ����at�java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1511) ����at�java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1425) ����at�java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1616) ����at�java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1264) ����at�java.io.ObjectInputStream.readObject(ObjectInputStream.java:322) ����at�dori.jasper.engine.util.JRLoader.loadObject(JRLoader.java:129) ����...�14�more Print�not�filled.�Try�to�use�an�EmptyDataSource...!
 
Lukas �sterreicher
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I believe this means that jasper complains that the two reports where compiled as different versions. Be sure that you compile all reports with the same compiler.

How did you tell the main report the full path of the subreport?
(I'm having a problem here myself: how to tell jasper where to take the subreports from when it fills a report)

Cheers, Lukas
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic