java.lang.IndexOutOfBoundsException: Index: 4, Size: 4

GitHub | damithc | 8 months 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

    IOOBE while adding person

    GitHub | 8 months ago | damithc
    java.lang.IndexOutOfBoundsException: Index: 4, Size: 4
  2. 0

    Collection in JavaFX

    Stack Overflow | 2 years ago | user3770144
    java.lang.IndexOutOfBoundsException: Index: 5, Size: 0
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    Index out of bound exception with selected row in table

    Stack Overflow | 4 years ago | 20 Cents
    java.lang.IndexOutOfBoundsException: Index: 1, Size: 0
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.IndexOutOfBoundsException

    Index: 4, Size: 4

    at java.util.ArrayList.rangeCheck()
  2. Java RT
    ArrayList.get
    1. java.util.ArrayList.rangeCheck(ArrayList.java:653)
    2. java.util.ArrayList.get(ArrayList.java:429)
    2 frames
  3. com.sun.javafx
    ObservableListWrapper.get
    1. com.sun.javafx.collections.ObservableListWrapper.get(ObservableListWrapper.java:89)
    1 frame
  4. address.util.collections
    ReorderedList.get
    1. address.util.collections.ReorderedList.getSourceIndex(ReorderedList.java:49)
    2. address.util.collections.ReorderedList.get(ReorderedList.java:54)
    2 frames
  5. FXSampler
    MultipleSelectionModelBase.lambda$new$34
    1. javafx.scene.control.ListView$ListViewBitSetSelectionModel.getModelItem(ListView.java:1429)
    2. javafx.scene.control.MultipleSelectionModelBase.lambda$new$34(MultipleSelectionModelBase.java:67)
    2 frames
  6. com.sun.javafx
    ExpressionHelper.fireValueChangedEvent
    1. com.sun.javafx.binding.ExpressionHelper$SingleInvalidation.fireValueChangedEvent(ExpressionHelper.java:137)
    2. com.sun.javafx.binding.ExpressionHelper.fireValueChangedEvent(ExpressionHelper.java:81)
    2 frames
  7. javafx.beans.property
    IntegerPropertyBase.set
    1. javafx.beans.property.ReadOnlyIntegerWrapper$ReadOnlyPropertyImpl.fireValueChangedEvent(ReadOnlyIntegerWrapper.java:176)
    2. javafx.beans.property.ReadOnlyIntegerWrapper.fireValueChangedEvent(ReadOnlyIntegerWrapper.java:142)
    3. javafx.beans.property.IntegerPropertyBase.markInvalid(IntegerPropertyBase.java:113)
    4. javafx.beans.property.IntegerPropertyBase.set(IntegerPropertyBase.java:147)
    4 frames
  8. FXSampler
    ListView$ListViewBitSetSelectionModel$2.onChanged
    1. javafx.scene.control.SelectionModel.setSelectedIndex(SelectionModel.java:68)
    2. javafx.scene.control.MultipleSelectionModelBase.shiftSelection(MultipleSelectionModelBase.java:294)
    3. javafx.scene.control.ListView$ListViewBitSetSelectionModel.updateSelection(ListView.java:1377)
    4. javafx.scene.control.ListView$ListViewBitSetSelectionModel.access$1500(ListView.java:1167)
    5. javafx.scene.control.ListView$ListViewBitSetSelectionModel$2.onChanged(ListView.java:1248)
    5 frames
  9. javafx.collections
    WeakListChangeListener.onChanged
    1. javafx.collections.WeakListChangeListener.onChanged(WeakListChangeListener.java:88)
    1 frame
  10. com.sun.javafx
    ListListenerHelper.fireValueChangedEvent
    1. com.sun.javafx.collections.ListListenerHelper$Generic.fireValueChangedEvent(ListListenerHelper.java:329)
    2. com.sun.javafx.collections.ListListenerHelper.fireValueChangedEvent(ListListenerHelper.java:73)
    2 frames
  11. javafx.collections
    ObservableListBase.fireChange
    1. javafx.collections.ObservableListBase.fireChange(ObservableListBase.java:233)
    1 frame
  12. address.util.collections
    ReorderedList.sourceChanged
    1. address.util.collections.ReorderedList.sourceChanged(ReorderedList.java:44)
    1 frame
  13. javafx.collections.transformation
    TransformationList.lambda$getListener$15
    1. javafx.collections.transformation.TransformationList.lambda$getListener$15(TransformationList.java:106)
    1 frame
  14. javafx.collections
    WeakListChangeListener.onChanged
    1. javafx.collections.WeakListChangeListener.onChanged(WeakListChangeListener.java:88)
    1 frame
  15. com.sun.javafx
    ListListenerHelper.fireValueChangedEvent
    1. com.sun.javafx.collections.ListListenerHelper$SingleChange.fireValueChangedEvent(ListListenerHelper.java:164)
    2. com.sun.javafx.collections.ListListenerHelper.fireValueChangedEvent(ListListenerHelper.java:73)
    2 frames
  16. javafx.collections
    ObservableListBase.endChange
    1. javafx.collections.ObservableListBase.fireChange(ObservableListBase.java:233)
    2. javafx.collections.ListChangeBuilder.commit(ListChangeBuilder.java:482)
    3. javafx.collections.ListChangeBuilder.endChange(ListChangeBuilder.java:541)
    4. javafx.collections.ObservableListBase.endChange(ObservableListBase.java:205)
    4 frames
  17. address.util
    FilteredList.sourceChanged
    1. address.util.FilteredList.sourceChanged(FilteredList.java:126)
    1 frame
  18. javafx.collections.transformation
    TransformationList.lambda$getListener$15
    1. javafx.collections.transformation.TransformationList.lambda$getListener$15(TransformationList.java:106)
    1 frame
  19. javafx.collections
    WeakListChangeListener.onChanged
    1. javafx.collections.WeakListChangeListener.onChanged(WeakListChangeListener.java:88)
    1 frame
  20. com.sun.javafx
    ListListenerHelper.fireValueChangedEvent
    1. com.sun.javafx.collections.ListListenerHelper$SingleChange.fireValueChangedEvent(ListListenerHelper.java:164)
    2. com.sun.javafx.collections.ListListenerHelper.fireValueChangedEvent(ListListenerHelper.java:73)
    2 frames
  21. javafx.collections
    ModifiableObservableListBase.remove
    1. javafx.collections.ObservableListBase.fireChange(ObservableListBase.java:233)
    2. javafx.collections.ListChangeBuilder.commit(ListChangeBuilder.java:482)
    3. javafx.collections.ListChangeBuilder.endChange(ListChangeBuilder.java:541)
    4. javafx.collections.ObservableListBase.endChange(ObservableListBase.java:205)
    5. javafx.collections.ModifiableObservableListBase.remove(ModifiableObservableListBase.java:183)
    6. javafx.collections.ModifiableObservableListBase.remove(ModifiableObservableListBase.java:171)
    6 frames
  22. address.model.datatypes
    ViewableAddressBook.removePerson
    1. address.model.datatypes.person.ReadOnlyPerson.removeOneById(ReadOnlyPerson.java:37)
    2. address.model.datatypes.ViewableAddressBook.removePerson(ViewableAddressBook.java:87)
    2 frames
  23. address.model
    AddPersonCommand.lambda$finishWithCancel$70
    1. address.model.AddPersonCommand.lambda$finishWithCancel$70(AddPersonCommand.java:135)
    1 frame
  24. address.util
    PlatformExecUtil.lambda$runLaterAndWait$74
    1. address.util.PlatformExecUtil.lambda$runLaterAndWait$74(PlatformExecUtil.java:77)
    1 frame
  25. com.sun.javafx
    PlatformImpl.lambda$null$173
    1. com.sun.javafx.application.PlatformImpl.lambda$null$173(PlatformImpl.java:295)
    1 frame
  26. Java RT
    AccessController.doPrivileged
    1. java.security.AccessController.doPrivileged(Native Method)
    1 frame
  27. com.sun.javafx
    PlatformImpl.lambda$runLater$174
    1. com.sun.javafx.application.PlatformImpl.lambda$runLater$174(PlatformImpl.java:294)
    1 frame
  28. com.sun.glass
    WinApplication.lambda$null$148
    1. com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:95)
    2. com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
    3. com.sun.glass.ui.win.WinApplication.lambda$null$148(WinApplication.java:191)
    3 frames
  29. Java RT
    Thread.run
    1. java.lang.Thread.run(Thread.java:745)
    1 frame