Pattern selector

Most relevant patterns first. Most helpful ones displayed. Click here to show all.

  1. Thread.run() has thrown a StringIndexOutOfBoundsException
    Java Runtime
    0
    0
    0
  2. Start or end index provided to substring method outside the range of String indices
    Java Runtime
    302
    793
    195

Your stack trace compared to the selected pattern

Jump to solutionsExpand frames
java.lang.StringIndexOutOfBoundsException: String index out of range: 6
    at java.lang.String.substring(String.java:1944)
    at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
26 frames hidden

Solution

rp3 years ago

Ensure that the start and end indices for the substring are within range of the String's start and end indices

External results for this pattern (10)

  1. chrisichrisvia Google Groups1 week ago
    String index out of range: -1
    Show stack trace
  2. Angel Veravia Google Groups1 week ago
    String index out of range: -1
    Show stack trace
  3. Unknown authorvia Google Groups1 week ago
    String index out of range: -27
    Show stack trace
  4. Dan Armbrustvia Google Groups1 week ago
    Failed to execute goal external.atlassian.jgitflow:jgitflow-maven-plugin:1.0-m5.1:release-start (default-cli) on project isaac-parent: Execution default-cli of goal external.atlassian.jgitflow:jgitflow-maven-plugin:1.0-m5.1:release-start failed: String index out of range: -6
    Show stack trace
  5. Jonathan Doklovicvia Google Groups1 week ago
    Failed to execute goal external.atlassian.jgitflow:jgitflow-maven-plugin:1.0-m5:release-start (default-cli) on project baserepo: Execution default-cli of goal external.atlassian.jgitflow:jgitflow-maven-plugin:1.0-m5:release-start failed: String index out of range: -6
    Show stack trace
  6. sebarmelivia Google Groups1 week ago
    String index out of range: 1
    Show stack trace
  7. Sekani Tembovia Google Groups1 week ago
    String index out of range: -2
    Show stack trace
  8. (sourceforge)via JIRA1 week ago
    String index out of range: -1
    Show stack trace
  9. MichaelPribvia GitHub2 weeks ago
    String index out of range: -1
    Show stack trace
  10. Ivan-Veselovvia GitHub3 weeks ago
    java.lang.StringIndexOutOfBoundsException: String index out of range: -9
    Show stack trace