java.lang.StringIndexOutOfBoundsException: String index out of range: -2

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

,
via GitHub by Omertron

You need to make sure that capitalisation of the case for the plugin in the properties file is exactly: "AllocinePlugin" and not "allocineplugin"

,
Expert tip

This is a bug when using Micromax devices with VideoView. You can either exclude these devices or look at this workaround: http://stackoverflow.com/a/31942841/4347859

Solutions on the web

via Oracle Community by user3003486, 1 year ago
String index out of range: -2
via Oracle Community by user12952599, 1 year ago
String index out of range: -2
via Coderanch by Debdeep Ganguly, 1 year ago
via Eclipse Bugzilla by steffen.pingel, 1 year ago
via GitHub by Lineflyer
, 2 years ago
String index out of range: -102
java.lang.StringIndexOutOfBoundsException: String index out of range: -2
at java.lang.String.substring(String.java:1911)
at com.sun.tools.jdi.JNITypeParser.nextTypeName(JNITypeParser.java:204)
at com.sun.tools.jdi.JNITypeParser.typeNameList(JNITypeParser.java:140)
at com.sun.tools.jdi.JNITypeParser.typeName(JNITypeParser.java:85)
at com.sun.tools.jdi.TypeImpl.name(TypeImpl.java:44)
at com.sun.tools.jdi.ReferenceTypeImpl.compareTo(ReferenceTypeImpl.java:150)
at com.sun.tools.jdi.ReferenceTypeImpl.compareTo(ReferenceTypeImpl.java:33)
at java.util.TreeMap.put(TreeMap.java:560)
at java.util.TreeSet.add(TreeSet.java:255)
at com.sun.tools.jdi.VirtualMachineImpl.addReferenceType(VirtualMachineImpl.java:785)
at com.sun.tools.jdi.VirtualMachineImpl.referenceType(VirtualMachineImpl.java:901)
at com.sun.tools.jdi.VirtualMachineImpl.retrieveAllClasses1_4(VirtualMachineImpl.java:979)
at com.sun.tools.jdi.VirtualMachineImpl.retrieveAllClasses(VirtualMachineImpl.java:995)
at com.sun.tools.jdi.VirtualMachineImpl.allClasses(VirtualMachineImpl.java:284)
at oracle.jdevimpl.debugger.jdi.DebugJDI.(DebugJDI.java:420)
at oracle.jdevimpl.debugger.jdi.DebugJDIConnectorListen.run(DebugJDIConnectorListen.java:133)
at java.lang.Thread.run(Thread.java:724)

Users with the same issue

8 times, 5 months ago
Samebug visitor profile picture
Unknown user
Once, 2 years ago
4 times, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 2 years ago
105 more bugmates

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