fafi
Location : france
Member since : Mar 25, 2005
Messages : 1
|
Mar 25, 2005 at 9:16 AM
Attempting to draw a pie chart in a sun computer with JFreeChart I have the folloowing message
05/03/24 18:03:54 Exception - java.lang.IllegalArgumentException: PieDataset: null key not allowed.
05/03/24 18:03:54 java.lang.IllegalArgumentException: PieDataset: null key not allowed.
05/03/24 18:03:54 at org.jfree.data.DefaultPieDataset.getValue(DefaultPieDataset.java:163)
05/03/24 18:03:54 at org.jfree.chart.plot.PiePlot.getLegendItems(PiePlot.java:1697)
05/03/24 18:03:54 at org.jfree.chart.StandardLegend.draw(StandardLegend.java:711)
05/03/24 18:03:54 at org.jfree.chart.StandardLegend.draw(StandardLegend.java:690)
05/03/24 18:03:54 at org.jfree.chart.JFreeChart.draw(JFreeChart.java:897)
05/03/24 18:03:54 at org.jfree.chart.JFreeChart.createBufferedImage(JFreeChart.java:1038)
05/03/24 18:03:54 at org.jfree.chart.ChartUtilities.writeChartAsPNG(ChartUtilities.java:196)
05/03/24 18:03:54 at org.jfree.chart.ChartUtilities.saveChartAsPNG(ChartUtilities.java:337)
05/03/24 18:03:54 at org.jfree.chart.ChartUtilities.saveChartAsPNG(ChartUtilities.java:302)
05/03/24 18:03:54 at org.jfree.chart.servlet.ServletUtilities.saveChartAsPNG(ServletUtilities.java:141)
but the same code works perfectly on windows XP
any idea ?
thanks
|