It was not possible to specify an offset when calling write() on the
Outputstream returned by HttpServletResponse. For this reason it was
impossible to run a SOAP 2.0 Server on Tomcat 4 (it uses an offset in
write() for the output).

Cause: In ResponseStream's write(byte b[], int off, int len) method, second
parameter (offset) was not used !

David Jilli
- MyComponents.com Product Division
--- ResponseStream.java Thu Mar  8 18:10:36 2001
+++ fixed/ResponseStream.java   Thu Mar  8 18:10:35 2001
@@ -265,7 +265,7 @@
        int actual = len;
        if ((length > 0) && ((count + len) >= length))
            actual = length - count;
-       ((ResponseBase) response).write(b, 0, actual);
+       ((ResponseBase) response).write(b, off, actual);
        count += actual;
        if (actual < len)
            throw new IOException(sm.getString("responseStream.write.count"));

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

Reply via email to