HTTP Status 500 – Internal Server Error


Type Exception Report

Message Requested read of bytes at position [6] which is beyond the end of the AJP message

Description The server encountered an unexpected condition that prevented it from fulfilling the request.

Exception

java.lang.ArrayIndexOutOfBoundsException: Requested read of bytes at position [6] which is beyond the end of the AJP message
	org.apache.coyote.ajp.AjpMessage.validatePos(AjpMessage.java:389)
	org.apache.coyote.ajp.AjpMessage.getByte(AjpMessage.java:295)
	org.apache.coyote.ajp.AjpProcessor.prepareRequest(AjpProcessor.java:748)
	org.apache.coyote.ajp.AjpProcessor.service(AjpProcessor.java:505)
	org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65)
	org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:831)
	org.apache.tomcat.util.net.Nio2Endpoint$SocketProcessor.doRun(Nio2Endpoint.java:1615)
	org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
	org.apache.tomcat.util.net.AbstractEndpoint.processSocket(AbstractEndpoint.java:1107)
	org.apache.tomcat.util.net.Nio2Endpoint$Nio2SocketWrapper$2.completed(Nio2Endpoint.java:564)
	org.apache.tomcat.util.net.Nio2Endpoint$Nio2SocketWrapper$2.completed(Nio2Endpoint.java:542)
	sun.nio.ch.Invoker.invokeUnchecked(Invoker.java:126)
	sun.nio.ch.Invoker$2.run(Invoker.java:218)
	sun.nio.ch.AsynchronousChannelGroupImpl$1.run(AsynchronousChannelGroupImpl.java:112)
	java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
	java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
	org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
	java.lang.Thread.run(Thread.java:748)

Note The full stack trace of the root cause is available in the server logs.


Apache Tomcat/8.5.63