IndexOutOfBounds

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
cube
Posts: 22
Joined: Tue Mar 30, 2004 11:26 am
Contact:

IndexOutOfBounds

Post by cube » Wed Jul 14, 2004 12:23 am

I am not sure whether I messed something up or is it JFreeChart problem,

but from time to time I get IndexOutOfBoundsException:

java.lang.IndexOutOfBoundsException: Index: 19, Size: 19

at java.util.ArrayList.RangeCheck(Unknown Source)

at java.util.ArrayList.get(Unknown Source)

at org.jfree.data.time.TimeSeries.getDataItem(TimeSeries.java:277)

at org.jfree.data.time.TimeSeriesCollection.getXValue(TimeSeriesCollection.java:434)

at org.jfree.chart.renderer.XYStepRenderer.drawItem(XYStepRenderer.java:144)

at org.jfree.chart.plot.XYPlot.render(XYPlot.java:2204)

at org.jfree.chart.plot.XYPlot.draw(XYPlot.java:1809)

at org.jfree.chart.JFreeChart.draw(JFreeChart.java:905)

at org.jfree.chart.ChartPanel.paintComponent(ChartPanel.java:987)

Maybe someone else has seen something like this ?

Cube

DopeForADay
Posts: 32
Joined: Thu Apr 22, 2004 9:15 am

Post by DopeForADay » Wed Jul 14, 2004 7:15 am

It would be easier to tell if you showed some code, but I think it's you messing something up when you do something with you dataset.

cube
Posts: 22
Joined: Tue Mar 30, 2004 11:26 am
Contact:

Post by cube » Wed Jul 14, 2004 12:55 pm

It was my fault - thread synchronization issue

Locked