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

  1. ,
    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.

  2. ,

    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 GitHub by scottwainstock
, 1 year ago
Invalid index 5, size is 5
via GitHub by FHellmann
, 2 years ago
Invalid index 0, size is 0
via Stack Overflow by Jonge
, 3 months ago
via appcelerator.com by Unknown author, 2 years ago
java.lang.IndexOutOfBoundsException: Invalid index 5, size is 5	at java.util.ArrayList.throwIndexOutOfBoundsException(ArrayList.java:255)	at java.util.ArrayList.get(ArrayList.java:308)	at com.pbm.LocationListAdapter.getView(LocationListAdapter.java:48)	at android.widget.AbsListView.obtainView(AbsListView.java:2255)	at android.widget.ListView.measureHeightOfChildren(ListView.java:1263)	at android.widget.ListView.onMeasure(ListView.java:1175)	at android.view.View.measure(View.java:16540)	at android.widget.RelativeLayout.measureChild(RelativeLayout.java:689)	at android.widget.RelativeLayout.onMeasure(RelativeLayout.java:473)	at android.view.View.measure(View.java:16540)	at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5137)	at android.widget.FrameLayout.onMeasure(FrameLayout.java:310)	at android.support.v7.internal.widget.ContentFrameLayout.onMeasure(ContentFrameLayout.java:124)	at android.view.View.measure(View.java:16540)	at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5137)	at android.support.v7.internal.widget.ActionBarOverlayLayout.onMeasure(ActionBarOverlayLayout.java:444)	at android.view.View.measure(View.java:16540)	at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5137)	at android.widget.FrameLayout.onMeasure(FrameLayout.java:310)	at android.view.View.measure(View.java:16540)	at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5137)	at android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1404)	at android.widget.LinearLayout.measureVertical(LinearLayout.java:695)	at android.widget.LinearLayout.onMeasure(LinearLayout.java:588)	at android.view.View.measure(View.java:16540)	at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5137)	at android.widget.FrameLayout.onMeasure(FrameLayout.java:310)	at com.android.internal.policy.impl.PhoneWindow$DecorView.onMeasure(PhoneWindow.java:2291)	at android.view.View.measure(View.java:16540)	at android.view.ViewRootImpl.performMeasure(ViewRootImpl.java:1942)	at android.view.ViewRootImpl.measureHierarchy(ViewRootImpl.java:1132)	at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1321)	at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1019)	at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:5725)	at android.view.Choreographer$CallbackRecord.run(Choreographer.java:761)	at android.view.Choreographer.doCallbacks(Choreographer.java:574)	at android.view.Choreographer.doFrame(Choreographer.java:544)	at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:747)	at android.os.Handler.handleCallback(Handler.java:733)	at android.os.Handler.dispatchMessage(Handler.java:95)	at android.os.Looper.loop(Looper.java:136)	at android.app.ActivityThread.main(ActivityThread.java:5086)	at java.lang.reflect.Method.invokeNative(Native Method)	at java.lang.reflect.Method.invoke(Method.java:515)	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:785)	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:601)	at dalvik.system.NativeStart.main(Native Method)