Jump to content
Changes to the Jaspersoft community edition download ×

Invalid Stream Header Exception


Recommended Posts

By: james conwin - jc98789

Invalid Stream Header Exception

2003-03-27 22:33

 

I am getting an "invalid stream header" exception when trying to execute the fillReportToFile() method. Is there any suggestion to fix this?

(I have tried specifying the complete path to the xml file - no success).

 

thanks,

John.

 

 

JasperFillManager.fillReportToFile("report.xml", new HashMap(), getConnection());

 

...

 

java.io.StreamCorruptedException: invalid stream header

at java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:737

)

at java.io.ObjectInputStream.<init>(ObjectInputStream.java:253)

at dori.jasper.engine.util.JRLoader.loadObject(JRLoader.java:119)

at dori.jasper.engine.JasperFillManager.fillReportToFile(JasperFillManag

er.java:101)

at SubreportApp.main(SubreportApp.java:26)

 

NESTED BY :

java.io.StreamCorruptedException: invalid stream header

at java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:737

)

at java.io.ObjectInputStream.<init>(ObjectInputStream.java:253)

at dori.jasper.engine.util.JRLoader.loadObject(JRLoader.java:119)

at dori.jasper.engine.JasperFillManager.fillReportToFile(JasperFillManag

er.java:101)

at SubreportApp.main(SubreportApp.java:26)

 

NESTED BY :

dori.jasper.engine.JRException: Error loading object from file : avoga.xml

at dori.jasper.engine.util.JRLoader.loadObject(JRLoader.java:126)

at dori.jasper.engine.JasperFillManager.fillReportToFile(JasperFillManag

er.java:101)

at SubreportApp.main(SubreportApp.java:26)

Caused by: java.io.StreamCorruptedException: invalid stream header

at java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:737

)

at java.io.ObjectInputStream.<init>(ObjectInputStream.java:253)

at dori.jasper.engine.util.JRLoader.loadObject(JRLoader.java:119)

... 2 more

 

 

 

 

By: james conwin - jc98789

RE: Invalid Stream Header Exception

2003-03-27 23:04

 

Ok I have realised the .jasper file must be used and not the xml file. However there is also another problem now:

 

java.SQL.SQLException: ResultSet is closed.

 

I am not sure why this is. I am using the Access odbc driver here and I have tested that the Connection object is not closed. So that's ok.

I do not have any Access tables open or anything like that. Any ideas?

 

Thanks,

John.

 

 

 

 

 

By: Teodor Danciu - teodord

RE: Invalid Stream Header Exception

2003-03-28 00:50

 

Hi,

 

There is a patch for this here:

 

http://sourceforge.net/tracker/index.php?func=detail&aid=681655&group_id=36382&atid=416705

 

This will be part of the next verision to be release soon.

 

Thank you,

Teodor

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...