Jump to content
Changes to the Jaspersoft community edition download ×

SubReport - java.io.StreamCorruptedException


ktrinad

Recommended Posts

By: Robson - rllima

SubReport - java.io.StreamCorruptedException

2004-04-05 11:47

I made a report with SubReport but it is not functioning. I am using Applet with Servlet.

 

What's wrong ???

 

Master Report: OrdemFabricacao.jasper

SubReport : OrdemFabricacaoFases.jasper

 

My SEVLET:

File reportFile = new File(context.getRealPath("/ilp/reports/source/OrdemFabricacao.jasper"));

 

JasperReport jasperReport = (JasperReport)JRLoader.loadObject(reportFile.getPath());

 

jasperPrint = JasperFillManager.fillReport(jasperReport, parameters, con);

 

Obs.: In the line of the method fillReport occurs the error.

 

any idea???

 

thanks,

 

Robson

S o Paulo - Brazil

 

 

 

By: Robson - rllima

RE: SubReport - java.io.StreamCorruptedException

2004-04-06 07:22

The error was because of the localization of the SubReport, therefore I placed path entire of the SubReport and good work!

 

sds

 

Robson (rllima)

S o Paulo - Brazil

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