Pattern selector

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

  1. Start or end index provided to substring method outside the range of String indices
    Java Runtime
    302
    803
    196

Your stack trace compared to the selected pattern

Jump to solutionsExpand frames
java.lang.StringIndexOutOfBoundsException: String index out of range: -1
    at java.lang.String.substring(String.java:1954)
    at org.springframework.xd.dirt.module.ArchiveModuleRegistry.fromResource(ArchiveModuleRegistry.java:140)
    at org.springframework.xd.dirt.module.ArchiveModuleRegistry.findDefinition(ArchiveModuleRegistry.java:68)
    at org.springframework.xd.dirt.module.DelegatingModuleRegistry.findDefinition(DelegatingModuleRegistry.java:48)
64 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. Atul Dongrevia Google Groups6 days ago
    String index out of range: -1
    Show stack trace
  2. Unknown authorvia Google Groups1 week ago
    String index out of range: -1
    Show stack trace
  3. 843789via Oracle Community1 month ago
    String index out of range: 45
    Show stack trace
  4. nicolatimeusvia GitHub1 month ago
    String index out of range: -10
    Show stack trace
  5. CreeperHangvia GitHub1 month ago
    String index out of range: -1
    Show stack trace
  6. lightlikevia GitHub1 month ago
    String index out of range: -1
    Show stack trace
  7. bin4rym4gevia GitHub1 month ago
    String index out of range: 2
    Show stack trace
  8. zachbrvia GitHub1 month ago
    String index out of range: -279
    Show stack trace
  9. Patryk003via GitHub1 month ago
    String index out of range: -1
    Show stack trace
  10. musketyrvia GitHub1 month ago
    String index out of range: 5
    Show stack trace