subdataset for chart with no data

0
I've 2 subdataset for 2 chart in my repotr.
If the subdataset return an empty dataset:

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:126) ÂÂÂÂatÂnet.sf.jasperreports.engine.fill.JRFillElementDataset.increment(JRFillElementDataset.java:134) ÂÂÂÂatÂnet.sf.jasperreports.engine.fill.JRFillChartDataset.getDataset(JRFillChartDataset.java:57) ÂÂÂÂatÂnet.sf.jasperreports.engine.fill.JRFillChart.evaluatePie3DImage(JRFillChart.java:1047) ÂÂÂÂatÂnet.sf.jasperreports.engine.fill.JRFillChart.evaluateImage(JRFillChart.java:577) ÂÂÂÂatÂnet.sf.jasperreports.engine.fill.JRFillChart.evaluate(JRFillChart.java:537) ÂÂÂÂatÂnet.sf.jasperreports.engine.fill.JRFillElementContainer.evaluate(JRFillElementContainer.java:275) ÂÂÂÂatÂnet.sf.jasperreports.engine.fill.JRFillBand.evaluate(JRFillBand.java:399) ÂÂÂÂatÂnet.sf.jasperreports.engine.fill.JRVerticalFiller.fillColumnBand(JRVerticalFiller.java:1289) ÂÂÂÂatÂnet.sf.jasperreports.engine.fill.JRVerticalFiller.fillDetail(JRVerticalFiller.java:631) ÂÂÂÂatÂnet.sf.jasperreports.engine.fill.JRVerticalFiller.fillReportStart(JRVerticalFiller.java:228) ÂÂÂÂatÂnet.sf.jasperreports.engine.fill.JRVerticalFiller.fillReport(JRVerticalFiller.java:128) ÂÂÂÂatÂnet.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:750) ÂÂÂÂatÂnet.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:647) ÂÂÂÂ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:701) ÂÂÂÂatÂjava.lang.Thread.run(UnknownÂSource)
PrintÂnotÂfilled.ÂTryÂtoÂuseÂanÂEmptyDataSource...!


Is possible resolve this problem printing out a message like 'no data'
rasco's picture
2
Joined: Jul 24 2006 - 12:30am
Last seen: 4 years 3 weeks ago

0 Answers:

No answers yet
Feedback
randomness