https://issues.apache.org/bugzilla/show_bug.cgi?id=51142
Bug #: 51142
Summary: Offer possible resolution of
StringIndexOutOfBoundsException in
Request.updateCounters when AJP packetSize is too
small.
Product: Tomcat 6
Version: 6.0.28
Platform: Macintosh
Status: NEW
Severity: enhancement
Priority: P2
Component: Connectors
AssignedTo: [email protected]
ReportedBy: [email protected]
Classification: Unclassified
I submitted a patch on the review board
https://reviews.apache.org/r/595/diff/#index_header to improve the error
message If the AJP packetSize is not large enough. As is:
org.apache.coyote.ajp.AjpAprProtocol$AjpConnectionHandler process
SEVERE: Error reading request, ignored
java.lang.StringIndexOutOfBoundsException: String index out of range: 13628
at java.lang.String.checkBounds(String.java:401)
at java.lang.String.<init>(String.java:442)
at
org.apache.tomcat.util.buf.ByteChunk.toStringInternal(ByteChunk.java:497)
at
org.apache.tomcat.util.buf.StringCache.toString(StringCache.java:216)
at org.apache.tomcat.util.buf.ByteChunk.toString(ByteChunk.java:490)
at
org.apache.tomcat.util.buf.MessageBytes.toString(MessageBytes.java:213)
at org.apache.coyote.RequestInfo.updateCounters(RequestInfo.java:156)
at org.apache.coyote.Request.updateCounters(Request.java:518)
at
org.apache.coyote.ajp.AjpAprProcessor.process(AjpAprProcessor.java:455)
at
org.apache.coyote.ajp.AjpAprProtocol$AjpConnectionHandler.process(AjpAprProtocol.java:384)
at
org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1665)
at java.lang.Thread.run(Thread.java:662)
[Fri Apr 08 17:23:44 2011] [error] ajp_read_header: ajp_ilink_receive failed
[Fri Apr 08 17:23:44 2011] [error] (120006)APR does not understand
this error code: proxy: read response failed from 127.0.0.1:8003
(127.0.0.1)
[Fri Apr 08 17:23:44 2011] [error] (104)Connection reset by peer:
ajp_ilink_receive() can't receive header
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]