Win a copy of Functional Reactive Programming this week in the Other Languages forum!
    Bookmark Topic Watch Topic
  • New Topic

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

 
Sulaiman Malik
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Report post to moderator
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
Pie
Posts: 20667
65
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Report post to moderator
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.
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Report post to moderator
Also posted in http://www.coderanch.com/t/501754/open-source/Help-jasper-report; closing this one.
 
    Bookmark Topic Watch Topic
  • New Topic