java.lang.IndexOutOfBoundsException

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.


rafael

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

  • IOOBE while adding person
    via GitHub by damithc
    ,
  • Collection in JavaFX
    via Stack Overflow by user3770144
    ,
  • help for  Stage ( Undecorated)
    via by Pugazhendhi,
    • 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)

    Users with the same issue

    Pilleo
    3 times, last one,
    ccarpenter04
    1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    jokester
    1 times, last one,
    235 more bugmates