LChristian
16 years agoOccasional Contributor
Error loading subreport
I've been struggling with this error for the past day and have not gained any ground against it.
I've been able to compile this subreport using the the jasper libraries in a standalone java app.
Subreport: http://pastebin.com/wsHpniDA
Sample of code that calls the subreport: http://pastebin.com/kr4kpi49
The datasource I pass into it is an ArrayList of TestSuiteGroups wrapped up in a JRBeanCollectionDataSource:
I've also tried wrapping up the testCases in a JRBeanCollectionDataSource before passing it into the subreport but that didn't seem to have any effect either.
Anyone got any suggestions??
Fri Aug 13 17:08:29 PDT 2010:ERROR:net.sf.jasperreports.engine.JRException: Error loading object from URL : subreport:TestSuiteOverviewReport
net.sf.jasperreports.engine.JRException: Error loading object from URL : subreport:TestSuiteOverviewReport
at net.sf.jasperreports.engine.util.JRLoader.loadObject(JRLoader.java:147)
at net.sf.jasperreports.engine.util.JRLoader.loadObjectFromLocation(JRLoader.java:240)
at net.sf.jasperreports.engine.fill.JRFillSubreport.evaluateSubreport(JRFillSubreport.java:317)
at net.sf.jasperreports.engine.fill.JRFillSubreport.evaluate(JRFillSubreport.java:266)
at net.sf.jasperreports.engine.fill.JRFillElementContainer.evaluate(JRFillElementContainer.java:256)
at net.sf.jasperreports.engine.fill.JRFillBand.evaluate(JRFillBand.java:482)
at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillColumnBand(JRVerticalFiller.java:2011)
at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillDetail(JRVerticalFiller.java:749)
at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReportStart(JRVerticalFiller.java:252)
at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReport(JRVerticalFiller.java:110)
at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:923)
at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:845)
at net.sf.jasperreports.engine.fill.JRFiller.fillReport(JRFiller.java:85)
at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:624)
at com.eviware.soapui.reporting.engine.jasper.GenerateJasperReport.createReport(SourceFile:453)
at com.eviware.soapui.reporting.engine.jasper.GenerateJasperReport$ReportFillWorker.construct(SourceFile:416)
at com.eviware.soapui.support.swing.SwingWorkerDelegator.construct(SwingWorkerDelegator.java:46)
at com.eviware.soapui.support.swing.SwingWorker$2.run(SwingWorker.java:140)
at java.lang.Thread.run(Unknown Source)
Caused by: java.io.EOFException
at java.io.ObjectInputStream$PeekInputStream.readFully(Unknown Source)
at java.io.ObjectInputStream$BlockDataInputStream.readShort(Unknown Source)
at java.io.ObjectInputStream.readStreamHeader(Unknown Source)
at java.io.ObjectInputStream.<init>(Unknown Source)
at net.sf.jasperreports.engine.util.ContextClassLoaderObjectInputStream.<init>(ContextClassLoaderObjectInputStream.java:53)
at net.sf.jasperreports.engine.util.JRLoader.loadObject(JRLoader.java:142)
... 18 more
I've been able to compile this subreport using the the jasper libraries in a standalone java app.
Subreport: http://pastebin.com/wsHpniDA
Sample of code that calls the subreport: http://pastebin.com/kr4kpi49
The datasource I pass into it is an ArrayList of TestSuiteGroups wrapped up in a JRBeanCollectionDataSource:
//Supporting
TestSuiteGroup {
List testCases; //consists of an ArrayList of NVPairs
NVPair nameAndDescription;
}
class NVPair {
String name;
String value;
}
I've also tried wrapping up the testCases in a JRBeanCollectionDataSource before passing it into the subreport but that didn't seem to have any effect either.
Anyone got any suggestions??