Jump to content
Changes to the Jaspersoft community edition download ×

[Help] Error during executing demo..


Recommended Posts

By: kil jong, kim - jerrygo2

[Help] Error during executing demo..

2003-07-21 21:40

Hi, I'm testing Jasper Reports 0.5.0.

I got some error messages when I execute compiled code in sample application in the Jasper Reports (demosamplesfontsFontsApp.java).

 

The messages are like below..

 

C:jdk1.3.1_02binjavaw.exe -classpath D:Jasper_Reportsjasperreports-0.5.0demo_output;C:jdk1.3.1_02jrelibi18n.jar;C:jdk1.3.1_02jrelibjaws.jar;C:jdk1.3.1_02jrelibrt.jar;C:jdk1.3.1_02jrelibsunrsasign.jar;D:Jasper_Reportsjasperreports-0.5.0libant-1.5.1.jar;D:Jasper_Reportsjasperreports-0.5.0libbsh-1.2b6.jar;D:Jasper_Reportsjasperreports-0.5.0libcommons-beanutils-1.5.jar;D:Jasper_Reportsjasperreports-0.5.0libcommons-collections-2.1.jar;D:Jasper_Reportsjasperreports-0.5.0libcommons-digester-1.3.jar;D:Jasper_Reportsjasperreports-0.5.0libcommons-logging-1.0.2.jar;D:Jasper_Reportsjasperreports-0.5.0libcommons-logging-api-1.0.2.jar;D:Jasper_Reportsjasperreports-0.5.0libhsqldb-1.61.jar;D:Jasper_Reportsjasperreports-0.5.0libitext-0.96.jar;D:Jasper_Reportsjasperreports-0.5.0libjakarta-poi-1.5.1-final-20020615.jar;D:Jasper_Reportsjasperreports-0.5.0libservlet.jar;D:Jasper_Reportsjasperreports-0.5.0libxercesImpl.jar;D:Jasper_Reportsjasperreports-0.5.0libxmlParserAPIs.jar;D:Jasper_Reportsjasperreports-0.5.0distjasperreports-0.5.0-applet.jar;D:Jasper_Reportsjasperreports-0.5.0distjasperreports-0.5.0.jar;D:Jasper_Reportsjasperreports-0.5.0demosampleschartjcommon-0.6.4.jar;D:Jasper_Reportsjasperreports-0.5.0demosampleschartjfreechart-0.9.2.jar;D:Jasper_Reportsjasperreports-0.5.0demosamplesjchartsjCharts-0.6.0.jar;C:j2sdk_nbj2sdk1.4.2libtools.jar FontsApp -Tpdf -FD:Jasper_Reportsjasperreports-0.5.0demosamplesfontsFontsReport.xml

java.io.StreamCorruptedException: InputStream does not contain a serialized object

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

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

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

at dori.jasper.engine.JasperExportManager.exportReportToPdfFile(JasperExportManager.java:101)

at FontsApp.main(FontsApp.java:150)

 

NESTED BY :

dori.jasper.engine.JRException: Error loading object from file : D:Jasper_Reportsjasperreports-0.5.0demosamplesfontsFontsReport.xml

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

at dori.jasper.engine.JasperExportManager.exportReportToPdfFile(JasperExportManager.java:101)

at FontsApp.main(FontsApp.java:150)

Process terminated with exit code 1

 

I use ItelliJ for testing and execting this test.

 

Thanks you in advance..

 

 

 

 

By: Teodor Danciu - teodord

RE: [Help] Error during executing demo..

2003-07-21 23:54

 

Hi,

 

It looks like you are trying to export a generated

report to PDF format.

But you are supplying the wrong file. It is not the

XML report design that you have to supply, but

the .jrprint file, which is the result of the report filling

process.

 

.xml --> .jasper --> .jrprint --> .pdf

 

design --> compile --> fill --> export

 

Chech the documentation for details.

 

I hope this helps.

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