Hi using tomcat 9.0.87, occasionally I got the following exception:

java.lang.IndexOutOfBoundsException
  at java.base/java.nio.ByteBuffer.wrap(ByteBuffer.java:438
  at org.apache.tomcat.util.buf.ByteChunk.toStringInternal(ByteChunk.java:622)
  at org.apache.tomcat.util.buf.StringCache.toString(StringCache.java:323)
  at org.apache.tomcat.util.buf.ByteChunk.toString(ByteChunk.java:580)
  at org.apache.tomcat.util.buf.ByteChunk.toString(ByteChunk.java:565)
  at org.apache.tomcat.util.buf.MessageBytes.toString(MessageBytes.java:173)
  at org.apache.tomcat.util.http.MimeHeaders.getHeader(MimeHeaders.java:355)
  at org.apache.coyote.Request.getHeader(Request.java:468)

when invoking the getHeader method. For lacking of the context, I cannot get 
the concrete header now and it seems quite hard to reproduce.

 I'm wondering if anyone has encountered the same issue before? is the 
MessageBytes malformed? I got a kind of related issue 
https://github.com/apache/tomcat/pull/551but not sure if it's relavent since 
it's involved in version 9.0.66.

Thanks for any help in advance!

Reply via email to