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

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

via Oracle Community by 3004, 1 year ago
Index: 2, Size: 0
via Atlassian JIRA by Jesse Gibbs [Atlassian], 1 year ago
Index: 2, Size: 2
via Atlassian JIRA by Jesse Gibbs [Atlassian], 1 year ago
Index: 2, Size: 2
via YouTrack by Unknown author, 2 years ago
Index: 14, Size: 2
via Oracle Community by Swati Pandey, 1 year ago
via Stack Overflow by user3477016
, 2 years ago
java.lang.IndexOutOfBoundsException: Index: 2, Size: 0
at java.util.ArrayList.RangeCheck(Unknown Source)
at java.util.ArrayList.get(Unknown Source)
at com.m7.wide.mldoc.elemkit.ServerScriptElem.I(Unknown Source)
at com.m7.wide.mldoc.elemkit.ServerScriptElem.getCountVariables(Unknown Source)
at com.m7.wide.mldoc.B.A(Unknown Source)
at com.m7.wide.mldoc.B.D(Unknown Source)
at com.m7.wide.mldoc.B.hasNext(Unknown Source)
at com.m7.wide.mldoc.R.A(Unknown Source)
at com.m7.wide.mldoc.X.A(Unknown Source)
at com.m7.wide.mldoc.X.B(Unknown Source)
at com.m7.wide.mldoc.elemkit.ExpressionElem.A(Unknown Source)
at com.m7.wide.mldoc.elemkit.ExpressionElem.getValueRef(Unknown Source)
at com.m7.wide.mldoc.j.B(Unknown Source)
at com.m7.wide.jstl.core.OutElem.getValueRef(Unknown Source)
at com.m7.wide.mldoc.j.B(Unknown Source)
at com.m7.wide.jstudio.tags.DefaultAttrEditor.getRenderingText(Unknown Source)
at com.m7.wide.jstudio.tags.DefaultAttrEditor.N(Unknown Source)
at com.m7.wide.jstudio.tags.DefaultAttrEditor.A(Unknown Source)
at com.m7.wide.jstudio.tags.DefaultAttrEditor.K(Unknown Source)
at com.m7.wide.jstudio.tags.DefaultAttrEditor.setValue(Unknown Source)
at com.m7.wide.jstudio.tags.DefaultAttrEditor.initValue(Unknown Source)
at com.m7.wide.jstudio.tags.DefaultTagEditor.C(Unknown Source)
at com.m7.wide.jstudio.tags.DefaultTagEditor.getModifyPanel(Unknown Source)
at com.m7.wide.tagedit.TagModifController.setTag(Unknown Source)
at com.m7.wide.tagedit.TagModifController.(Unknown Source)
at com.m7.wide.jstudio.tags.TagModifView.n(Unknown Source)
at com.m7.wide.jstudio.tags.TagModifView.p(Unknown Source)
at com.m7.wide.jstudio.tags.TagModifView.targetElementChanged(Unknown Source)
at com.m7.wide.jstudio.tags.TargetElementSelector.D(Unknown Source)
at com.m7.wide.jstudio.tags.TargetElementView.actionPerformed(Unknown Source)
at com.m7.B.Q.A(Unknown Source)
at com.m7.B.Q.B(Unknown Source)
at com.m7.B.Q.A(Unknown Source)
at com.m7.B.Q.A(Unknown Source)
at com.m7.wide.jstudio.tags.TargetElementView.targetElementChanged(Unknown Source)
at com.m7.wide.doceditor.TargetElementTracker.C(Unknown Source)
at com.m7.wide.doceditor.TargetElementTracker.B(Unknown Source)
at com.m7.wide.doceditor.TargetElementTracker.selectionChanged(Unknown Source)
at com.m7.wide.doceditor.AbstractPane.fireSelectionEvent(Unknown Source)
at com.m7.wide.doceditor.SourcePane.C(Unknown Source)
at com.m7.wide.doceditor.SourcePane.B(Unknown Source)
at com.m7.wide.eclipse.doceditor.EclipseSourcePane.selectionChanged(Unknown Source)
at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:616)
at org.eclipse.jface.text.TextViewer.fireSelectionChanged(TextViewer.java:2164)
at org.eclipse.jface.text.TextViewer.selectionChanged(TextViewer.java:2147)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:89)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:82)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:796)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:820)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:805)
at org.eclipse.ui.texteditor.TextNavigationAction.doFireSelectionChanged(TextNavigationAction.java:76)
at org.eclipse.ui.texteditor.TextNavigationAction.fireSelectionChanged(TextNavigationAction.java:99)
at org.eclipse.ui.texteditor.AbstractTextEditor$LineEndAction.run(AbstractTextEditor.java:1027)
at org.eclipse.swt.custom.StyledTextListener.handleEvent(StyledTextListener.java:55)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:82)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:796)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:820)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:805)
at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:613)
at org.eclipse.swt.custom.StyledText.handleKeyDown(StyledText.java:5000)
at org.eclipse.swt.custom.StyledText$7.handleEvent(StyledText.java:4747)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:82)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:796)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:820)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:805)
at org.eclipse.swt.widgets.Control.sendKeyEvent(Control.java:1734)
at org.eclipse.swt.widgets.Control.sendKeyEvent(Control.java:1730)
at org.eclipse.swt.widgets.Control.WM_KEYDOWN(Control.java:3517)
at org.eclipse.swt.widgets.Control.windowProc(Control.java:2997)
at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:1473)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1377)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1348)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:141)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:273)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at org.eclipse.core.launcher.Main.basicRun(Main.java:185)
at org.eclipse.core.launcher.Main.run(Main.java:704)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at com.m7.installer.util.NitroxMain$1.run(NitroxMain.java:28)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)

Users with the same issue

Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago

Write tip

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