java.lang.IndexOutOfBoundsException: Index: 21, Size: 6

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


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

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.

Solutions on the web

via GitHub by hmbigburt
, 2 years ago
Index: 34, Size: 14
via by Unknown author, 1 year ago
Index: 31, Size: 0
via GitHub by hex1337
, 1 year ago
Index: 23, Size: 23
via by Unknown author, 1 year ago
Index: 0, Size: 0
java.lang.IndexOutOfBoundsException: Index: 21, Size: 6
at java.util.ArrayList.rangeCheck(Unknown Source)
at java.util.ArrayList.get(Unknown Source)
at invtweaks.forge.ClientProxy.slotClick(
at invtweaks.InvTweaksContainerManager.leftClick(
at invtweaks.InvTweaksContainerManager.move(
at invtweaks.InvTweaksContainerSectionManager.move(
at invtweaks.InvTweaksHandlerAutoRefill$
at invtweaks.InvTweaks$
at invtweaks.InvTweaks.onTick(
at invtweaks.InvTweaks.onTickInGame(
at invtweaks.forge.ForgeClientTick.onTick(
at cpw.mods.fml.common.eventhandler.ASMEventHandler_1286_ForgeClientTick_onTick_ClientTickEvent.invoke(.dynamic)
at cpw.mods.fml.common.eventhandler.ASMEventHandler.invoke(
at net.minecraft.client.Minecraft.func_71407_l(
at net.minecraft.client.Minecraft.func_71411_J(
at net.minecraft.client.Minecraft.func_99999_d(
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at net.minecraft.launchwrapper.Launch.launch(

Users with the same issue

Once, 1 day ago
2 times, 1 week ago
9 times, 1 week ago
Once, 2 weeks ago
523 times, 2 weeks ago

Write tip

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