You are viewing a plain text version of this content. The canonical link for it is here.
Posted to soap-user@ws.apache.org by Mike Spreitzer <ms...@us.ibm.com> on 2001/01/16 16:41:21 UTC

My mysterious connection reset problem has already been solved

As Wouter suspected, my mysterious connection resets were being provoked 
by a bug that was recently fixed.  The bug was that the client would send 
an extra linebreak or two after the call message.  I've tried the nightly 
build dated Jan 13, and the bug is fixed there.

Cheers,
Mike

RE: My mysterious connection reset problem has already been solved

Posted by Christoffer Soop <ch...@knowit.se>.
> As Wouter suspected, my mysterious connection resets were
> being provoked
> by a bug that was recently fixed.  The bug was that the
> client would send
> an extra linebreak or two after the call message.  I've tried
> the nightly
> build dated Jan 13, and the bug is fixed there.

Well, not quite - at least not for me.  I am running SOAP in an Orion
Application Server.  Before the patch everything worked fine under Windows
but I got the connection reset bug under Linux.  When trying the nightly
build of January 19, SOAP communication between client and server seems to
work fine.  However, in the logs of the Orion server an exception claiming
that the SOAPRpcServlet tries to write a longer stream than the content
length specifies can be found for each SOAP request. ( For some reason Orion
does not propagate the Exception all the way back to SOAP. )  This exception
can be found on both the Windows and Linux machines, but it looks like the
buffer overflow is two bytes shorter on Linux than it is on Windows ( I am
not absolutely certain that my interpretation of the Orion exception is
correct, but it seems reasonable ).

Could it be that the length of the line separtor (
StringUtils.lineSeparator ) should be added to the content length?  Or will
this cause a "connection reset by peer"?

Sincerely,

	Christoffer Soop

( BTW - Why is there a StringUtils.lineSeparatorStr?  Should it be used to
terminate the http-request instead of StringUtils.lineSepartor? )

Windows exception:
java.lang.IllegalArgumentException: Attempted to write longer than
Content-Length (420 + 4 / 420)
        at com.evermind.server.http.ez.write(JAX)
        at
java.io.OutputStreamWriter.flushBuffer(OutputStreamWriter.java:230)
        at java.io.OutputStreamWriter.flush(OutputStreamWriter.java:244)
        at java.io.PrintWriter.flush(PrintWriter.java:120)
        at
org.apache.soap.server.http.RPCRouterServlet.doPost(RPCRouterServlet.java:33
3)
	  [...]

Linux exception:
java.lang.IllegalArgumentException: Attempted to write longer than
Content-Length (417 + 2 / 417)
        at com.evermind.server.http.ez.write(JAX)
        at
java.io.OutputStreamWriter.flushBuffer(OutputStreamWriter.java:230)
        at java.io.OutputStreamWriter.flush(OutputStreamWriter.java:244)
        at java.io.PrintWriter.flush(PrintWriter.java:120)
        at
org.apache.soap.server.http.RPCRouterServlet.doPost(RPCRouterServlet.java:33
3)
	  [...]


RE: My mysterious connection reset problem has already been solved

Posted by Christoffer Soop <ch...@knowit.se>.
> As Wouter suspected, my mysterious connection resets were
> being provoked
> by a bug that was recently fixed.  The bug was that the
> client would send
> an extra linebreak or two after the call message.  I've tried
> the nightly
> build dated Jan 13, and the bug is fixed there.

Well, not quite - at least not for me.  I am running SOAP in an Orion
Application Server.  Before the patch everything worked fine under Windows
but I got the connection reset bug under Linux.  When trying the nightly
build of January 19, SOAP communication between client and server seems to
work fine.  However, in the logs of the Orion server an exception claiming
that the SOAPRpcServlet tries to write a longer stream than the content
length specifies can be found for each SOAP request. ( For some reason Orion
does not propagate the Exception all the way back to SOAP. )  This exception
can be found on both the Windows and Linux machines, but it looks like the
buffer overflow is two bytes shorter on Linux than it is on Windows ( I am
not absolutely certain that my interpretation of the Orion exception is
correct, but it seems reasonable ).

Could it be that the length of the line separtor (
StringUtils.lineSeparator ) should be added to the content length?  Or will
this cause a "connection reset by peer"?

Sincerely,

	Christoffer Soop

( BTW - Why is there a StringUtils.lineSeparatorStr?  Should it be used to
terminate the http-request instead of StringUtils.lineSepartor? )

Windows exception:
java.lang.IllegalArgumentException: Attempted to write longer than
Content-Length (420 + 4 / 420)
        at com.evermind.server.http.ez.write(JAX)
        at
java.io.OutputStreamWriter.flushBuffer(OutputStreamWriter.java:230)
        at java.io.OutputStreamWriter.flush(OutputStreamWriter.java:244)
        at java.io.PrintWriter.flush(PrintWriter.java:120)
        at
org.apache.soap.server.http.RPCRouterServlet.doPost(RPCRouterServlet.java:33
3)
	  [...]

Linux exception:
java.lang.IllegalArgumentException: Attempted to write longer than
Content-Length (417 + 2 / 417)
        at com.evermind.server.http.ez.write(JAX)
        at
java.io.OutputStreamWriter.flushBuffer(OutputStreamWriter.java:230)
        at java.io.OutputStreamWriter.flush(OutputStreamWriter.java:244)
        at java.io.PrintWriter.flush(PrintWriter.java:120)
        at
org.apache.soap.server.http.RPCRouterServlet.doPost(RPCRouterServlet.java:33
3)
	  [...]