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

Solutions on the web

via GitHub by negue
, 1 year ago
length=509; index=-1
via GitHub by bxxasn
, 1 year ago
length=61; index=-1
java.lang.ArrayIndexOutOfBoundsException: length=509; index=-1	at android.text.StaticLayout.calculateEllipsis(StaticLayout.java:804)	at android.text.StaticLayout.out(StaticLayout.java:723)	at android.text.StaticLayout.generate(StaticLayout.java:417)	at android.text.StaticLayout.(StaticLayout.java:145)	at android.widget.TextView.makeSingleLayout(TextView.java:6399)	at android.widget.TextView.makeNewLayout(TextView.java:6252)	at android.widget.TextView.onMeasure(TextView.java:6636)	at android.view.View.measure(View.java:16498)	at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5140)	at android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1406)	at android.widget.LinearLayout.measureHorizontal(LinearLayout.java:1054)	at android.widget.LinearLayout.onMeasure(LinearLayout.java:592)	at android.view.View.measure(View.java:16498)	at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5140)	at android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1406)	at android.widget.LinearLayout.measureHorizontal(LinearLayout.java:1054)	at android.widget.LinearLayout.onMeasure(LinearLayout.java:592)	at android.view.View.measure(View.java:16498)	at android.widget.LinearLayout.measureHorizontal(LinearLayout.java:1233)	at android.widget.LinearLayout.onMeasure(LinearLayout.java:592)	at android.view.View.measure(View.java:16498)	at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5140)	at android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1406)	at android.widget.LinearLayout.measureVertical(LinearLayout.java:697)	at android.widget.LinearLayout.onMeasure(LinearLayout.java:590)	at android.view.View.measure(View.java:16498)	at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5140)	at android.widget.FrameLayout.onMeasure(FrameLayout.java:310)	at android.support.v7.widget.CardView.onMeasure(CardView.java:196)	at android.view.View.measure(View.java:16498)	at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5140)	at android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1406)	at android.widget.LinearLayout.measureVertical(LinearLayout.java:697)	at android.widget.LinearLayout.onMeasure(LinearLayout.java:590)	at android.view.View.measure(View.java:16498)	at android.support.v7.widget.RecyclerView$LayoutManager.measureChildWithMargins(RecyclerView.java:6874)	at android.support.v7.widget.LinearLayoutManager.layoutChunk(LinearLayoutManager.java:1396)	at android.support.v7.widget.LinearLayoutManager.fill(LinearLayoutManager.java:1333)	at android.support.v7.widget.LinearLayoutManager.scrollBy(LinearLayoutManager.java:1161)	at android.support.v7.widget.LinearLayoutManager.scrollVerticallyBy(LinearLayoutManager.java:1018)	at android.support.v7.widget.RecyclerView.scrollByInternal(RecyclerView.java:1492)	at android.support.v7.widget.RecyclerView.onTouchEvent(RecyclerView.java:2416)	at android.view.View.dispatchTouchEvent(View.java:7697)	at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2224)	at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:1959)	at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2230)	at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:1973)	at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2230)	at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:1973)	at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2230)	at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:1973)	at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2230)	at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:1973)	at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2230)	at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:1973)	at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2230)	at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:1973)	at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2230)	at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:1973)	at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2230)	at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:1973)	at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2230)	at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:1973)	at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2230)	at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:1973)	at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2230)	at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:1973)	at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2230)	at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:1973)	at com.android.internal.policy.impl.PhoneWindow$DecorView.superDispatchTouchEvent(PhoneWindow.java:2132)	at com.android.internal.policy.impl.PhoneWindow.superDispatchTouchEvent(PhoneWindow.java:1579)	at android.app.Activity.dispatchTouchEvent(Activity.java:2501)	at android.support.v7.view.WindowCallbackWrapper.dispatchTouchEvent(WindowCallbackWrapper.java:60)	at android.support.v7.view.WindowCallbackWrapper.dispatchTouchEvent(WindowCallbackWrapper.java:60)	at com.android.internal.policy.impl.PhoneWindow$DecorView.dispatchTouchEvent(PhoneWindow.java:2080)	at android.view.View.dispatchPointerEvent(View.java:7877)	at android.view.ViewRootImpl$ViewPostImeInputStage.processPointerEvent(ViewRootImpl.java:4089)	at android.view.ViewRootImpl$ViewPostImeInputStage.onProcess(ViewRootImpl.java:3978)	at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:3456)	at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:3506)	at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:3475)	at android.view.ViewRootImpl$AsyncInputStage.forward(ViewRootImpl.java:3560)	at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:3483)	at android.view.ViewRootImpl$AsyncInputStage.apply(ViewRootImpl.java:3617)	at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:3456)	at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:3506)	at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:3475)	at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:3483)	at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:3456)	at android.view.ViewRootImpl.deliverInputEvent(ViewRootImpl.java:5737)	at android.view.ViewRootImpl.doProcessInputEvents(ViewRootImpl.java:5717)	at android.view.ViewRootImpl.enqueueInputEvent(ViewRootImpl.java:5688)	at android.view.ViewRootImpl$WindowInputEventReceiver.onInputEvent(ViewRootImpl.java:5839)	at android.view.InputEventReceiver.dispatchInputEvent(InputEventReceiver.java:182)	at android.view.InputEventReceiver.nativeConsumeBatchedInputEvents(InputEventReceiver.java)	at android.view.InputEventReceiver.consumeBatchedInputEvents(InputEventReceiver.java:174)	at android.view.ViewRootImpl.doConsumeBatchedInput(ViewRootImpl.java:5799)	at android.view.ViewRootImpl$ConsumeBatchedInputRunnable.run(ViewRootImpl.java:5858)	at android.view.Choreographer$CallbackRecord.run(Choreographer.java:749)	at android.view.Choreographer.doCallbacks(Choreographer.java:562)	at android.view.Choreographer.doFrame(Choreographer.java:530)	at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:735)	at android.os.Handler.handleCallback(Handler.java:733)	at android.os.Handler.dispatchMessage(Handler.java:95)	at android.os.Looper.loop(Looper.java:137)	at android.app.ActivityThread.main(ActivityThread.java:5082)	at java.lang.reflect.Method.invokeNative(Method.java)	at java.lang.reflect.Method.invoke(Method.java:515)	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:782)	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:598)	at dalvik.system.NativeStart.main(NativeStart.java)