java.lang.StringIndexOutOfBoundsException

String index out of range: -2

Samebug tips2

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


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

Don't give up yet. Our experts can help. Paste your full stack trace to get a solution.

Solutions on the web4510

  • via GitHub by iBotPeaches
    , 1 year ago
    String index out of range: 2
  • String index out of range: 2
  • via GitHub by Creeperface01
    , 10 months ago
    String index out of range: 2
  • Stack trace

    • java.lang.StringIndexOutOfBoundsException: String index out of range: -2 at java.lang.String.substring(String.java:1937) at com.sun.tools.jdi.JNITypeParser.nextTypeName(JNITypeParser.java:186) at com.sun.tools.jdi.JNITypeParser.typeNameList(JNITypeParser.java:122) at com.sun.tools.jdi.JNITypeParser.typeName(JNITypeParser.java:67) at com.sun.tools.jdi.TypeImpl.name(TypeImpl.java:26) at com.sun.tools.jdi.ReferenceTypeImpl.compareTo(ReferenceTypeImpl.java:132) at com.sun.tools.jdi.ReferenceTypeImpl.compareTo(ReferenceTypeImpl.java:15) at java.util.TreeMap.put(TreeMap.java:545) at java.util.TreeSet.add(TreeSet.java:238) at com.sun.tools.jdi.VirtualMachineImpl.addReferenceType(VirtualMachineImpl.java:764) at com.sun.tools.jdi.VirtualMachineImpl.referenceType(VirtualMachineImpl.java:880) at com.sun.tools.jdi.VirtualMachineImpl.retrieveAllClasses1_4(VirtualMachineImpl.java:958) at com.sun.tools.jdi.VirtualMachineImpl.retrieveAllClasses(VirtualMachineImpl.java:974) at com.sun.tools.jdi.VirtualMachineImpl.allClasses(VirtualMachineImpl.java:265) at oracle.jdevimpl.debugger.jdi.DebugJDI.<init>(DebugJDI.java:363) at oracle.jdevimpl.debugger.jdi.DebugJDIConnectorListen.run(DebugJDIConnectorListen.java:129) at java.lang.Thread.run(Thread.java:619)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    8 times, 1 month ago
    4 times, 10 months ago
    Unknown user
    Once, 10 months ago
    Unknown user
    Once, 1 year ago
    Unknown user
    Once, 1 year ago
    94 more bugmates