hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jaikit Savla <jaikit.sa...@yahoo.com>
Subject Re: apache async httpclient I/O reactor status: STOPPED
Date Wed, 15 Jan 2014 06:07:59 GMT
Hi Oleg,

I got the error again. Please find the stack trace below. If I get to reproduce it consistently
- I will upload a test case.

This time I see there are couple of SocketTimeoutExceptions before I/O reactor termites abnormally
Caused by: java.net.SocketTimeoutException
        at org.apache.http.nio.pool.RouteSpecificPool.timeout(RouteSpecificPool.java:166)
        at org.apache.http.nio.pool.AbstractNIOConnPool.requestTimeout(AbstractNIOConnPool.java:546)
        at org.apache.http.nio.pool.AbstractNIOConnPool$InternalSessionRequestCallback.timeout(AbstractNIOConnPool.java:750)
        at org.apache.http.impl.nio.reactor.SessionRequestImpl.timeout(SessionRequestImpl.java:177)
        at org.apache.http.impl.nio.reactor.DefaultConnectingIOReactor.processTimeouts(DefaultConnectingIOReactor.java:213)
        at org.apache.http.impl.nio.reactor.DefaultConnectingIOReactor.processEvents(DefaultConnectingIOReactor.java:157)
        at org.apache.http.impl.nio.reactor.AbstractMultiworkerIOReactor.execute(AbstractMultiworkerIOReactor.java:348)
        at org.apache.http.impl.nio.conn.PoolingNHttpClientConnectionManager.execute(PoolingNHttpClientConnectionManager.java:189)
        at org.apache.http.impl.nio.client.CloseableHttpAsyncClientBase.doExecute(CloseableHttpAsyncClientBase.java:67)
        at org.apache.http.impl.nio.client.CloseableHttpAsyncClientBase.access$000(CloseableHttpAsyncClientBase.java:38)
        at org.apache.http.impl.nio.client.CloseableHttpAsyncClientBase$1.run(CloseableHttpAsyncClientBase.java:57)
        ... 1 more



2014-01-11 01:09:07,225 ERROR [pool-3-thread-1] org.apache.http.impl.nio.client.InternalHttpAsyncClient
 - I/O reactor terminated abnormally
org.apache.http.nio.reactor.IOReactorException: I/O dispatch worker terminated abnormally
        at org.apache.http.impl.nio.reactor.AbstractMultiworkerIOReactor.execute(AbstractMultiworkerIOReactor.java:356)
        at org.apache.http.impl.nio.conn.PoolingNHttpClientConnectionManager.execute(PoolingNHttpClientConnectionManager.java:189)
        at org.apache.http.impl.nio.client.CloseableHttpAsyncClientBase.doExecute(CloseableHttpAsyncClientBase.java:67)
        at org.apache.http.impl.nio.client.CloseableHttpAsyncClientBase.access$000(CloseableHttpAsyncClientBase.java:38)
        at org.apache.http.impl.nio.client.CloseableHttpAsyncClientBase$1.run(CloseableHttpAsyncClientBase.java:57)
        at java.lang.Thread.run(Thread.java:724)
Caused by: java.lang.IllegalStateException: Connection must be created by connection manager
        at org.apache.http.impl.nio.client.InternalIODispatch.createConnection(InternalIODispatch.java:48)
        at org.apache.http.impl.nio.client.InternalIODispatch.createConnection(InternalIODispatch.java:37)
        at org.apache.http.impl.nio.reactor.AbstractIODispatch.connected(AbstractIODispatch.java:71)
        at org.apache.http.impl.nio.reactor.BaseIOReactor.sessionCreated(BaseIOReactor.java:240)
        at org.apache.http.impl.nio.reactor.AbstractIOReactor.processNewChannels(AbstractIOReactor.java:426)
        at org.apache.http.impl.nio.reactor.AbstractIOReactor.execute(AbstractIOReactor.java:288)
        at org.apache.http.impl.nio.reactor.BaseIOReactor.execute(BaseIOReactor.java:105)
        at org.apache.http.impl.nio.reactor.AbstractMultiworkerIOReactor$Worker.run(AbstractMultiworkerIOReactor.java:584)



On Tuesday, January 14, 2014 3:04 AM, Oleg Kalnichevski <olegk@apache.org> wrote:

On Mon, 2014-01-13 at 18:55 -0800, Jaikit Savla wrote:

> Hello Folks,
> 
> I have a service running which depends on apache async httpclient. Versions are as mentioned
below
> commons-httpclient-3.1.jar
> httpasyncclient-4.0.jar
> httpcore-4.3.jar
> httpcore-nio-4.3.jar
> 
> Intermittently (after 3 days) all my request failed with below error. Unfortunately I
do not have the first error which triggered I/O reactor to stop and I will keep an eye to
get that. Is there any known issue with latest client or has anyone see this before ?
> Stack when run with latest client.
> java.lang.IllegalStateException: Request cannot be executed; I/O reactor status: STOPPED
>         at org.apache.http.util.Asserts.check(Asserts.java:40)
>         at org.apache.http.impl.nio.client.InternalHttpAsyncClient.execute(InternalHttpAsyncClient.java:112)
>         at org.apache.http.impl.nio.client.CloseableHttpAsyncClient.execute(CloseableHttpAsyncClient.java:72)
>         at org.apache.http.impl.nio.client.CloseableHttpAsyncClient.execute(CloseableHttpAsyncClient.java:102)
>         at org.apache.http.impl.nio.client.CloseableHttpAsyncClient.execute(CloseableHttpAsyncClient.java:87)
> 
> 
> I recently upgraded async client from 4.0-beta3 to GA. Previously request failed with
below error and that was addressed in https://issues.apache.org/jira/browse/HTTPCORE-336.
>
java.lang.IllegalStateException: Client has been shut down
> org.apache.http.impl.nio.client.AbstractHttpAsyncClient.execute(AbstractHttpAsyncClient.java:509)
> org.apache.http.impl.nio.client.AbstractHttpAsyncClient.execute(AbstractHttpAsyncClient.java:554)
> org.apache.http.impl.nio.client.AbstractHttpAsyncClient.execute(AbstractHttpAsyncClient.java:584)
> org.apache.http.impl.nio.client.AbstractHttpAsyncClient.execute(AbstractHttpAsyncClient.java:569)
> 
> library version
> commons-httpclient-3.1.jar
> httpasyncclient-4.0-beta3.jar
> httpcore-4.3.jar
> httpcore-nio-4.2.3.jar
> 
> Any help is appreciated.
> 
> Thanks,
> Jaikit

Jaikit,

There are no known issues of this nature with the latest 4.2 and 4.3
releases. I really would need to see the stack trace of the original
exception to be of any help.

Oleg  



---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org
For additional commands, e-mail: httpclient-users-help@hc.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org
For additional commands, e-mail: httpclient-users-help@hc.apache.org


Mime
View raw message