• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

subreport in jasper

 
Ranch Hand
Posts: 54
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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...!
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Please enjoy this holographic presentation of our apocalyptic dilemma right after this tiny ad:
Free, earth friendly heat - from the CodeRanch trailboss
https://www.kickstarter.com/projects/paulwheaton/free-heat
reply
    Bookmark Topic Watch Topic
  • New Topic