File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Other Open Source Projects and the fly likes JASPER problem!! 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 "JASPER problem!!" Watch "JASPER problem!!" New topic
Author

JASPER problem!!

Jordan Smith
Ranch Hand

Joined: Apr 06, 2008
Posts: 89
hi!
i am trying to export to PDF with JASPER and get a null pointer exception.
i have a simple JASPER file:

and i get a list of orders from the following sql:

my code is:

i always get NullPointerExcpetion in the try and catch.
i have no idea why.
i tried to debug it, and i see that it's falling here:

DEBUG [http-8080-Processor25] - Returned connection 12045714 to pool.
java.lang.NullPointerException
at net.sf.jasperreports.engine.JRPropertiesMap.getPropertyNames(JRPropertiesMap.java:90)
at net.sf.jasperreports.engine.util.JRProperties.getProperties(JRProperties.java:502)
at net.sf.jasperreports.engine.fill.JRBaseFiller.<init>(JRBaseFiller.java:405)
at net.sf.jasperreports.engine.fill.JRVerticalFiller.<init>(JRVerticalFiller.java:77)
at net.sf.jasperreports.engine.fill.JRVerticalFiller.<init>(JRVerticalFiller.java:59)
at net.sf.jasperreports.engine.fill.JRFiller.createFiller(JRFiller.java:147)
at net.sf.jasperreports.engine.fill.JRFiller.fillReport(JRFiller.java:83)
at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:601)



what is the problem?? i don't know where to start to investigate
 
 
subject: JASPER problem!!
 
Similar Threads
jasper report- error
Struts 2.2 jasper report writing null data
JasperReports: "Error loading object from file" Exception
Unable to export Jasper Report in html format.
exported Jasper Report has different look than preview in IReport designer