This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
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

Win a copy of Java 8 in Action this week in the Java 8 forum!
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: 618
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: 618
Someone please help
I agree. Here's the link:
subject: Exception in JasperFillManager.fillReport() line
Similar Threads
Hi i received whenevery i run my program,please solve my problem
Jasper report error
How to get input from user and send the same to an ireport that has the parameter using SWING?
Jasper Report and JAR file
Accessing reports gives net.sf.jasperreports.engine.JRException: