org.apache.axis2.AxisFault: Software caused connection abort: recv failed


JDK 1.5
Axis2 1.6.2
Eclipse 3.7.1


After generate WebService Client with Axis2, I tried to run the program; however, an error occurred “org.apache.axis2.AxisFault: Software caused connection abort: recv failed…”

[httpclient.wire.header]-[DEBUG] >> “Transfer-Encoding: chunked[\r][\n]”
[httpclient.wire.header]-[DEBUG] >> “[\r][\n]”
[httpclient.wire.content]-[DEBUG] >> “3a8[\r][\n]”


1. Check if the network connection is OK.

2. Check HTTP chunking support. By default chunking is enabled in Axis2.xml for versions 1.1 and higher.

This time the problem is from HTTP chunking support. I think the server does not support it, so I need to disable the chunking function.

A. Deployment Time: axis2.xml

remove Transfer-Encoding parameter

<parameter name="Transfer-Encoding">chunked</parameter>

B. Runtime:

stub._getServiceClient().getOptions().setProperty(org.apache.axis2.transport.http.HTTPConstants.CHUNKED, Boolean.FALSE);


Set timeout (20 min) :

stub._getServiceClient().getOptions().setTimeOutInMilliSeconds(20 * 60 * 1000);

Set HTTP version :





Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s