Jump to content
Changes to the Jaspersoft community edition download ×

HELP : loading jasperPrint object from URL

Recommended Posts

By: NHTAn - deeprot

HELP : loading jasperPrint object from URL

2006-02-08 19:24

When I enter this URL to the address bar, it does display a PDF report :


with 'jasperreport' is the servlet mapping parameter pointing to a servlet, and that servlet works correctly.

But when I try to pass the above URL from the applet :

jasperPrint = (JasperPrint)JRLoader.loadObject(new URL("http://localhost:8080/LePere0.1/jasperreport/rpt_Applet?reporttype=PDF"));

then it throws these exceptions :

net.sf.jasperreports.engine.JRException: Error handling object from URL :http://localhost:8080/LePere0.1/jasperreport/rpt_Applet?reporttype=PDF


java.io.StreamCorruptedException: invalid stream header

Could anyone tell me why all these happen and the solution(s) for the problem? I highly appreciate all your helps.


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