axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sardar Hussain <salarzi_...@yahoo.com>
Subject [Axis2] Client Error: Unable to sendViaPost to ur
Date Wed, 16 Feb 2011 01:57:58 GMT
Hi,
 I have a number of Axis2 web services and I am going to call them through a client. I can
call each individual service easily and successfully. However when I call them in a loop I
get the following error after calling two services. 
I mean when want to call more than two services in a loop, it can successfully call first
services however can not call the other services and throw the following error.

Unable to sendViaPost to url[http://localhost:8080/axis2/services/WSAddService?wsdl]
org.apache.commons.httpclient.ConnectionPoolTimeoutException: Timeout waiting for connection
    at org.apache.commons.httpclient.MultiThreadedHttpConnectionManager.doGetConnection(MultiThreadedHttpConnectionManager.java:497)
    at org.apache.commons.httpclient.MultiThreadedHttpConnectionManager.getConnectionWithTimeout(MultiThreadedHttpConnectionManager.java:416)
    at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:153)
    at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397)
    at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:346)
    at org.apache.axis2.transport.http.AbstractHTTPSender.executeMethod(AbstractHTTPSender.java:557)
    at org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:199)
    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:438)
    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 engine.nesc.gla.ac.uk.GenericClient.callService(GenericClient.java:88)
    at engine.nesc.gla.ac.uk.GenericClient.callClient(GenericClient.java:55)
    at nesc.gla.ac.uk.WorkflowApp.callService(WorkflowApp.java:129)
    at nesc.gla.ac.uk.WorkflowApp.main(WorkflowApp.java:59)
java.lang.NullPointerException
    at engine.nesc.gla.ac.uk.GenericClient.callService(GenericClient.java:93)
    at engine.nesc.gla.ac.uk.GenericClient.callClient(GenericClient.java:55)

Can some one kindly give me a clue how to handle this problem?

Regards,

Sardar Hussain



      
Mime
View raw message