wood burning stoves 2.0*
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 Murach's Java Servlets and JSP this week in the Servlets 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 java.io.ObjectInputStream$PeekInputStream.read(ObjectInputStream.java:2266)
at java.io.ObjectInputStream$PeekInputStream.readFully(ObjectInputStream.java:2279)
at java.io.ObjectInputStream$BlockDataInputStream.readShort(ObjectInputStream.java:2750)
at java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:780)
at java.io.ObjectInputStream.<init>(ObjectInputStream.java:280)
at net.sf.jasperreports.engine.util.ContextClassLoaderObjectInputStream.<init>(ContextClassLoaderObjectInputStream.java:57)
at net.sf.jasperreports.engine.util.JRLoader.loadObject(JRLoader.java:197)
at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:380)
at sms.ui.ireport.MyiReportViewer.<init>(MyiReportViewer.java:53)

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 java.io.InvalidClassException whenevery i run my program,please solve my problem
Accessing reports gives net.sf.jasperreports.engine.JRException: java.io.FileNotFoundException