Pattern selector

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

  1. StompDecoder.decodeMessage() has thrown a StringIndexOutOfBoundsException
    Spring Messaging
    0
    0
    0
  2. The index provided to String's charAt() method is either greater or equal to the size of the String or less than 0
    Java Runtime
    320
    287
    90

Your stack trace compared to the selected pattern

Jump to solutionsExpand frames
java.lang.StringIndexOutOfBoundsException: String index out of range: 40
    at java.lang.String.charAt(String.java:658)
    at org.springframework.messaging.simp.stomp.StompDecoder.unescape(StompDecoder.java:221)
    at org.springframework.messaging.simp.stomp.StompDecoder.readHeaders(StompDecoder.java:197)
    at org.springframework.messaging.simp.stomp.StompDecoder.decodeMessage(StompDecoder.java:123)

Solution

rafael1 year ago

Thrown byu00A0Stringu00A0methods to indicate that an index is either negative or greater than the size of the string. For some methods such as the charAt method, this exception also is thrown when the index is equal to the size of the string.

External results for this pattern (10)

  1. chapmanbvia GitHub5 days ago
    String index out of range: 151
    Show stack trace
  2. RogueExceptionvia GitHub5 days ago
    String index out of range: 1
    Show stack trace
  3. abysKrivia GitHub6 days ago
    String index out of range: 0
    Show stack trace
  4. Shamim1977via GitHub1 week ago
    String index out of range: 0
    Show stack trace
  5. Nguyen Kim Sonvia Google Groups2 weeks ago
    String index out of range: 1
    Show stack trace
  6. glassfishrobotvia GitHub2 weeks ago
    String index out of range: 0
    Show stack trace