hi all,
i'm using axis2 1.5.1 to host a webservice. if i call the webservice using
org.apache.axis2.client.ServiceClient everything works fine.

But if my webservice returns a fault - 

org.apache.axis2.AxisFault: test
        at
org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(Utils.java:435)
        at
org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:371)
        at
org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:417)
        at
org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:229)
        at
org.apache.axis2.client.OperationClient.execute(OperationClient.java:165)
        at
org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:540)
        at
org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:521)


the http-connection seems to stay open. so after calling the webserivce two
times, no calles are possible any more:

JHttp-38 2010-11-19 14:08:22.864
org.apache.axis2.AxisFault: Timeout waiting for connection
        at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)
        at
org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:203)
        at org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:76)
        at
org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:400)
        at
org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:225)
        at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:435)
        at
org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:402)
        at
org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:229)
        at
org.apache.axis2.client.OperationClient.execute(OperationClient.java:165)
        at
org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:540)
        at
org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:521)

I'm confused because I thought that setting
client.setCallTransportCleanup(true); should avoid such behavior!

using this
try {
   client.send...
} finally{
   client.cleanupTransport();
}

resolves the problem.

researching the problem I found:
https://issues.apache.org/jira/browse/AXIS2-4752 where a simmilar problem is
described (see comment 31/Oct/10).
could it be that http-webservices are buggy in the fault-case too?

regards,
 gerhard
-- 
View this message in context: 
http://old.nabble.com/axis2-1.5.1-http-webservice-connection-problem-on-fault-tp30257459p30257459.html
Sent from the Axis - User mailing list archive at Nabble.com.


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

Reply via email to