We are using the Jfree Chart of 1.0.9 revision and have seen such exceptions in the Client Logs. Not sure what could be the cause for the same.
Can you suggest what needs to be done in this case. Please find the exceptions traces for reference
Exception in thread "AWT-EventQueue-0" java.lang.IndexOutOfBoundsException: Index: 2, Size: 0
at java.util.ArrayList.RangeCheck(Unknown Source)
at java.util.ArrayList.get(Unknown Source)
at org.jfree.data.DefaultKeyedValues2D.getRowKey(DefaultKeyedValues2D.java:169)
at org.jfree.data.category.DefaultCategoryDataset.getRowKey(DefaultCategoryDataset.java:126)
at org.jfree.chart.labels.AbstractCategoryItemLabelGenerator.createItemArray(AbstractCategoryItemLabelGenerator.java:247)
at org.jfree.chart.labels.AbstractCategoryItemLabelGenerator.generateLabelString(AbstractCategoryItemLabelGenerator.java:228)
at org.jfree.chart.labels.StandardCategoryToolTipGenerator.generateToolTip(StandardCategoryToolTipGenerator.java:110)
at org.jfree.chart.renderer.category.AbstractCategoryItemRenderer.addItemEntity(AbstractCategoryItemRenderer.java:1593)
at org.jfree.chart.renderer.category.BarRenderer.drawItem(BarRenderer.java:786)
at org.jfree.chart.plot.CategoryPlot.render(CategoryPlot.java:2957)
at org.jfree.chart.plot.CategoryPlot.draw(CategoryPlot.java:2774)
at org.jfree.chart.JFreeChart.draw(JFreeChart.java:1222)
at org.jfree.chart.ChartPanel.paintComponent(ChartPanel.java:1354)
at javax.swing.JComponent.paint(Unknown Source)
at javax.swing.JComponent.paintWithOffscreenBuffer(Unknown Source)
at javax.swing.JComponent.paintDoubleBuffered(Unknown Source)
at javax.swing.JComponent._paintImmediately(Unknown Source)
at javax.swing.JComponent.paintImmediately(Unknown Source)
at javax.swing.RepaintManager.paintDirtyRegions(Unknown Source)
at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(Unknown Source)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
Exception in thread "AWT-EventQueue-0" java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
at java.util.ArrayList.RangeCheck(Unknown Source)
at java.util.ArrayList.get(Unknown Source)
at java.util.Collections$UnmodifiableList.get(Unknown Source)
at org.jfree.chart.plot.PiePlot3D.draw(PiePlot3D.java:539)
at org.jfree.chart.JFreeChart.draw(JFreeChart.java:1222)
at org.jfree.chart.JFreeChart.draw(JFreeChart.java:1120)
at org.jfree.chart.plot.MultiplePiePlot.draw(MultiplePiePlot.java:436)
at org.jfree.chart.JFreeChart.draw(JFreeChart.java:1222)
at org.jfree.chart.ChartPanel.paintComponent(ChartPanel.java:1354)
at javax.swing.JComponent.paint(Unknown Source)
at javax.swing.JComponent.paintWithOffscreenBuffer(Unknown Source)
at javax.swing.JComponent.paintDoubleBuffered(Unknown Source)
at javax.swing.JComponent._paintImmediately(Unknown Source)
at javax.swing.JComponent.paintImmediately(Unknown Source)
at javax.swing.RepaintManager.paintDirtyRegions(Unknown Source)
at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(Unknown Source)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
Exception in "AWT-EventQueue-0" : IndexOutOfBoundsException
-
- Posts: 2
- Joined: Tue Nov 22, 2011 5:37 pm
- antibot: No, of course not.
Re: Exception in "AWT-EventQueue-0" : IndexOutOfBoundsExcept
Please search the forum before posting a question! This has been asked several times before!
-
- Posts: 2
- Joined: Tue Nov 22, 2011 5:37 pm
- antibot: No, of course not.
Re: Exception in "AWT-EventQueue-0" : IndexOutOfBoundsExcept
I have searched the forum and haven't seen so far anything on this.
It would be great if you could help on this.
It would be great if you could help on this.
Re: Exception in "AWT-EventQueue-0" : IndexOutOfBoundsExcept
When I search for AWT-EventQueue-0 I get a long list of results. Along the results is this post from paradoxoff. Do you eventually update your chart in a non thread safe way? See also this post from david.gilbert.
hth,
- martin
hth,
- martin