Pattern selector

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

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

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:1967)
    at org.ops4j.pax.web.service.spi.model.ServerModel.matchPathToContext(ServerModel.java:335)
    at org.ops4j.pax.web.service.spi.model.ServerModel.matchPathToContext(ServerModel.java:290)
    at org.ops4j.pax.web.service.jetty.internal.JettyServerHandlerCollection.handle(JettyServerHandlerCollection.java:60)
13 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. smolavia GitHub1 day ago
    exception writing response
    Show stack trace
  2. johnvblazicvia GitHub1 day ago
    String index out of range: -1
    Show stack trace
  3. morungosvia GitHub1 day ago
    String index out of range: -1
    Show stack trace
  4. colin-combevia GitHub2 days ago
    Impossible to read next interaction.
    Show stack trace
  5. mikehardyvia GitHub2 days ago
    length=31; index=159
    Show stack trace
  6. CheyenneForbesvia GitHub2 days ago
    No message found for this stack trace.
    Show stack trace
  7. mitchej123via GitHub4 days ago
    String index out of range: -1
    Show stack trace