java.lang.ArrayIndexOutOfBoundsException: -1

Coderanch | Douby Luka | 2 years ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Multiple JLists make only 2 of them selectable

    Coderanch | 2 years ago | Douby Luka
    java.lang.ArrayIndexOutOfBoundsException: -1
  2. 0

    java.lang.ArrayIndexOutOfBoundsException: -27566080

    Netbeans Bugzilla | 2 decades ago | rpetruzzelli
    java.lang.ArrayIndexOutOfBoundsException: -27566080 at java.awt.image.SinglePixelPackedSampleModel.<init>(Compiled Code) at java.awt.image.Raster.createPackedRaster(Compiled Code) at java.awt.image.Raster.createPackedRaster(Compiled Code) at java.awt.image.DirectColorModel.createCompatibleWritableRaster(Compiled Code) at sun.awt.motif.MComponentPeer.createImage(Compiled Code) at java.awt.Component.createImage(Compiled Code) at java.awt.Component.createImage(Compiled Code) at javax.swing.RepaintManager.getOffscreenBuffer(Compiled Code) at javax.swing.JComponent._paintImmediately(Compiled Code) at javax.swing.JComponent.paintImmediately(Compiled Code) at javax.swing.RepaintManager.paintDirtyRegions(Compiled Code) at org.netbeans.core.windows.PinRepaintRM.paintDirtyRegions(Compiled Code) at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(Compiled Code) at javax.swing.SystemEventQueueUtilities.processRunnableEvent(Compiled Code) at javax.swing.SystemEventQueueUtilities.access$0(Compiled Code) at javax.swing.SystemEventQueueUtilities$RunnableTarget.processEvent(Compiled Code) at java.awt.Component.dispatchEventImpl(Compiled Code) at java.awt.Component.dispatchEvent(Compiled Code) [catch] at java.awt.EventQueue.dispatchEvent(Compiled Code) at java.awt.EventDispatchThread.pumpOneEvent(Compiled Code) at java.awt.EventDispatchThread.pumpEvents(Compiled Code)

    Root Cause Analysis

    1. java.lang.ArrayIndexOutOfBoundsException

      -1

      at BusinessIntelligence.SortedListModel.getElementAt()
    2. BusinessIntelligence
      TblManagement$ListSelectionHandler.valueChanged
      1. BusinessIntelligence.SortedListModel.getElementAt(SortedListModel.java:26)
      2. BusinessIntelligence.TblManagement$ListSelectionHandler.valueChanged(TblManagement.java:351)
      2 frames
    3. Java RT
      JList.clearSelection
      1. javax.swing.JList.fireSelectionValueChanged(Unknown Source)
      2. javax.swing.JList$ListSelectionHandler.valueChanged(Unknown Source)
      3. javax.swing.DefaultListSelectionModel.fireValueChanged(Unknown Source)
      4. javax.swing.DefaultListSelectionModel.fireValueChanged(Unknown Source)
      5. javax.swing.DefaultListSelectionModel.fireValueChanged(Unknown Source)
      6. javax.swing.DefaultListSelectionModel.changeSelection(Unknown Source)
      7. javax.swing.DefaultListSelectionModel.changeSelection(Unknown Source)
      8. javax.swing.DefaultListSelectionModel.removeSelectionIntervalImpl(Unknown Source)
      9. javax.swing.DefaultListSelectionModel.clearSelection(Unknown Source)
      10. javax.swing.JList.clearSelection(Unknown Source)
      10 frames
    4. BusinessIntelligence
      TblManagement$ListSelectionHandler.valueChanged
      1. BusinessIntelligence.TblManagement.clearSelections(TblManagement.java:316)
      2. BusinessIntelligence.TblManagement.clearSelections(TblManagement.java:326)
      3. BusinessIntelligence.TblManagement.clearSelections(TblManagement.java:326)
      4. BusinessIntelligence.TblManagement.clearSelections(TblManagement.java:326)
      5. BusinessIntelligence.TblManagement.clearSelections(TblManagement.java:326)
      6. BusinessIntelligence.TblManagement$ListSelectionHandler.valueChanged(TblManagement.java:348)
      6 frames
    5. Java RT
      EventDispatchThread.run
      1. javax.swing.JList.fireSelectionValueChanged(Unknown Source)
      2. javax.swing.JList$ListSelectionHandler.valueChanged(Unknown Source)
      3. javax.swing.DefaultListSelectionModel.fireValueChanged(Unknown Source)
      4. javax.swing.DefaultListSelectionModel.fireValueChanged(Unknown Source)
      5. javax.swing.DefaultListSelectionModel.setValueIsAdjusting(Unknown Source)
      6. javax.swing.JList.setValueIsAdjusting(Unknown Source)
      7. javax.swing.plaf.basic.BasicListUI$Handler.mouseReleased(Unknown Source)
      8. java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
      9. java.awt.Component.processMouseEvent(Unknown Source)
      10. javax.swing.JComponent.processMouseEvent(Unknown Source)
      11. java.awt.Component.processEvent(Unknown Source)
      12. java.awt.Container.processEvent(Unknown Source)
      13. java.awt.Component.dispatchEventImpl(Unknown Source)
      14. java.awt.Container.dispatchEventImpl(Unknown Source)
      15. java.awt.Component.dispatchEvent(Unknown Source)
      16. java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
      17. java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
      18. java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
      19. java.awt.Container.dispatchEventImpl(Unknown Source)
      20. java.awt.Window.dispatchEventImpl(Unknown Source)
      21. java.awt.Component.dispatchEvent(Unknown Source)
      22. java.awt.EventQueue.dispatchEventImpl(Unknown Source)
      23. java.awt.EventQueue.access$500(Unknown Source)
      24. java.awt.EventQueue$3.run(Unknown Source)
      25. java.awt.EventQueue$3.run(Unknown Source)
      26. java.security.AccessController.doPrivileged(Native Method)
      27. java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
      28. java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
      29. java.awt.EventQueue$4.run(Unknown Source)
      30. java.awt.EventQueue$4.run(Unknown Source)
      31. java.security.AccessController.doPrivileged(Native Method)
      32. java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
      33. java.awt.EventQueue.dispatchEvent(Unknown Source)
      34. java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
      35. java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
      36. java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
      37. java.awt.EventDispatchThread.pumpEvents(Unknown Source)
      38. java.awt.EventDispatchThread.pumpEvents(Unknown Source)
      39. java.awt.EventDispatchThread.run(Unknown Source)
      39 frames