java.lang.ArrayIndexOutOfBoundsException: -1

tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    jfx dialogs gettin error

    Stack Overflow | 2 years ago | Kiee79
    java.lang.NoSuchMethodError: com.sun.javafx.css.StyleManager.getPseudoclassMask(Ljava/lang/String;)J
  2. 0

    IOOBE while adding person

    GitHub | 10 months ago | damithc
    java.lang.IndexOutOfBoundsException: Index: 4, Size: 4
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    Exception during running man

    GitHub | 6 months ago | cbdmaul
    java.lang.IllegalStateException: Not on FX application thread; currentThread = Thread-6147
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.ArrayIndexOutOfBoundsException

    -1

    at java.util.ArrayList.elementData()
  2. Java RT
    ArrayList.get
    1. java.util.ArrayList.elementData(ArrayList.java:418)
    2. java.util.ArrayList.get(ArrayList.java:431)
    2 frames
  3. com.sun.javafx
    ObservableListWrapper.get
    1. com.sun.javafx.collections.ObservableListWrapper.get(ObservableListWrapper.java:89)
    1 frame
  4. view.adminAccess.studentOverview
    ChoiceBoxCell.lambda$new$0
    1. view.adminAccess.studentOverview.ChoiceBoxCell.lambda$new$0(ChoiceBoxCell.java:20)
    1 frame
  5. com.sun.javafx
    ExpressionHelper.fireValueChangedEvent
    1. com.sun.javafx.binding.ExpressionHelper$Generic.fireValueChangedEvent(ExpressionHelper.java:361)
    2. com.sun.javafx.binding.ExpressionHelper.fireValueChangedEvent(ExpressionHelper.java:81)
    2 frames
  6. 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
  7. FXSampler
    ChoiceBox$4.invalidated
    1. javafx.scene.control.SelectionModel.setSelectedIndex(SelectionModel.java:68)
    2. javafx.scene.control.SingleSelectionModel.select(SingleSelectionModel.java:114)
    3. javafx.scene.control.ChoiceBox$4.invalidated(ChoiceBox.java:331)
    3 frames
  8. javafx.beans.property
    ObjectPropertyBase.set
    1. javafx.beans.property.ObjectPropertyBase.markInvalid(ObjectPropertyBase.java:111)
    2. javafx.beans.property.ObjectPropertyBase.set(ObjectPropertyBase.java:146)
    2 frames
  9. FXSampler
    ChoiceBox.setValue
    1. javafx.scene.control.ChoiceBox.setValue(ChoiceBox.java:336)
    1 frame
  10. view.adminAccess.studentOverview
    ChoiceBoxCell.updateItem
    1. view.adminAccess.studentOverview.ChoiceBoxCell.updateItem(ChoiceBoxCell.java:58)
    2. view.adminAccess.studentOverview.ChoiceBoxCell.updateItem(ChoiceBoxCell.java:10)
    2 frames
  11. FXSampler
    TableRowSkinBase.lambda$init$497
    1. javafx.scene.control.TableCell.updateItem(TableCell.java:639)
    2. javafx.scene.control.TableCell.indexChanged(TableCell.java:468)
    3. javafx.scene.control.IndexedCell.updateIndex(IndexedCell.java:116)
    4. com.sun.javafx.scene.control.skin.TableRowSkinBase.requestCellUpdate(TableRowSkinBase.java:659)
    5. com.sun.javafx.scene.control.skin.TableRowSkinBase.lambda$init$497(TableRowSkinBase.java:159)
    5 frames
  12. 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
  13. javafx.beans.property
    ObjectPropertyBase.set
    1. javafx.beans.property.ObjectPropertyBase.fireValueChangedEvent(ObjectPropertyBase.java:105)
    2. javafx.beans.property.ObjectPropertyBase.markInvalid(ObjectPropertyBase.java:112)
    3. javafx.beans.property.ObjectPropertyBase.set(ObjectPropertyBase.java:146)
    3 frames
  14. FXSampler
    VirtualFlow.layoutChildren
    1. javafx.scene.control.Cell.setItem(Cell.java:403)
    2. javafx.scene.control.Cell.updateItem(Cell.java:670)
    3. javafx.scene.control.TableRow.updateItem(TableRow.java:268)
    4. javafx.scene.control.TableRow.indexChanged(TableRow.java:225)
    5. javafx.scene.control.IndexedCell.updateIndex(IndexedCell.java:116)
    6. com.sun.javafx.scene.control.skin.VirtualFlow.releaseCell(VirtualFlow.java:1807)
    7. com.sun.javafx.scene.control.skin.VirtualFlow.getCellLength(VirtualFlow.java:1881)
    8. com.sun.javafx.scene.control.skin.VirtualFlow.computeViewportOffset(VirtualFlow.java:2528)
    9. com.sun.javafx.scene.control.skin.VirtualFlow.layoutChildren(VirtualFlow.java:1189)
    9 frames
  15. javafx.scene
    Scene$ScenePulseListener.pulse
    1. javafx.scene.Parent.layout(Parent.java:1079)
    2. javafx.scene.Parent.layout(Parent.java:1085)
    3. javafx.scene.Parent.layout(Parent.java:1085)
    4. javafx.scene.Parent.layout(Parent.java:1085)
    5. javafx.scene.Parent.layout(Parent.java:1085)
    6. javafx.scene.Scene.doLayoutPass(Scene.java:552)
    7. javafx.scene.Scene$ScenePulseListener.pulse(Scene.java:2397)
    7 frames
  16. com.sun.javafx
    Toolkit.lambda$runPulse$31
    1. com.sun.javafx.tk.Toolkit.lambda$runPulse$31(Toolkit.java:355)
    1 frame
  17. Java RT
    AccessController.doPrivileged
    1. java.security.AccessController.doPrivileged(Native Method)
    1 frame
  18. com.sun.javafx
    GlassViewEventHandler$ViewEventNotification.run
    1. com.sun.javafx.tk.Toolkit.runPulse(Toolkit.java:354)
    2. com.sun.javafx.tk.Toolkit.firePulse(Toolkit.java:381)
    3. com.sun.javafx.tk.quantum.QuantumToolkit.pulse(QuantumToolkit.java:510)
    4. com.sun.javafx.tk.quantum.PaintCollector.liveRepaintRenderJob(PaintCollector.java:320)
    5. com.sun.javafx.tk.quantum.GlassViewEventHandler$ViewEventNotification.run(GlassViewEventHandler.java:788)
    6. com.sun.javafx.tk.quantum.GlassViewEventHandler$ViewEventNotification.run(GlassViewEventHandler.java:749)
    6 frames
  19. Java RT
    AccessController.doPrivileged
    1. java.security.AccessController.doPrivileged(Native Method)
    1 frame
  20. com.sun.javafx
    GlassViewEventHandler.handleViewEvent
    1. com.sun.javafx.tk.quantum.GlassViewEventHandler.lambda$handleViewEvent$369(GlassViewEventHandler.java:828)
    2. com.sun.javafx.tk.quantum.QuantumToolkit.runWithoutRenderLock(QuantumToolkit.java:389)
    3. com.sun.javafx.tk.quantum.GlassViewEventHandler.handleViewEvent(GlassViewEventHandler.java:827)
    3 frames
  21. com.sun.glass
    Window.setBounds
    1. com.sun.glass.ui.View.handleViewEvent(View.java:539)
    2. com.sun.glass.ui.View.notifyResize(View.java:875)
    3. com.sun.glass.ui.win.WinWindow._setBounds(Native Method)
    4. com.sun.glass.ui.Window.setBounds(Window.java:572)
    4 frames
  22. com.sun.javafx
    WindowStage.setBounds
    1. com.sun.javafx.tk.quantum.WindowStage.setBounds(WindowStage.java:318)
    1 frame
  23. javafx.stage
    Window$TKBoundsConfigurator.pulse
    1. javafx.stage.Window$TKBoundsConfigurator.apply(Window.java:1274)
    2. javafx.stage.Window$TKBoundsConfigurator.pulse(Window.java:1290)
    2 frames
  24. com.sun.javafx
    Toolkit.lambda$runPulse$31
    1. com.sun.javafx.tk.Toolkit.lambda$runPulse$31(Toolkit.java:355)
    1 frame
  25. Java RT
    AccessController.doPrivileged
    1. java.security.AccessController.doPrivileged(Native Method)
    1 frame
  26. com.sun.javafx
    QuantumToolkit.lambda$runToolkit$405
    1. com.sun.javafx.tk.Toolkit.runPulse(Toolkit.java:354)
    2. com.sun.javafx.tk.Toolkit.firePulse(Toolkit.java:378)
    3. com.sun.javafx.tk.quantum.QuantumToolkit.pulse(QuantumToolkit.java:510)
    4. com.sun.javafx.tk.quantum.QuantumToolkit.pulse(QuantumToolkit.java:490)
    5. com.sun.javafx.tk.quantum.QuantumToolkit.lambda$runToolkit$405(QuantumToolkit.java:319)
    5 frames
  27. com.sun.glass
    WinApplication.lambda$null$149
    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$149(WinApplication.java:191)
    3 frames
  28. Java RT
    Thread.run
    1. java.lang.Thread.run(Thread.java:745)
    1 frame