java.lang.ArrayIndexOutOfBoundsException: -1

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Oracle Community by 807551, 1 year ago
via Oracle Community by 807600, 2 months ago
Array index out of range: 1
via Oracle Community by 695680, 1 year ago
Array index out of range: 1
via Oracle Community by user12094010, 1 year ago
Array index out of range: 1
via oracle.com by Unknown author, 1 year ago
Array index out of range: 1
java.lang.ArrayIndexOutOfBoundsException: -1
at java.util.Vector.get(Vector.java:715)
at undefined.ListFrame.jListValueChanged(AddressBook.java:120)
at undefined.ListFrame.access$100(AddressBook.java:33)
at undefined.ListFrame$2.valueChanged(AddressBook.java:66)
at javax.swing.JList.fireSelectionValueChanged(JList.java:1318)
at javax.swing.JList$ListSelectionHandler.valueChanged(JList.java:1332)
at javax.swing.DefaultListSelectionModel.fireValueChanged(DefaultListSelectionModel.java:187)
at javax.swing.DefaultListSelectionModel.fireValueChanged(DefaultListSelectionModel.java:167)
at javax.swing.DefaultListSelectionModel.fireValueChanged(DefaultListSelectionModel.java:214)
at javax.swing.DefaultListSelectionModel.removeIndexInterval(DefaultListSelectionModel.java:546)
at javax.swing.plaf.basic.BasicListUI$ListDataHandler.intervalRemoved(BasicListUI.java:1560)
at javax.swing.AbstractListModel.fireIntervalRemoved(AbstractListModel.java:160)
at javax.swing.DefaultListModel.removeElementAt(DefaultListModel.java:313)
at undefined.ListFrame.btn_deleteMouseClicked(AddressBook.java:105)
at undefined.ListFrame.access$300(AddressBook.java:33)
at undefined.ListFrame$4.mouseClicked(AddressBook.java:85)
at java.awt.AWTEventMulticaster.mouseClicked(AWTEventMulticaster.java:208)
at java.awt.Component.processMouseEvent(Component.java:5096)
at java.awt.Component.processEvent(Component.java:4890)
at java.awt.Container.processEvent(Container.java:1566)
at java.awt.Component.dispatchEventImpl(Component.java:3598)
at java.awt.Container.dispatchEventImpl(Container.java:1623)
at java.awt.Component.dispatchEvent(Component.java:3439)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3450)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3174)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3095)
at java.awt.Container.dispatchEventImpl(Container.java:1609)
at java.awt.Window.dispatchEventImpl(Window.java:1585)
at java.awt.Component.dispatchEvent(Component.java:3439)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:450)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:197)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:144)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:136)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:99)

Users with the same issue

2 times, 1 year ago
6 times, 4 months ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
4 times, 1 year ago
3 more bugmates

Know the solutions? Share your knowledge to help other developers to debug faster.