java.lang.IllegalArgumentException: Capacity: -2147483647

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 Stack Overflow by Leggit
, 9 months ago
via Appcelerator JIRA by Shalom Gibly, 1 year ago
Illegal initial capacity: -1
via Appcelerator JIRA by Shalom Gibly, 1 year ago
Illegal initial capacity: -1
via Terracotta Project Issue Tracker by Jeffrey Samarziya, 1 year ago
Illegal initial capacity: -128
java.lang.IllegalArgumentException: Capacity: -2147483647
at java.util.HashMap.(HashMap.java:140)
at java.util.HashMap.(HashMap.java:174)
at java.util.LinkedHashMap.(LinkedHashMap.java:119)
at java.util.LinkedHashMap.(LinkedHashMap.java:97)
at java.util.LinkedHashMap.(LinkedHashMap.java:81)
at com.jjoe64.graphview.GridLabelRenderer.adjustVertical(GridLabelRenderer.java:768)
at com.jjoe64.graphview.GridLabelRenderer.adjustSteps(GridLabelRenderer.java:932)
at com.jjoe64.graphview.GridLabelRenderer.draw(GridLabelRenderer.java:1067)
at com.jjoe64.graphview.GraphView.drawGraphElements(GraphView.java:299)
at com.jjoe64.graphview.GridLabelRenderer.draw(GridLabelRenderer.java:1062)
at com.jjoe64.graphview.GraphView.drawGraphElements(GraphView.java:299)
at com.jjoe64.graphview.GraphView.onDraw(GraphView.java:323)
at android.view.View.draw(View.java:16302)
at android.view.View.updateDisplayListIfDirty(View.java:15284)
at android.view.View.draw(View.java:16072)
at android.view.ViewGroup.drawChild(ViewGroup.java:3622)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3409)
at android.view.View.draw(View.java:16305)
at android.view.View.updateDisplayListIfDirty(View.java:15284)
at android.view.View.draw(View.java:16072)
at android.view.ViewGroup.drawChild(ViewGroup.java:3622)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3409)
at android.view.View.updateDisplayListIfDirty(View.java:15279)
at android.view.View.draw(View.java:16072)
at android.view.ViewGroup.drawChild(ViewGroup.java:3622)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3409)
at android.view.View.updateDisplayListIfDirty(View.java:15279)
at android.view.View.draw(View.java:16072)
at android.view.ViewGroup.drawChild(ViewGroup.java:3622)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3409)
at android.view.View.draw(View.java:16305)
at android.view.View.updateDisplayListIfDirty(View.java:15284)
at android.view.ThreadedRenderer.updateViewTreeDisplayList(ThreadedRenderer.java:295)
at android.view.ThreadedRenderer.updateRootDisplayList(ThreadedRenderer.java:301)
at android.view.ThreadedRenderer.draw(ThreadedRenderer.java:345)
at android.view.ViewRootImpl.draw(ViewRootImpl.java:2686)
at android.view.ViewRootImpl.performDraw(ViewRootImpl.java:2495)
at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:2120)
at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1138)
at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:6227)
at android.view.Choreographer$CallbackRecord.run(Choreographer.java:884)
at android.view.Choreographer.doCallbacks(Choreographer.java:696)
at android.view.Choreographer.doFrame(Choreographer.java:631)
at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:870)
at android.os.Handler.handleCallback(Handler.java:743)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:150)
at android.app.ActivityThread.main(ActivityThread.java:5546)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:794)

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.

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