java.lang.IndexOutOfBoundsException

Index: 4, Size: 2


Samebug tips1

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.

Don't give up yet. Our experts can help. Paste your full stack trace to get a solution.


Solutions on the web6926

Solution icon of mojang
via Mojang JIRA by [Bot] Hopper, 6 months ago
Index: 4, Size: 2

Solution icon of stackoverflow
Index: 4, Size: 2

Solution icon of bugzilla
via Eclipse Bugzilla by mkleint, 1 year ago
Index: 4, Size: 2

Solution icon of mojang
via Mojang JIRA by [Bot] Hopper, 1 year ago
Index: 4, Size: 2

Solution icon of sourceforge
Index: 4, Size: 2

Solution icon of github
Index: 4, Size: 2

Solution icon of web
Index: 4, Size: 2

Solution icon of github
via GitHub by msuchard
, 9 months ago
Index: 4, Size: 2

Solution icon of github
Invalid index 4, size is 2

Solution icon of stackoverflow
Invalid index 4, size is 2

Stack trace

  • java.lang.IndexOutOfBoundsException: Index: 4, Size: 2 at java.util.ArrayList.rangeCheck(Unknown Source) at java.util.ArrayList.get(Unknown Source) at beb.a(SourceFile:108) at bdd.a(SourceFile:78) at beb.a(SourceFile:122)

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 2 weeks ago
Samebug visitor profile picture
Unknown user
Once, 2 months ago
Samebug visitor profile picture
Unknown user
12 times, 6 months ago
Samebug visitor profile picture
Unknown user
Once, 6 months ago
Samebug visitor profile picture
Unknown user
Once, 7 months ago
243 more bugmates