Jump to content
Changes to the Jaspersoft community edition download ×

Need help - new to Jasper Report


2004 IR Help

Recommended Posts

By: develo - daviddeveloper

Need help - new to Jasper Report

2005-01-02 00:20

Dear sirs,

I am quite new to Jasper Report , i am making a desktop application , and i use oracle database.

all what i need from jasper to preview the search results or the ResultSet -all results already in a table- in Jasperviewer in order to print it,

please notice that i cannot even run the attached samples which came with the package, i always get that exception:

-------------------------------------------------

java.io.StreamCorruptedException: invalid stream header

 

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

 

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

 

at net.sf.jasperreports.engine.util.JRLoader.loadObject(JRLoader.java:128)

 

at net.sf.jasperreports.engine.JasperExportManager.exportReportToPdfFile(JasperExportManager.java:121)

 

at ImagesApp.main(ImagesApp.java:151)

 

 

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 net.sf.jasperreports.engine.util.JRLoader.loadObject(JRLoader.java:128)

 

at net.sf.jasperreports.engine.JasperExportManager.exportReportToPdfFile(JasperExportManager.java:121)

 

at ImagesApp.main(ImagesApp.java:151)

 

 

NESTED BY :

 

net.sf.jasperreports.engine.JRException: Error loading object from file : F:1.gif

 

at net.sf.jasperreports.engine.util.JRLoader.loadObject(JRLoader.java:133)

 

at net.sf.jasperreports.engine.JasperExportManager.exportReportToPdfFile(JasperExportManager.java:121)

 

at ImagesApp.main(ImagesApp.java:151)

 

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 net.sf.jasperreports.engine.util.JRLoader.loadObject(JRLoader.java:128)

 

... 2 more

---------------------------------------------------

 

that was when i try to run the ImagesAPP.java Sample.

 

thanks in advance for help

Beginner

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