Please try increasing the socket timeout using HTTPConstants.SO_TIMEOUT http://wso2.org/library/230#SO_TIMEOUT
~Thilina On 12/21/06, Shine, Kenneth <[EMAIL PROTECTED]> wrote:
Hi, We are making a web service calls from Tomcat 5.0.28 using Axis 1.4 to a web service in a Sun App Server. We are able to successfully invoke web services from Tomcat (that is, our web service client is in Tomcat). But when we make calls with payloads over 2.5 MB, we get socket write errors. The stack trace is shown below. I know that this is similar to known bug, http://issues.apache.org/jira/browse/AXIS-1253, but that is listed as fixed well before Axis 1.4 was released. Thanks in advance for any help with this. Ken Shine Exception while sending the webservice message org.apache.axis2.AxisFault: Software caused connection abort: socket write error; nested exception is: com.ctc.wstx.exc.WstxIOException: Software caused connection abort: socket write error; nested exception is: org.apache.axis2.AxisFault: Software caused connection abort: socket write error; nested exception is: com.ctc.wstx.exc.WstxIOException: Software caused connection abort: socket write error; nested exception is: org.apache.axis2.AxisFault: Software caused connection abort: socket write error; nested exception is: com.ctc.wstx.exc.WstxIOException: Software caused connection abort: socket write error; nested exception is: org.apache.axis2.AxisFault: Software caused connection abort: socket write error; nested exception is: com.ctc.wstx.exc.WstxIOException: Software caused connection abort: socket write error at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:227) at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:638) at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:353) at org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:284) at org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:538) at org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:472) Caused by: org.apache.axis2.AxisFault: Software caused connection abort: socket write error; nested exception is: com.ctc.wstx.exc.WstxIOException: Software caused connection abort: socket write error; nested exception is: org.apache.axis2.AxisFault: Software caused connection abort: socket write error; nested exception is: com.ctc.wstx.exc.WstxIOException: Software caused connection abort: socket write error at org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:314) at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:206) ... 11 more Caused by: org.apache.axis2.AxisFault: Software caused connection abort: socket write error; nested exception is: com.ctc.wstx.exc.WstxIOException: Software caused connection abort: socket write error at org.apache.axis2.transport.http.SOAPOverHTTPSender$AxisSOAPRequestEntity.writeRequest(SOAPOverHTTPSender.java:219) at org.apache.commons.httpclient.methods.EntityEnclosingMethod.writeRequestBody(EntityEnclosingMethod.java:495) at org.apache.commons.httpclient.HttpMethodBase.writeRequest(HttpMethodBase.java:1973) at org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:993) at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:397) at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:170) at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:396) at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:346) at org.apache.axis2.transport.http.AbstractHTTPSender.executeMethod(AbstractHTTPSender.java:660) at org.apache.axis2.transport.http.SOAPOverHTTPSender.send(SOAPOverHTTPSender.java:110) at org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:308) ... 12 more Caused by: com.ctc.wstx.exc.WstxIOException: Software caused connection abort: socket write error at com.ctc.wstx.sw.BaseStreamWriter.writeCharacters(BaseStreamWriter.java:439) at org.apache.axiom.om.impl.MTOMXMLStreamWriter.writeCharacters(MTOMXMLStreamWriter.java:195) at org.apache.axiom.om.impl.llom.OMTextImpl.writeOutput(OMTextImpl.java:220) at org.apache.axiom.om.impl.llom.OMTextImpl.internalSerializeLocal(OMTextImpl.java:409) at org.apache.axiom.om.impl.llom.OMTextImpl.internalSerializeAndConsume(OMTextImpl.java:403) at org.apache.axiom.om.impl.llom.OMElementImpl.internalSerialize(OMElementImpl.java:782) at org.apache.axiom.om.impl.llom.OMElementImpl.internalSerializeAndConsume(OMElementImpl.java:811) at org.apache.axiom.om.impl.llom.OMElementImpl.internalSerialize(OMElementImpl.java:782) at org.apache.axiom.om.impl.llom.OMElementImpl.internalSerializeAndConsume(OMElementImpl.java:811) at org.apache.axiom.om.impl.llom.OMElementImpl.internalSerialize(OMElementImpl.java:782) at org.apache.axiom.om.impl.llom.OMElementImpl.internalSerializeAndConsume(OMElementImpl.java:811) at org.apache.axiom.om.impl.llom.OMElementImpl.internalSerialize(OMElementImpl.java:782) at org.apache.axiom.om.impl.llom.OMElementImpl.internalSerializeAndConsume(OMElementImpl.java:811) at org.apache.axiom.om.impl.llom.OMElementImpl.internalSerialize(OMElementImpl.java:782) at org.apache.axiom.om.impl.llom.OMElementImpl.internalSerializeAndConsume(OMElementImpl.java:811) at org.apache.axiom.om.impl.llom.OMElementImpl.internalSerialize(OMElementImpl.java:782) at org.apache.axiom.om.impl.llom.OMElementImpl.internalSerializeAndConsume(OMElementImpl.java:811) at org.apache.axiom.om.impl.llom.OMElementImpl.internalSerialize(OMElementImpl.java:782) at org.apache.axiom.soap.impl.llom.SOAPEnvelopeImpl.internalSerialize(SOAPEnvelopeImpl.java:177) at org.apache.axiom.om.impl.llom.OMElementImpl.internalSerializeAndConsume(OMElementImpl.java:811) at org.apache.axiom.om.impl.llom.OMNodeImpl.serializeAndConsume(OMNodeImpl.java:378) at org.apache.axis2.transport.http.SOAPOverHTTPSender$AxisSOAPRequestEntity.handleOMOutput(SOAPOverHTTPSender.java:169) at org.apache.axis2.transport.http.SOAPOverHTTPSender$AxisSOAPRequestEntity.writeRequest(SOAPOverHTTPSender.java:205) ... 22 more Caused by: java.net.SocketException: Software caused connection abort: socket write error at java.net.SocketOutputStream.socketWrite0(Native Method) at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92) at java.net.SocketOutputStream.write(SocketOutputStream.java:136) at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:65) at java.io.BufferedOutputStream.write(BufferedOutputStream.java:104) at org.apache.commons.httpclient.ChunkedOutputStream.flushCacheWithAppend(ChunkedOutputStream.java:120) at org.apache.commons.httpclient.ChunkedOutputStream.write(ChunkedOutputStream.java:178) at sun.nio.cs.StreamEncoder$CharsetSE.writeBytes(StreamEncoder.java:336) at sun.nio.cs.StreamEncoder$CharsetSE.implWrite(StreamEncoder.java:395) at sun.nio.cs.StreamEncoder.write(StreamEncoder.java:136) at java.io.OutputStreamWriter.write(OutputStreamWriter.java:191) at java.io.BufferedWriter.write(BufferedWriter.java:170) at com.ctc.wstx.io.UTFTextWriter.write(UTFTextWriter.java:121) at com.ctc.wstx.sw.BaseStreamWriter.writeCharacters(BaseStreamWriter.java:437) ... 44 more --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
-- Thilina Gunarathne WSO2, Inc.; http://www.wso2.com/ Home page: http://webservices.apache.org/~thilina/ Blog: http://thilinag.blogspot.com/ --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
