Two Laptop Bag*
The moose likes Meaningless Drivel and the fly likes Urgent: Error Loading object from file in Jasper report... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Other » Meaningless Drivel
Reply locked New topic
Author

Urgent: Error Loading object from file in Jasper report...

Sulaiman Malik
Greenhorn

Joined: Apr 12, 2010
Posts: 25
i have created a master report and a sub report. I have written the code in jsp to call the master report but it gives an error.

Error Loading object from file: "path where the sub report resides".

Please help me out if i am doing something wrong.

jasperdesign = JasperManager.loadXmlDesign(getServletConfig().getServletContext().getRealPath("/reports/VoucherReport.jrxml"));
jasperReport = JasperCompileManager.compileReport(jasperdesign);

HashMap map = new HashMap();
map.put("myParam",voucherId);
jasperPrint = JasperFillManager.fillReport(jasperReport, map, con);
JasperManager.printReportToPdfFile(jasperPrint,getServletConfig().getServletContext().getRealPath("/reports/myReport.pdf"));



it is throwing an exception on jasper print . please help me out. need a sloution for this voucher report is a master report, do i also need to compile subreport toooo. Please i need an urgent help
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19678
    
  18

Sulaiman Malik wrote:Please help me out if i am doing something wrong.

Well, you posted it in Meaningless Drivel, so I doubt you'll be getting much support here.

Please i need an urgent help

Please EaseUp.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41599
    
  55
Also posted in http://www.coderanch.com/t/501754/open-source/Help-jasper-report; closing this one.


Ping & DNS - my free Android networking tools app
 
wood burning stoves
 
subject: Urgent: Error Loading object from file in Jasper report...