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

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

    Sql Developer hangs during Debug

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

    Remote Debug Listener crashes

    Oracle Community | 3 years ago | user3003486
    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

    `String.substring(start, end)` behaves different on scala and scalajs

    GitHub | 2 years ago | freewind
    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:1937)
    1 frame
  3. Java Tools
    ReferenceTypeImpl.compareTo
    1. com.sun.tools.jdi.JNITypeParser.nextTypeName(JNITypeParser.java:186)
    2. com.sun.tools.jdi.JNITypeParser.typeNameList(JNITypeParser.java:122)
    3. com.sun.tools.jdi.JNITypeParser.typeName(JNITypeParser.java:67)
    4. com.sun.tools.jdi.TypeImpl.name(TypeImpl.java:26)
    5. com.sun.tools.jdi.ReferenceTypeImpl.compareTo(ReferenceTypeImpl.java:132)
    6. com.sun.tools.jdi.ReferenceTypeImpl.compareTo(ReferenceTypeImpl.java:15)
    6 frames
  4. Java RT
    TreeSet.add
    1. java.util.TreeMap.put(TreeMap.java:545)
    2. java.util.TreeSet.add(TreeSet.java:238)
    2 frames
  5. Java Tools
    VirtualMachineImpl.allClasses
    1. com.sun.tools.jdi.VirtualMachineImpl.addReferenceType(VirtualMachineImpl.java:764)
    2. com.sun.tools.jdi.VirtualMachineImpl.referenceType(VirtualMachineImpl.java:880)
    3. com.sun.tools.jdi.VirtualMachineImpl.retrieveAllClasses1_4(VirtualMachineImpl.java:958)
    4. com.sun.tools.jdi.VirtualMachineImpl.retrieveAllClasses(VirtualMachineImpl.java:974)
    5. com.sun.tools.jdi.VirtualMachineImpl.allClasses(VirtualMachineImpl.java:265)
    5 frames
  6. oracle.jdevimpl.debugger
    DebugJDIConnectorListen.run
    1. oracle.jdevimpl.debugger.jdi.DebugJDI.<init>(DebugJDI.java:363)
    2. oracle.jdevimpl.debugger.jdi.DebugJDIConnectorListen.run(DebugJDIConnectorListen.java:129)
    2 frames
  7. Java RT
    Thread.run
    1. java.lang.Thread.run(Thread.java:619)
    1 frame