DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=23805>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=23805

Possible error in response wrapper implementation

[EMAIL PROTECTED] changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID



------- Additional Comments From [EMAIL PROTECTED]  2003-10-15 13:56 -------
The exception says: "String index out of range: 8192"
According to String.java, this is because the end index is larger than the
string length. So the String you make from the bytes is shorter than 8192 chars.

Your messing up bytes and chars here. Your outputstream converts the bytes to
chars (e.g. does new String(bytes)) and assumes that the indices are still correct.

I suspect that you
* use UTF-8 encoding, where you typically have more bytes than chars
* new String(bytes).length < 8192
* you call writer.write(string, 8192, 0) and bang.

In ISO-encoding, calling your stream with write(new byte[8192], 8192, 0) works
perfectly fine.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to