java.lang.ArrayIndexOutOfBoundsException: 4

Coderanch | Dustin Schreader | 5 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    problems creating a new larger array with one extra element

    Coderanch | 5 years ago | Dustin Schreader
    java.lang.ArrayIndexOutOfBoundsException: 4
  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

      4

      at ServiceMaster.addDr()
    2. Unknown
      NewJFrame1$2.actionPerformed
      1. ServiceMaster.addDr(ServiceMaster.java:150)
      2. NewJFrame1.pAddButtonActionPerformed(NewJFrame1.java:259)
      3. NewJFrame1.access$100(NewJFrame1.java:19)
      4. NewJFrame1$2.actionPerformed(NewJFrame1.java:93)
      4 frames
    3. Java RT
      EventDispatchThread.run
      1. javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2028)
      2. javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2351)
      3. javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
      4. javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
      5. javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
      6. java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:272)
      7. java.awt.Component.processMouseEvent(Component.java:6373)
      8. javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
      9. java.awt.Component.processEvent(Component.java:6138)
      10. java.awt.Container.processEvent(Container.java:2085)
      11. java.awt.Component.dispatchEventImpl(Component.java:4735)
      12. java.awt.Container.dispatchEventImpl(Container.java:2143)
      13. java.awt.Component.dispatchEvent(Component.java:4565)
      14. java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4621)
      15. java.awt.LightweightDispatcher.processMouseEvent(Container.java:4282)
      16. java.awt.LightweightDispatcher.dispatchEvent(Container.java:4212)
      17. java.awt.Container.dispatchEventImpl(Container.java:2129)
      18. java.awt.Window.dispatchEventImpl(Window.java:2478)
      19. java.awt.Component.dispatchEvent(Component.java:4565)
      20. java.awt.EventQueue.dispatchEventImpl(EventQueue.java:679)
      21. java.awt.EventQueue.access$000(EventQueue.java:85)
      22. java.awt.EventQueue$1.run(EventQueue.java:638)
      23. java.awt.EventQueue$1.run(EventQueue.java:636)
      24. java.security.AccessController.doPrivileged(Native Method)
      25. java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
      26. java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:98)
      27. java.awt.EventQueue$2.run(EventQueue.java:652)
      28. java.awt.EventQueue$2.run(EventQueue.java:650)
      29. java.security.AccessController.doPrivileged(Native Method)
      30. java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
      31. java.awt.EventQueue.dispatchEvent(EventQueue.java:649)
      32. java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:296)
      33. java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:211)
      34. java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:201)
      35. java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:196)
      36. java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:188)
      37. java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
      37 frames