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

Oracle Community | user3003486 | 4 years ago
tip
Do you find the tips below useful? Click on the to mark them and say thanks to rp and rafael . Or join the community to write better ones.
  1. 0

    Remote Debug Listener crashes

    Oracle Community | 4 years ago | user3003486
    java.lang.StringIndexOutOfBoundsException: String index out of range: -2
  2. 0

    Sql Developer hangs during Debug

    Oracle Community | 3 years ago | user12952599
    java.lang.StringIndexOutOfBoundsException: String index out of range: -2
  3. 0
    samebug tip
    You need to make sure that capitalisation of the case for the plugin in the properties file is exactly: "AllocinePlugin" and not "allocineplugin"
    via GitHub by Omertron
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0
    samebug 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
  6. 0

    String index out of range while opening php file

    GitHub | 4 years ago | dinamic
    java.lang.StringIndexOutOfBoundsException: String index out of range: -2
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.StringIndexOutOfBoundsException

    String index out of range: -2

    at java.lang.String.substring()
  2. Java RT
    String.substring
    1. java.lang.String.substring(String.java:1911)
    1 frame
  3. Java Tools
    ReferenceTypeImpl.compareTo
    1. com.sun.tools.jdi.JNITypeParser.nextTypeName(JNITypeParser.java:204)
    2. com.sun.tools.jdi.JNITypeParser.typeNameList(JNITypeParser.java:140)
    3. com.sun.tools.jdi.JNITypeParser.typeName(JNITypeParser.java:85)
    4. com.sun.tools.jdi.TypeImpl.name(TypeImpl.java:44)
    5. com.sun.tools.jdi.ReferenceTypeImpl.compareTo(ReferenceTypeImpl.java:150)
    6. com.sun.tools.jdi.ReferenceTypeImpl.compareTo(ReferenceTypeImpl.java:33)
    6 frames
  4. Java RT
    TreeSet.add
    1. java.util.TreeMap.put(TreeMap.java:560)
    2. java.util.TreeSet.add(TreeSet.java:255)
    2 frames
  5. Java Tools
    VirtualMachineImpl.allClasses
    1. com.sun.tools.jdi.VirtualMachineImpl.addReferenceType(VirtualMachineImpl.java:785)
    2. com.sun.tools.jdi.VirtualMachineImpl.referenceType(VirtualMachineImpl.java:901)
    3. com.sun.tools.jdi.VirtualMachineImpl.retrieveAllClasses1_4(VirtualMachineImpl.java:979)
    4. com.sun.tools.jdi.VirtualMachineImpl.retrieveAllClasses(VirtualMachineImpl.java:995)
    5. com.sun.tools.jdi.VirtualMachineImpl.allClasses(VirtualMachineImpl.java:284)
    5 frames
  6. oracle.jdevimpl.debugger
    DebugJDIConnectorListen.run
    1. oracle.jdevimpl.debugger.jdi.DebugJDI.<init>(DebugJDI.java:420)
    2. oracle.jdevimpl.debugger.jdi.DebugJDIConnectorListen.run(DebugJDIConnectorListen.java:133)
    2 frames
  7. Java RT
    Thread.run
    1. java.lang.Thread.run(Thread.java:724)
    1 frame