sunil.belurgikar Posted May 7, 2013 Share Posted May 7, 2013 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 More sharing options...
Solution Ankur Gupta Posted May 7, 2013 Solution Share Posted May 7, 2013 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 worksRegards,Ankur Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now