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:546)
at java.util.ArrayList.get(ArrayList.java:321)
at org.tp23.antinstaller.renderer.swing.ProgressPanel.targetStarted(Unknown Source)
at org.tp23.antinstaller.renderer.swing.SwingInstallerContext.targetStarted(Unknown Source)
at org.tp23.antinstaller.antmod.FeedbackListener.targetStarted(Unknown Source)
at org.apache.tools.ant.Project.fireTargetStarted(Project.java:1902)
at org.apache.tools.ant.Target.performTasks(Target.java:367)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:37)
at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:382)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
at org.apache.tools.ant.Task.perform(Task.java:364)
at org.apache.tools.ant.Target.execute(Target.java:341)
at org.apache.tools.ant.Target.performTasks(Target.java:369)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
at org.tp23.antinstaller.runtime.exe.AntProjectFilter.exec(Unknown Source)
at org.tp23.antinstaller.runtime.ExecInstall.exec(Unknown Source)
at org.tp23.antinstaller.selfextract.NonExtractor.main(Unknown Source)

Users with the same issue

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

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