Announcement

Collapse
No announcement yet.

java.lang.ArrayIndexOutOfBoundsException: -1 < 0

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • java.lang.ArrayIndexOutOfBoundsException: -1 < 0

    This implied coding error is appearing infrequently in the Java Console session:

    TS: SessionInfo changed
    java.lang.ArrayIndexOutOfBoundsException: -1 < 0
    at com.futuresource.util.FastVector.elementAt(Unknown Source)
    at com.futuresource.jmafkit.marketcenter.McTimeSeries .onFieldsChanged(Unknown Source)
    at com.futuresource.jmafkit.marketcenter.McActiveReco rd.onQuotesSnapshot(Unknown Source)
    at com.futuresource.jmafkit.marketcenter.McSession.no tifyListenersSnapshotArrived(Unknown Source)
    at com.futuresource.jmafkit.marketcenter.McSession.ac cess$1800(Unknown Source)
    at com.futuresource.jmafkit.marketcenter.McSession$Co mmunicationState.onPacketReceived(Unknown Source)
    at com.futuresource.jmafkit.marketcenter.McSession$Se rverConnection.onPacketReceived(Unknown Source)
    at com.futuresource.jmafkit.marketcenter.McSession$3. run(Unknown Source)
    at java.awt.event.InvocationEvent.dispatch(Unknown Source)
    at java.awt.EventQueue.dispatchEvent(Unknown Source)
    at java.awt.EventDispatchThread.pumpOneEventForFilter s(Unknown Source)
    at java.awt.EventDispatchThread.pumpEventsForFilter(U nknown Source)
    at java.awt.EventDispatchThread.pumpEventsForHierarch y(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.run(Unknown Source)
    Sending SubscribeQuery for symbol $COMPQ



    Edit: Another example.....

    TS: SessionInfo changed
    java.lang.ArrayIndexOutOfBoundsException: -1 < 0
    at com.futuresource.util.FastVector.elementAt(Unknown Source)
    at com.futuresource.jmafkit.marketcenter.McTimeSeries .onFieldsChanged(Unknown Source)
    at com.futuresource.jmafkit.marketcenter.McActiveReco rd.onQuotesSnapshot(Unknown Source)
    at com.futuresource.jmafkit.marketcenter.McSession.no tifyListenersSnapshotArrived(Unknown Source)
    at com.futuresource.jmafkit.marketcenter.McSession.ac cess$1800(Unknown Source)
    at com.futuresource.jmafkit.marketcenter.McSession$Co mmunicationState.onPacketReceived(Unknown Source)
    at com.futuresource.jmafkit.marketcenter.McSession$Se rverConnection.onPacketReceived(Unknown Source)
    at com.futuresource.jmafkit.marketcenter.McSession$3. run(Unknown Source)
    at java.awt.event.InvocationEvent.dispatch(Unknown Source)
    at java.awt.EventQueue.dispatchEvent(Unknown Source)
    at java.awt.EventDispatchThread.pumpOneEventForFilter s(Unknown Source)
    at java.awt.EventDispatchThread.pumpEventsForFilter(U nknown Source)
    at java.awt.EventDispatchThread.pumpEventsForHierarch y(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.run(Unknown Source)
    SD exception for symbol DE
    Sending UnsubscribeQuery for symbol DE
    Sending SubscribeQuery for symbol DE
    Painting of layer group took 344 milliseconds.
    Painting of layer group took 1797 milliseconds.
    Last edited by dannol48; 04-23-2008, 09:14 AM.

  • #2
    I have forwarded this information to engineering as they continue to investigate this issue.

    Comment


    • #3
      When you create a new portfolio and do not populate it immediately with any stocks, you get the following code error from Java upon refresh to add the portfolio to the drop-down list:

      Exception in thread "AWT-EventQueue-2" java.lang.ArrayIndexOutOfBoundsException: -1
      at com.futuresource.quotes.ActiveDataTable.getRowBack groundFor(Unknown Source)
      at com.futuresource.datacell.FieldCell.generatePalett e(Unknown Source)
      at com.futuresource.livecharts.marketview.datacell.LC ActiveSymbolCell.doPaint(Unknown Source)
      at com.futuresource.datacell.DataCell.paint(Unknown Source)
      at com.futuresource.datacell.DataTableImpl$1.run(Unkn own Source)
      at java.awt.event.InvocationEvent.dispatch(Unknown Source)
      at java.awt.EventQueue.dispatchEvent(Unknown Source)
      at java.awt.EventDispatchThread.pumpOneEventForFilter s(Unknown Source)
      at java.awt.EventDispatchThread.pumpEventsForFilter(U nknown Source)
      at java.awt.EventDispatchThread.pumpEventsForHierarch y(Unknown Source)
      at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
      at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
      at java.awt.EventDispatchThread.run(Unknown Source)

      Note....I'm exploring the spin-off problems associated with the error, as this simple bug may lead to leak and the 100% CPU. It's also too easy to create, i.e. adding portfolio is an obvious first step with LC2.
      Last edited by dannol48; 04-30-2008, 06:50 AM.

      Comment

      Working...
      X