2006 IR Open Dicussion Posted August 26, 2006 Share Posted August 26, 2006 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 : http://localhost:8080/LePere0.1/jasperreport/rpt_Applet?reporttype=PDF 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 and 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. Thanks Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now