Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Ron McLeod
  • Carey Brown
Bartenders:
  • Paweł Baczyński
  • Piet Souris
  • Vijitha Kumara

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

 
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
 
Sheriff
Posts: 21817
104
Eclipse IDE Spring VI Editor Chrome Java Ubuntu 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.
 
Rancher
Posts: 43011
76
  • Mark post as helpful
  • send pies
  • Report post to moderator
Also posted in https://coderanch.com/t/501754/open-source/Help-jasper-report; closing this one.
 
Hold that thought. Tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
    Bookmark Topic Watch Topic
  • New Topic
Boost this thread!