File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "JASPER problem!!" Watch "JASPER problem!!" New topic

JASPER problem!!

Jordan Smith
Ranch Hand

Joined: Apr 06, 2008
Posts: 89
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.
at net.sf.jasperreports.engine.JRPropertiesMap.getPropertyNames(
at net.sf.jasperreports.engine.util.JRProperties.getProperties(
at net.sf.jasperreports.engine.fill.JRBaseFiller.<init>(
at net.sf.jasperreports.engine.fill.JRVerticalFiller.<init>(
at net.sf.jasperreports.engine.fill.JRVerticalFiller.<init>(
at net.sf.jasperreports.engine.fill.JRFiller.createFiller(
at net.sf.jasperreports.engine.fill.JRFiller.fillReport(
at net.sf.jasperreports.engine.JasperFillManager.fillReport(

what is the problem?? i don't know where to start to investigate
I agree. Here's the link:
subject: JASPER problem!!
jQuery in Action, 3rd edition