axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claudio Degioanni <claudiodegio...@gmail.com>
Subject org.apache.http.conn.ConnectionPoolTimeoutException: Timeout waiting for connection from pool
Date Fri, 23 Sep 2016 17:41:59 GMT
Hi All,

I have some trouble with Axis library 1.7.3 configurated to use HttpClient
4.4.1, after 200 request web service request throw a TimeoutException like:

Caused by: org.apache.axis2.AxisFault: Timeout waiting for connection from
pool
at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)
~[axis2-kernel-1.7.3.jar:1.7.3]
at org.apache.axis2.transport.http.impl.httpclient4.HTTPSenderI
mpl.sendViaPost(HTTPSenderImpl.java:242) ~[axis2-transport-http-1.7.3.j
ar:1.7.3]
at org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:121)
~[axis2-transport-http-1.7.3.jar:1.7.3]
at org.apache.axis2.transport.http.CommonsHTTPTransportSender.w
riteMessageWithCommons(CommonsHTTPTransportSender.java:403)
~[axis2-transport-http-1.7.3.jar:1.7.3]
at org.apache.axis2.transport.http.CommonsHTTPTransportSender.i
nvoke(CommonsHTTPTransportSender.java:234) ~[axis2-transport-http-1.7.3.j
ar:1.7.3]
at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:431)
~[axis2-kernel-1.7.3.jar:1.7.3]
at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:399)
~[axis2-kernel-1.7.3.jar:1.7.3]
at org.apache.axis2.description.OutInAxisOperationClient.execut
eImpl(OutInAxisOperation.java:225) ~[axis2-kernel-1.7.3.jar:1.7.3]
at org.apache.axis2.client.OperationClient.execute(OperationClient.java:150)
~[axis2-kernel-1.7.3.jar:1.7.3]
....
Caused by: org.apache.http.conn.ConnectionPoolTimeoutException: Timeout
waiting for connection from pool
at org.apache.http.impl.conn.PoolingClientConnectionManager.lea
seConnection(PoolingClientConnectionManager.java:226)
~[httpclient-4.4.1.jar:4.4.1]
at org.apache.http.impl.conn.PoolingClientConnectionManager$1.g
etConnection(PoolingClientConnectionManager.java:195)
~[httpclient-4.4.1.jar:4.4.1]
at org.apache.http.impl.client.De <http://org.apache.http.impl.client.de/>
faultRequestDirector.execute(DefaultRequestDirector.java:423)
~[httpclient-4.4.1.jar:4.4.1]
at org.apache.http.impl.client.AbstractHttpClient.doExecute(AbstractHttpClient.java:882)
~[httpclient-4.4.1.jar:4.4.1]
at org.apache.http.impl.client.Cl <http://org.apache.http.impl.client.cl/>
oseableHttpClient.execute(CloseableHttpClient.java:71)
~[httpclient-4.4.1.jar:4.4.1]
at org.apache.http.impl.client.Cl <http://org.apache.http.impl.client.cl/>
oseableHttpClient.execute(CloseableHttpClient.java:55)
~[httpclient-4.4.1.jar:4.4.1]
at org.apache.axis2.transport.http.impl.httpclient4.HTTPSenderI
mpl.executeMethod(HTTPSenderImpl.java:873) ~[axis2-transport-http-1.7.3.j
ar:1.7.3]
at org.apache.axis2.transport.http.impl.httpclient4.HTTPSenderI
mpl.sendViaPost(HTTPSenderImpl.java:238) ~[axis2-transport-http-1.7.3.j
ar:1.7.3]
... 15 common frames omitted

I think che connection pool used by library non work correctly, stuck all
connection to 200 ?

I need to use HttpClient 4.X to better support windows proxy auntetication,
I can't downgrade to http common 3.X

Any suggestions ?

regs

Mime
View raw message