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

Line Chart null value exception


prasad_psl

Recommended Posts

Hi

When i am using line chart to show the valuesfrom xml through xpath,

 there is a problem when i have null value in the varible .

it throws a null value exception.

the exception is like that

 
Error filling print... null

anyone find the way to handle such a problem please suggest me.

java.lang.NullPointerException 
    at net.sf.jasperreports.engine.data.JRXmlDataSource.convertStringValue(JRXmlDataSource.java:340) 
    at net.sf.jasperreports.engine.data.JRXmlDataSource.getFieldValue(JRXmlDataSource.java:317) 
    at net.sf.jasperreports.engine.fill.JRFillDataset.setOldValues(JRFillDataset.java:813) 
    at net.sf.jasperreports.engine.fill.JRFillDataset.next(JRFillDataset.java:777) 
    at net.sf.jasperreports.engine.fill.JRBaseFiller.next(JRBaseFiller.java:1412) 
    at net.sf.jasperreports.engine.fill.JRHorizontalFiller.fillReport(JRHorizontalFiller.java:119) 
    at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:891) 
    at net.sf.jasperreports.engine.fill.JRFiller.fillReport(JRFiller.java:123) 
    at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:420) 
    at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:256) 
    at it.businesslogic.ireport.IReportCompiler.run(IReportCompiler.java:1049) 
    at java.lang.Thread.run(Unknown Source) 
Print was not filled. Try using an EmptyDataSource...
 
Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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...