jfreechart icon indicating copy to clipboard operation
jfreechart copied to clipboard

ArrayIndexOutOfBoundsException using a CombinedDomainXYPlot

Open Madrawn opened this issue 7 years ago • 0 comments

I have no idea what's causing this. This happens when I update my CombinedDomainXYPlot containing 2 XYPlots with new data for the series for the first time. All following updates don't throw this error and the chart I display looks fine.

I have one CombinedDomainXYPlot, I first add a XYPlot with a Dataset containing 4 prefilled series, then I display it, then I add another XYPlot a bit later with its own Dataset with one prefilled series and update all the other series with a new datapoint at the end. This is when the error appears. But it has no consequences as far as I can tell.

There is no code of myself in this error message so I figured you might be interested. This is probably an usage error caused by me, but whatever I did wrong should not fail this late.

Exception in thread "AWT-EventQueue-0" java.lang.ArrayIndexOutOfBoundsException: 1 at org.jfree.chart.plot.CombinedDomainXYPlot.draw(CombinedDomainXYPlot.java:511) at org.jfree.chart.JFreeChart.draw(JFreeChart.java:1229) at org.jfree.chart.ChartPanel.paintComponent(ChartPanel.java:1628) at javax.swing.JComponent.paint(JComponent.java:1056) at javax.swing.JComponent.paintToOffscreen(JComponent.java:5210) at javax.swing.RepaintManager$PaintManager.paintDoubleBuffered(RepaintManager.java:1579) at javax.swing.RepaintManager$PaintManager.paint(RepaintManager.java:1502) at javax.swing.RepaintManager.paint(RepaintManager.java:1272) at javax.swing.JComponent._paintImmediately(JComponent.java:5158) at javax.swing.JComponent.paintImmediately(JComponent.java:4969) at javax.swing.RepaintManager$4.run(RepaintManager.java:831) at javax.swing.RepaintManager$4.run(RepaintManager.java:814) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80) at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:814) at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:789) at javax.swing.RepaintManager.prePaintDirtyRegions(RepaintManager.java:738) at javax.swing.RepaintManager.access$1200(RepaintManager.java:64) at javax.swing.RepaintManager$ProcessingRunnable.run(RepaintManager.java:1732) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311) at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756) at java.awt.EventQueue.access$500(EventQueue.java:97) at java.awt.EventQueue$3.run(EventQueue.java:709) at java.awt.EventQueue$3.run(EventQueue.java:703) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80) at java.awt.EventQueue.dispatchEvent(EventQueue.java:726) at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201) at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93) at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)

Madrawn avatar Sep 03 '17 14:09 Madrawn