Jump to content
We've recently updated our Privacy Statement, available here ×

Getting NullPointerException at JRFiller.createFiller(JRFiller.java:133)


Go to solution Solved by Ankur Gupta,

Recommended Posts

I am using jasperReports4.0.0.

After adding selected parameters like DateRange,created by to report(Jrxml) I am getting following exception.

Before adding parameters the report was working fine..

Can anybody please help me solve this problem..

 

Caused by: java.lang.NullPointerException
 at net.sf.jasperreports.engine.fill.JRFiller.createFiller(JRFiller.java:133)
 at net.sf.jasperreports.engine.fill.JRFiller.fillReport(JRFiller.java:52)
 at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:417)
 at com.ncr.pstc.reports.handler.NCRReportHandler.buildReport(NCRReportHandler.java:950)
 at com.ncr.pstc.reports.model.service.impl.ReportServices.generateReport(ReportServices.java:137)

Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

  • Solution

Hi,

First of all please check whether the parameters you have defined have a default value .

Second please check whether the parameters to be added are in a correct sequence in order of occuring in the query .

Thirdly are you trying to generate the sql dynamically I mean that based upon a condition you are putting the string in the query with the usage of parameter it will be used like $P!{Parameter1}

Please check and let me know if it works

Regards,

Ankur

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...