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

Samebug tips

  1. ,
    Expert tip

    Thrown to indicate that an index of some sort (such as to an array, to a string, or to a vector) is out of range. Applications can subclass this class to indicate similar exceptions.

  2. ,

    Thrown if trying to access an index which is out of bounds on objects like String, Array, or Vector. Any negative integer less than or equal to -1 and positive integer greater than or equal to the size of the object is an index which would be out of bounds

Solutions on the web

via GitHub by damithc
, 1 year ago
Index: 4, Size: 4
via soapui.org by Unknown author, 2 years ago
via Eclipse Bugzilla by jonah, 4 months ago
via GitHub by ochipara
, 2 years ago
via https://bugzilla.redhat.com/bugzilla/ by Rami Vaknin, 1 year ago
java.lang.IndexOutOfBoundsException: Index: 4, Size: 4	at java.util.ArrayList.rangeCheck(ArrayList.java:653)	at java.util.ArrayList.get(ArrayList.java:429)	at com.sun.javafx.collections.ObservableListWrapper.get(ObservableListWrapper.java:89)	at address.util.collections.ReorderedList.getSourceIndex(ReorderedList.java:49)	at address.util.collections.ReorderedList.get(ReorderedList.java:54)	at javafx.scene.control.ListView$ListViewBitSetSelectionModel.getModelItem(ListView.java:1429)	at javafx.scene.control.MultipleSelectionModelBase.lambda$new$34(MultipleSelectionModelBase.java:67)	at com.sun.javafx.binding.ExpressionHelper$SingleInvalidation.fireValueChangedEvent(ExpressionHelper.java:137)	at com.sun.javafx.binding.ExpressionHelper.fireValueChangedEvent(ExpressionHelper.java:81)	at javafx.beans.property.ReadOnlyIntegerWrapper$ReadOnlyPropertyImpl.fireValueChangedEvent(ReadOnlyIntegerWrapper.java:176)	at javafx.beans.property.ReadOnlyIntegerWrapper.fireValueChangedEvent(ReadOnlyIntegerWrapper.java:142)	at javafx.beans.property.IntegerPropertyBase.markInvalid(IntegerPropertyBase.java:113)	at javafx.beans.property.IntegerPropertyBase.set(IntegerPropertyBase.java:147)	at javafx.scene.control.SelectionModel.setSelectedIndex(SelectionModel.java:68)	at javafx.scene.control.MultipleSelectionModelBase.shiftSelection(MultipleSelectionModelBase.java:294)	at javafx.scene.control.ListView$ListViewBitSetSelectionModel.updateSelection(ListView.java:1377)	at javafx.scene.control.ListView$ListViewBitSetSelectionModel.access$1500(ListView.java:1167)	at javafx.scene.control.ListView$ListViewBitSetSelectionModel$2.onChanged(ListView.java:1248)	at javafx.collections.WeakListChangeListener.onChanged(WeakListChangeListener.java:88)	at com.sun.javafx.collections.ListListenerHelper$Generic.fireValueChangedEvent(ListListenerHelper.java:329)	at com.sun.javafx.collections.ListListenerHelper.fireValueChangedEvent(ListListenerHelper.java:73)	at javafx.collections.ObservableListBase.fireChange(ObservableListBase.java:233)	at address.util.collections.ReorderedList.sourceChanged(ReorderedList.java:44)	at javafx.collections.transformation.TransformationList.lambda$getListener$15(TransformationList.java:106)	at javafx.collections.WeakListChangeListener.onChanged(WeakListChangeListener.java:88)	at com.sun.javafx.collections.ListListenerHelper$SingleChange.fireValueChangedEvent(ListListenerHelper.java:164)	at com.sun.javafx.collections.ListListenerHelper.fireValueChangedEvent(ListListenerHelper.java:73)	at javafx.collections.ObservableListBase.fireChange(ObservableListBase.java:233)	at javafx.collections.ListChangeBuilder.commit(ListChangeBuilder.java:482)	at javafx.collections.ListChangeBuilder.endChange(ListChangeBuilder.java:541)	at javafx.collections.ObservableListBase.endChange(ObservableListBase.java:205)	at address.util.FilteredList.sourceChanged(FilteredList.java:126)	at javafx.collections.transformation.TransformationList.lambda$getListener$15(TransformationList.java:106)	at javafx.collections.WeakListChangeListener.onChanged(WeakListChangeListener.java:88)	at com.sun.javafx.collections.ListListenerHelper$SingleChange.fireValueChangedEvent(ListListenerHelper.java:164)	at com.sun.javafx.collections.ListListenerHelper.fireValueChangedEvent(ListListenerHelper.java:73)	at javafx.collections.ObservableListBase.fireChange(ObservableListBase.java:233)	at javafx.collections.ListChangeBuilder.commit(ListChangeBuilder.java:482)	at javafx.collections.ListChangeBuilder.endChange(ListChangeBuilder.java:541)	at javafx.collections.ObservableListBase.endChange(ObservableListBase.java:205)	at javafx.collections.ModifiableObservableListBase.remove(ModifiableObservableListBase.java:183)	at javafx.collections.ModifiableObservableListBase.remove(ModifiableObservableListBase.java:171)	at address.model.datatypes.person.ReadOnlyPerson.removeOneById(ReadOnlyPerson.java:37)	at address.model.datatypes.ViewableAddressBook.removePerson(ViewableAddressBook.java:87)	at address.model.AddPersonCommand.lambda$finishWithCancel$70(AddPersonCommand.java:135)	at address.util.PlatformExecUtil.lambda$runLaterAndWait$74(PlatformExecUtil.java:77)	at com.sun.javafx.application.PlatformImpl.lambda$null$173(PlatformImpl.java:295)	at java.security.AccessController.doPrivileged(Native Method)	at com.sun.javafx.application.PlatformImpl.lambda$runLater$174(PlatformImpl.java:294)	at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:95)	at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)	at com.sun.glass.ui.win.WinApplication.lambda$null$148(WinApplication.java:191)	at java.lang.Thread.run(Thread.java:745)