Pivot
  1. Pivot
  2. PIVOT-668

AWT : java.lang.IndexOutOfBoundsException

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Cannot Reproduce
    • Affects Version/s: 1.5.2
    • Fix Version/s: 2.0.1
    • Component/s: wtk
    • Labels:
      None
    • Environment:
      Windows 7 Ultimate

      Description

      I have a recurrent exception happening in my application :

      Exception thrown during paint(): java.lang.IndexOutOfBoundsException: index 1 out of bounds.
      Exception in thread "AWT-EventQueue-0" java.lang.IndexOutOfBoundsException: index 1 out of bounds.
      at org.apache.pivot.collections.ArrayList.verifyIndexBounds(ArrayList.java:577)
      at org.apache.pivot.collections.ArrayList.get(ArrayList.java:346)
      at org.apache.pivot.wtk.Component$DecoratorSequence.get(Component.java:255)
      at org.apache.pivot.wtk.Container.paint(Container.java:398)
      at org.apache.pivot.wtk.ApplicationContext$DisplayHost.paintDisplay(ApplicationContext.java:512)
      at org.apache.pivot.wtk.ApplicationContext$DisplayHost.paintVolatileBuffered(ApplicationContext.java:478)
      at org.apache.pivot.wtk.ApplicationContext$DisplayHost.paint(ApplicationContext.java:383)
      at org.apache.pivot.wtk.ApplicationContext$DisplayHost.update(ApplicationContext.java:405)
      at sun.awt.RepaintArea.updateComponent(RepaintArea.java:239)
      at sun.awt.RepaintArea.paint(RepaintArea.java:216)
      at sun.awt.windows.WComponentPeer.handleEvent(WComponentPeer.java:310)
      at java.awt.Component.dispatchEventImpl(Component.java:4706)
      at java.awt.Component.dispatchEvent(Component.java:4460)
      at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
      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)

      I use a CardPanel to display my components (programmatically):

      Showing a component :
      cardPanel.setSelectedIndex(cardPane.add(component));

      Hiding a component
      Component component = cardPane.get(0);
      cardPane.remove(component);

      Sometimes my components open Alert windows (Alert.alert(...))

      Any ideas ?

      Regards.
      L.G.

        Activity

        Hide
        Greg Brown added a comment -

        Please provide a simple test application that reproduces the issue and we'll look into it.
        Thanks,
        G

        Show
        Greg Brown added a comment - Please provide a simple test application that reproduces the issue and we'll look into it. Thanks, G

          People

          • Assignee:
            Unassigned
            Reporter:
            LG
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development