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

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

,
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.

,

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

java.lang.IndexOutOfBoundsException: Index: 2, Size: 2
at java.util.ArrayList.rangeCheck(ArrayList.java:653)
at java.util.ArrayList.get(ArrayList.java:429)
at org.xid.basics.ui.field.ListField$2.handleEvent(ListField.java:112)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4362)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1113)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1137)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1122)
at org.eclipse.swt.widgets.Table.checkData(Table.java:1180)
at org.eclipse.swt.widgets.Table.wmNotifyChild(Table.java:6831)
at org.eclipse.swt.widgets.Control.wmNotify(Control.java:5690)
at org.eclipse.swt.widgets.Composite.wmNotify(Composite.java:1956)
at org.eclipse.swt.widgets.Control.WM_NOTIFY(Control.java:5242)
at org.eclipse.swt.widgets.Control.windowProc(Control.java:4718)
at org.eclipse.swt.internal.win32.OS.CallWindowProcW(Native Method)
at org.eclipse.swt.internal.win32.OS.CallWindowProc(OS.java:2443)
at org.eclipse.swt.widgets.Table.callWindowProc(Table.java:578)
at org.eclipse.swt.widgets.Table.callWindowProc(Table.java:444)
at org.eclipse.swt.widgets.Control.windowProc(Control.java:4760)
at org.eclipse.swt.widgets.Table.windowProc(Table.java:5983)
at org.eclipse.swt.internal.win32.OS.SendMessageW(Native Method)
at org.eclipse.swt.internal.win32.OS.SendMessage(OS.java:3302)
at org.xid.basics.ui.field.ListField.refresh(ListField.java:286)
at org.xid.basics.ui.field.ListField.setValue(ListField.java:274)
at org.xid.basics.ui.field.ListField.setValue(ListField.java:280)
at matrixstudio.ui.controller.TaskController.refreshFields(TaskController.java:186)
at org.xid.basics.ui.field.PropertiesField.setSubject(PropertiesField.java:113)
at matrixstudio.ui.MatrixStudio.setSelection(MatrixStudio.java:256)
at matrixstudio.ui.ScheduleTabController$1.notified(ScheduleTabController.java:37)
at org.xid.basics.notification.NotificationSupport$Stub.fireNotification(NotificationSupport.java:37)
at org.xid.basics.notification.NotificationSupport$Stub.fireValueNotification(NotificationSupport.java:47)
at org.xid.basics.ui.diagram.DiagramController.fireProperty(DiagramController.java:106)
at org.xid.basics.ui.diagram.DiagramController.setSelectedElements(DiagramController.java:533)
at org.xid.basics.ui.diagram.DiagramController.findSelectionNewElements(DiagramController.java:814)
at org.xid.basics.ui.diagram.DiagramController.refreshElements(DiagramController.java:353)
at org.xid.basics.ui.field.DiagramField.refreshDiagram(DiagramField.java:133)
at matrixstudio.ui.ScheduleTabController.refreshFields(ScheduleTabController.java:54)
at matrixstudio.ui.MatrixStudio.refreshSchedule(MatrixStudio.java:215)
at matrixstudio.ui.MatrixStudio.refreshFields(MatrixStudio.java:194)
at matrixstudio.ui.MatrixStudio$1.executeAction(MatrixStudio.java:80)
at org.xid.basics.ui.action.ActionManager$1.handleEvent(ActionManager.java:57)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4362)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1113)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4180)
at matrixstudio.ui.MatrixStudio.open(MatrixStudio.java:467)
at matrixstudio.ui.MatrixStudio.main(MatrixStudio.java:511)

Users with the same issue

44 times, 3 weeks ago
4 times, 5 months ago
Once, 11 months ago
2 times, 2 months ago
Samebug visitor profile picture
Unknown user
Once, 5 months ago
262 more bugmates

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