aspose file tools*
The moose likes Other Java Products and Servers and the fly likes subreport in jasper Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Products » Other Java Products and Servers
Bookmark "subreport in jasper" Watch "subreport in jasper" New topic
Author

subreport in jasper

mudassir shahab
Ranch Hand

Joined: Oct 13, 2003
Posts: 54
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

Joined: Apr 19, 2005
Posts: 1
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: subreport in jasper
 
Similar Threads
Problems with JasperReports
Java client not accessing sesion bean in Jboss4.0.4
String to bytes conversion.
sub reporting
jasper reports -Plz help me out