Jump to content
Changes to the Jaspersoft community edition download ×

null "key" exception in graph


sureshtatikonda1982

Recommended Posts

Hi,

 

I am getting Null "Key" Exception in charts due to the qurery which i am executing to populate the chart is giving the result as empty.

 

So thats why i am getting the Key Expression value as null. Is there any way to handle this situations.

 

The following error message it shows:

 

java.lang.IllegalArgumentException: Null 'key' argument. at org.jfree.data.DefaultKeyedValues.setValue(DefaultKeyedValues.java:225) at org.jfree.data.general.DefaultPieDataset.setValue(DefaultPieDataset.java:187) at net.sf.jasperreports.charts.fill.JRFillPieDataset.customIncrement(JRFillPieDataset.java:158) at net.sf.jasperreports.engine.fill.JRFillElementDataset.increment(JRFillElementDataset.java:169) at net.sf.jasperreports.engine.fill.JRFillChartDataset.getDataset(JRFillChartDataset.java:57) at net.sf.jasperreports.engine.fill.JRFillChart.evaluatePieImage(JRFillChart.java:1525) at net.sf.jasperreports.engine.fill.JRFillChart.evaluateImage(JRFillChart.java:712) at net.sf.jasperreports.engine.fill.JRFillChart.resolveElement(JRFillChart.java:2253) at net.sf.jasperreports.engine.fill.JRFillElement.resolveElement(JRFillElement.java:874) at net.sf.jasperreports.engine.fill.JRBaseFiller.resolveBoundElements(JRBaseFiller.java:1072) at net.sf.jasperreports.engine.fill.JRBaseFiller.resolveBoundElements(JRBaseFiller.java:1097) at net.sf.jasperreports.engine.fill.JRBaseFiller.resolveReportBoundElements(JRBaseFiller.java:1107) at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillSummary(JRVerticalFiller.java:821) at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReport(JRVerticalFiller.java:164) at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:732) at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:641) at net.sf.jasperreports.engine.fill.JRFiller.fillReport(JRFiller.java:63) at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:402) at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:234) at it.businesslogic.ireport.IReportCompiler.run(IReportCompiler.java:755) at java.lang.Thread.run(Unknown Source)

Print not filled. Try to use an EmptyDataSource...!

 

 

Please help me ..........

 

Thanks & Regards,

Suresh Tatikonda.

Link to comment
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

  • 3 years later...

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