Method.invoke() has thrown an IndexOutOfBoundsException

java.lang.IndexOutOfBoundsException
Javadoc
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. @author Frank Yellin @since JDK1.0

at java.util.ArrayList.rangeCheck
(source)
at java.util.ArrayList.get
(source)
at sun.reflect.NativeMethodAccessorImpl.invoke0
(source)
at sun.reflect.NativeMethodAccessorImpl.invoke
(source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke
(source)
at java.lang.reflect.Method.invoke
(source)
5 frames hidden

Typical Exception Messages

  1. Index: 0, Size: 0
  2. Index: 1, Size: 1
  3. Index: 3, Size: 3

Origin

ArrayList.get() has thrown an IndexOutOfBoundsException

java.lang.IndexOutOfBoundsException
1 frames hidden
java.util.ArrayList.get
1953Web pages
1Solution

Similar

Specific cases

External results for this pattern (5)

  1. Haas, Evanvia Google Groups10 months ago
  2. Index: 0, Size: 0
    Show stack trace