Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JASPER problem!!

 
Jordan Smith
Ranch Hand
Posts: 89
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic