You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by bu...@apache.org on 2004/09/15 17:28:53 UTC
DO NOT REPLY [Bug 31246] New: -
JVM bug 4949631 causes BufferOverflowException in HttpMethodBase.getResponseBodyAsString
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=31246>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=31246
JVM bug 4949631 causes BufferOverflowException in HttpMethodBase.getResponseBodyAsString
Summary: JVM bug 4949631 causes BufferOverflowException in
HttpMethodBase.getResponseBodyAsString
Product: Commons
Version: 2.0 Milestone 1
Platform: All
OS/Version: All
Status: NEW
Severity: Critical
Priority: Other
Component: HttpClient
AssignedTo: commons-httpclient-dev@jakarta.apache.org
ReportedBy: afrancis@thoughtworks.com
ava.nio.BufferOverflowException
at java.nio.charset.CoderResult.throwException(CoderResult.java:259)
at java.lang.StringCoding$CharsetSD.decode(StringCoding.java:188)
at java.lang.StringCoding.decode(StringCoding.java:224)
at java.lang.String.<init>(String.java:320)
at
org.apache.commons.httpclient.HttpConstants.getContentString(HttpConstants.java:199)
at
org.apache.commons.httpclient.HttpConstants.getContentString(HttpConstants.java:233)
at
org.apache.commons.httpclient.HttpMethodBase.getResponseBodyAsString(HttpMethodBase.java:735)
This seems to be caused by a known JVM bug:
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4949631
Strings over 16Mb can cause the problem. Some workarounds are listed, the
essence being to split the string and call getBytes on each piece and reassemble
with a ByteBuffer.
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-httpclient-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-httpclient-dev-help@jakarta.apache.org