2002 JI Open Discussion Posted August 19, 2006 Share Posted August 19, 2006 By: Astrid Sison - borsintak JasperManager can't load .jasper file 2003-09-18 22:00 Can anyone please help me with this error.... dori.jasper.engine.JRException: Error loading object from file : /home/foo/workspace/reports/Payment.jasper I am using jasperreports-0.5.0 and i compiled my reports with jasperedit. Here's the source... try { JasperReport template = JasperManager.loadReport("/home/foo/workspace/reports/Payment.jasper"); } catch (JRException j1) { throw new Exception("Failed to load report!", j1); } The report loads if i use the .xml source with JasperManager.compileReport but it takes too long so i want to use the .jasper with loadReport but i can't seem to make it work, the error above shows. I also want to place the .jasper files in a jar but i don't know how to access them. Somebody here mentioned using streams, can anyone please tel me how to do this? i have absolutely no idea with streams..Please help me anyone....Thank you. By: Astrid Sison - borsintak RE: JasperManager can't load .jasper file 2003-09-18 23:37 Loading report problem solved.. I was using the jasperreports-0.5.0 but my reports were compiled with the previous version. Just replaced my current 0.5.0 jar with the 0.4.6 jar. in eclipse. Thanks for all of you who thought about this. By: Prem - premasi RE: JasperManager can't load .jasper file 2003-10-13 18:29 Hi Astrid, I am having similar problems to yours as well. Ie loading the .jasper file from my ear file. But unfortunatly it seems to be not able to locate the file. I would greatly appreciate if you could tell me how you solved the problem of loading the .jasper file from your jar file. 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