my dog learned polymorphism
The moose likes Other Open Source Projects and the fly likes Exception in JasperFillManager.fillReport() line Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "Exception in JasperFillManager.fillReport() line" Watch "Exception in JasperFillManager.fillReport() line" New topic

Exception in JasperFillManager.fillReport() line

Kunal Lakhani
Ranch Hand

Joined: Jun 05, 2010
Posts: 622
I have created an application with report features. report features is created via iReport
My application also contains a reports folder containing all .japser files

Here is the code

This throws the following exception :
Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
at net.sf.jasperreports.engine.util.ContextClassLoaderObjectInputStream.<init>(
at net.sf.jasperreports.engine.util.JRLoader.loadObject(
at net.sf.jasperreports.engine.JasperFillManager.fillReport(
at sms.ui.ireport.MyiReportViewer.<init>(

Line no 53 of MyiReportViewer is :
JasperPrint print = JasperFillManager.fillReport(
stream, parameter, con);

What changes should i do?

Kunal Lakhani
Ranch Hand

Joined: Jun 05, 2010
Posts: 622
Someone please help
I agree. Here's the link:
subject: Exception in JasperFillManager.fillReport() line
It's not a secret anymore!