h4. What steps will reproduce the problem?
1. Start the QuantDesk_UI application
2. Invoke the stocks scanning feature with JavaScript as described in ???
Use the following expression for the JavaScript field:
history.correlation('DELL') > 0.5 && stock.dividendYield > 1.0
3. The first stocks that will appear will be GE and PFE. Select any. You will
see the following exception in standard output:
<pre>
STATUS: Finished Plotting data
Exception in thread "AWT-EventQueue-0" java.lang.IndexOutOfBoundsException:
Index: 1, Size: 1
at java.util.ArrayList.RangeCheck(ArrayList.java:547)
at java.util.ArrayList.get(ArrayList.java:322)
at org.jfree.data.time.TimeSeriesCollection.getY(TimeSeriesCollection.java:501)
at org.jfree.data.xy.AbstractXYDataset.getYValue(AbstractXYDataset.java:92)
at org.jfree.chart.renderer.xy.XYBarRenderer.drawItem(XYBarRenderer.java:943)
at org.jfree.chart.plot.XYPlot.render(XYPlot.java:3738)
at org.jfree.chart.plot.XYPlot.draw(XYPlot.java:3310)
at org.jfree.chart.plot.CombinedDomainXYPlot.draw(CombinedDomainXYPlot.java:466)
at org.jfree.chart.JFreeChart.draw(JFreeChart.java:1235)
at org.jfree.chart.ChartPanel.paintComponent(ChartPanel.java:1668)
at javax.swing.JComponent.paint(JComponent.java:1029)
at javax.swing.JComponent.paintToOffscreen(JComponent.java:5124)
at javax.swing.RepaintManager$PaintManager.paintDoubleBuffered(RepaintManager.java:1479)
at javax.swing.RepaintManager$PaintManager.paint(RepaintManager.java:1410)
at javax.swing.RepaintManager.paint(RepaintManager.java:1224)
at javax.swing.JComponent._paintImmediately(JComponent.java:5072)
at javax.swing.JComponent.paintImmediately(JComponent.java:4882)
at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:785)
at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:713)
at javax.swing.RepaintManager.seqPaintDirtyRegions(RepaintManager.java:693)
at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(SystemEventQueueUtilities.java:125)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
</pre>
h4. What is the expected output? What do you see instead?
The expected output is just
<xmp>
STATUS: Finished Plotting data
</xmp>
h4. Additional information
Tested in r124 (but the bug most probably has been there much earlier).
This is a minor bug, since the chart is plotted anyway (and seem to be correct).
Original issue reported on code.google.com by Andrey.D...@gmail.com on 10 Sep 2010 at 1:41
Original issue reported on code.google.com by
Andrey.D...@gmail.com
on 10 Sep 2010 at 1:41