AJP request triggers IndexOutOfBoundsException
Issue
- We see an exception like the following on some AJP requests:
Caused by: java.lang.IndexOutOfBoundsException
at java.nio.Buffer.checkBounds(Buffer.java:535)
at java.nio.DirectByteBuffer.get(DirectByteBuffer.java:229)
at org.apache.coyote.ajp.AjpAprProcessor.readMessage(AjpAprProcessor.java:1174)
at org.apache.coyote.ajp.AjpAprProcessor.receive(AjpAprProcessor.java:1099)
at org.apache.coyote.ajp.AjpAprProcessor$SocketInputBuffer.doRead(AjpAprProcessor.java:1239)
at org.apache.coyote.Request.doRead(Request.java:428)
at org.apache.catalina.connector.InputBuffer.realReadBytes(InputBuffer.java:333)
at org.apache.tomcat.util.buf.ByteChunk.substract(ByteChunk.java:420)
at org.apache.catalina.connector.InputBuffer.read(InputBuffer.java:365)
at org.apache.catalina.connector.CoyoteInputStream.read(CoyoteInputStream.java:193)
Environment
- JBoss Enterprise Application Platform (EAP) 5.x
- Apache httpd
- mod_jk
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
