This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan 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 Android Security Essentials Live Lessons this week in the Android 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: 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
Don't get me started about those stupid light bulbs.
subject: Exception in JasperFillManager.fillReport() line
Similar Threads
How to get input from user and send the same to an ireport that has the parameter using SWING?
Jasper Report and JAR file
Jasper report error
Hi i received whenevery i run my program,please solve my problem
Accessing reports gives net.sf.jasperreports.engine.JRException: