  | | | AxisFault, socket write error, for large payloads | AxisFault, socket write error, for large payloads 2006-12-21 - By thilina Gunarathne
Back Please try increasing the socket timeout using HTTPConstants.SO_TIMEOUT http://wso2.org/library/230#SO_TIMEOUT
~Thilina
On 12/21/06, Shine, Kenneth <kshine@(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 (See http://XIS-1253.ora-code.com), 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  (CommonsHTTPTransportSender.java:227) > at org.apache.axis2.engine.AxisEngine (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 (ServiceClient.java:538) > at org.apache.axis2.client.ServiceClient (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  (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 (HttpMethodBase .java:1973) > at org.apache.commons.httpclient.HttpMethodBase (HttpMethodBase.java :993) > at org.apache.commons.httpclient.HttpMethodDirector  (HttpMethodDirector.java:397) > at org.apache.commons.httpclient.HttpMethodDirector  (HttpMethodDirector.java:170) > at org.apache.commons.httpclient.HttpClient (HttpClient.java :396) > at org.apache.commons.httpclient.HttpClient (HttpClient.java :346) > at org.apache.axis2.transport.http.AbstractHTTPSender  (AbstractHTTPSender.java:660) > at org.apache.axis2.transport.http.SOAPOverHTTPSender  (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  (MTOMXMLStreamWriter.java:195) > at org.apache.axiom.om.impl.llom.OMTextImpl (OMTextImpl.java:220) > at org.apache.axiom.om.impl.llom.OMTextImpl  (OMTextImpl.java:409) > at org.apache.axiom.om.impl.llom.OMTextImpl  (OMTextImpl.java:403) > at org.apache.axiom.om.impl.llom.OMElementImpl  (OMElementImpl.java:782) > at org.apache.axiom.om.impl.llom.OMElementImpl  (OMElementImpl.java:811) > at org.apache.axiom.om.impl.llom.OMElementImpl  (OMElementImpl.java:782) > at org.apache.axiom.om.impl.llom.OMElementImpl  (OMElementImpl.java:811) > at org.apache.axiom.om.impl.llom.OMElementImpl  (OMElementImpl.java:782) > at org.apache.axiom.om.impl.llom.OMElementImpl  (OMElementImpl.java:811) > at org.apache.axiom.om.impl.llom.OMElementImpl  (OMElementImpl.java:782) > at org.apache.axiom.om.impl.llom.OMElementImpl  (OMElementImpl.java:811) > at org.apache.axiom.om.impl.llom.OMElementImpl  (OMElementImpl.java:782) > at org.apache.axiom.om.impl.llom.OMElementImpl  (OMElementImpl.java:811) > at org.apache.axiom.om.impl.llom.OMElementImpl  (OMElementImpl.java:782) > at org.apache.axiom.om.impl.llom.OMElementImpl  (OMElementImpl.java:811) > at org.apache.axiom.om.impl.llom.OMElementImpl  (OMElementImpl.java:782) > at org.apache.axiom.soap.impl.llom.SOAPEnvelopeImpl  (SOAPEnvelopeImpl.java:177) > at org.apache.axiom.om.impl.llom.OMElementImpl  (OMElementImpl.java:811) > at org.apache.axiom.om.impl.llom.OMNodeImpl (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 (BufferedOutputStream.java:65) > at java.io.BufferedOutputStream (BufferedOutputStream.java:104) > at org.apache.commons.httpclient.ChunkedOutputStream  (ChunkedOutputStream.java:120) > at org.apache.commons.httpclient.ChunkedOutputStream  (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 (OutputStreamWriter.java:191) > at java.io.BufferedWriter (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: axis-user-unsubscribe@(protected) > For additional commands, e-mail: axis-user-help@(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: axis-user-unsubscribe@(protected) For additional commands, e-mail: axis-user-help@(protected)
|
|
 |