[ 
https://issues.apache.org/jira/browse/HTTPASYNC-104?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

maria deepak marneni updated HTTPASYNC-104:
-------------------------------------------
    Description: 
In a multi thread environment where all requests use the same client. 
CloseableHttpAsyncClient throws illegalStateException when execute method is 
called.

Exception in thread "Thread-91" java.lang.IllegalStateException: Request cannot 
be executed; I/O reactor status: STOPPED
        at org.apache.http.util.Asserts.check(Asserts.java:46)
        at 
org.apache.http.impl.nio.client.CloseableHttpAsyncClientBase.ensureRunning(CloseableHttpAsyncClientBase.java:90)
        at 
org.apache.http.impl.nio.client.InternalHttpAsyncClient.execute(InternalHttpAsyncClient.java:123)
        at 
org.apache.http.impl.nio.client.CloseableHttpAsyncClient.execute(CloseableHttpAsyncClient.java:74)
        at 
org.apache.http.impl.nio.client.CloseableHttpAsyncClient.execute(CloseableHttpAsyncClient.java:107)
        at 
org.apache.http.impl.nio.client.CloseableHttpAsyncClient.execute(CloseableHttpAsyncClient.java:91)
        at 
domain.hardware.http.HttpRequestPublisher1.execute(HttpRequestPublisherTester.java:282)
        at 
domain.hardware.http.HttpHandler1.makeAsyncHttpGetRequest(HttpRequestPublisherTester.java:179)
        at 
domain.hardware.http.HttpRequestPublisherTester.run(HttpRequestPublisherTester.java:48)
        at java.lang.Thread.run(Thread.java:662)
Exception in thread "Thread-46" java.lang.IllegalStateException: Request cannot 
be executed; I/O reactor status: STOPPED
        at org.apache.http.util.Asserts.check(Asserts.java:46)
        at 
org.apache.http.impl.nio.client.CloseableHttpAsyncClientBase.ensureRunning(CloseableHttpAsyncClientBase.java:90)
        at 
org.apache.http.impl.nio.client.InternalHttpAsyncClient.execute(InternalHttpAsyncClient.java:123)
        at 
org.apache.http.impl.nio.client.CloseableHttpAsyncClient.execute(CloseableHttpAsyncClient.java:74)
        at 
org.apache.http.impl.nio.client.CloseableHttpAsyncClient.execute(CloseableHttpAsyncClient.java:107)
        at 
org.apache.http.impl.nio.client.CloseableHttpAsyncClient.execute(CloseableHttpAsyncClient.java:91)
        at 
domain.hardware.http.HttpRequestPublisher1.execute(HttpRequestPublisherTester.java:282)
        at 
domain.hardware.http.HttpHandler1.makeAsyncHttpGetRequest(HttpRequestPublisherTester.java:179)
        at 
domain.hardware.http.HttpRequestPublisherTester.run(HttpRequestPublisherTester.java:48)
        at java.lang.Thread.run(Thread.java:662)

  was:
In a multi thread environment where all requests use the same client. 
CloseableHttpAsyncClient throws illegalStateException when execute method is 
called.

Exception in thread "Thread-11" java.lang.IllegalStateException: Request cannot 
be executed; I/O reactor status: STOPPED
        at org.apache.http.util.Asserts.check(Asserts.java:46)
        at 
org.apache.http.impl.nio.client.CloseableHttpAsyncClientBase.ensureRunning(CloseableHttpAsyncClientBase.java:90)
        at 
org.apache.http.impl.nio.client.InternalHttpAsyncClient.execute(InternalHttpAsyncClient.java:123)
        at 
org.apache.http.impl.nio.client.CloseableHttpAsyncClient.execute(CloseableHttpAsyncClient.java:74)
        at 
org.apache.http.impl.nio.client.CloseableHttpAsyncClient.execute(CloseableHttpAsyncClient.java:107)
        at 
org.apache.http.impl.nio.client.CloseableHttpAsyncClient.execute(CloseableHttpAsyncClient.java:91)
        at 
ccad.dctsim.domain.hardware.ipdc.http.HttpRequestPublisher1.execute(HttpRequestPublisherTester.java:280)
        at 
ccad.dctsim.domain.hardware.ipdc.http.HttpHandler1.makeAsyncHttpGetRequest(HttpRequestPublisherTester.java:177)
        at 
ccad.dctsim.domain.hardware.ipdc.http.HttpRequestPublisherTester.run(HttpRequestPublisherTester.java:46)
        at java.lang.Thread.run(Thread.java:662)
Exception in thread "Thread-44" Exception in thread "Thread-3" 
java.lang.IllegalStateException: Request cannot be executed; I/O reactor 
status: STOPPED
        at org.apache.http.util.Asserts.check(Asserts.java:46)
        at 
org.apache.http.impl.nio.client.CloseableHttpAsyncClientBase.ensureRunning(CloseableHttpAsyncClientBase.java:90)
        at 
org.apache.http.impl.nio.client.InternalHttpAsyncClient.execute(InternalHttpAsyncClient.java:123)
        at 
org.apache.http.impl.nio.client.CloseableHttpAsyncClient.execute(CloseableHttpAsyncClient.java:74)
        at 
org.apache.http.impl.nio.client.CloseableHttpAsyncClient.execute(CloseableHttpAsyncClient.java:107)
        at 
org.apache.http.impl.nio.client.CloseableHttpAsyncClient.execute(CloseableHttpAsyncClient.java:91)
        at 
ccad.dctsim.domain.hardware.ipdc.http.HttpRequestPublisher1.execute(HttpRequestPublisherTester.java:280)
        at 
ccad.dctsim.domain.hardware.ipdc.http.HttpHandler1.makeAsyncHttpGetRequest(HttpRequestPublisherTester.java:177)
        at 
ccad.dctsim.domain.hardware.ipdc.http.HttpRequestPublisherTester.run(HttpRequestPublisherTester.java:46)
        at java.lang.Thread.run(Thread.java:662)


> IlligalStateException when using the same client for mutiple requests.
> ----------------------------------------------------------------------
>
>                 Key: HTTPASYNC-104
>                 URL: https://issues.apache.org/jira/browse/HTTPASYNC-104
>             Project: HttpComponents HttpAsyncClient
>          Issue Type: Bug
>    Affects Versions: 4.1.1
>            Reporter: maria deepak marneni
>
> In a multi thread environment where all requests use the same client. 
> CloseableHttpAsyncClient throws illegalStateException when execute method is 
> called.
> Exception in thread "Thread-91" java.lang.IllegalStateException: Request 
> cannot be executed; I/O reactor status: STOPPED
>       at org.apache.http.util.Asserts.check(Asserts.java:46)
>       at 
> org.apache.http.impl.nio.client.CloseableHttpAsyncClientBase.ensureRunning(CloseableHttpAsyncClientBase.java:90)
>       at 
> org.apache.http.impl.nio.client.InternalHttpAsyncClient.execute(InternalHttpAsyncClient.java:123)
>       at 
> org.apache.http.impl.nio.client.CloseableHttpAsyncClient.execute(CloseableHttpAsyncClient.java:74)
>       at 
> org.apache.http.impl.nio.client.CloseableHttpAsyncClient.execute(CloseableHttpAsyncClient.java:107)
>       at 
> org.apache.http.impl.nio.client.CloseableHttpAsyncClient.execute(CloseableHttpAsyncClient.java:91)
>       at 
> domain.hardware.http.HttpRequestPublisher1.execute(HttpRequestPublisherTester.java:282)
>       at 
> domain.hardware.http.HttpHandler1.makeAsyncHttpGetRequest(HttpRequestPublisherTester.java:179)
>       at 
> domain.hardware.http.HttpRequestPublisherTester.run(HttpRequestPublisherTester.java:48)
>       at java.lang.Thread.run(Thread.java:662)
> Exception in thread "Thread-46" java.lang.IllegalStateException: Request 
> cannot be executed; I/O reactor status: STOPPED
>       at org.apache.http.util.Asserts.check(Asserts.java:46)
>       at 
> org.apache.http.impl.nio.client.CloseableHttpAsyncClientBase.ensureRunning(CloseableHttpAsyncClientBase.java:90)
>       at 
> org.apache.http.impl.nio.client.InternalHttpAsyncClient.execute(InternalHttpAsyncClient.java:123)
>       at 
> org.apache.http.impl.nio.client.CloseableHttpAsyncClient.execute(CloseableHttpAsyncClient.java:74)
>       at 
> org.apache.http.impl.nio.client.CloseableHttpAsyncClient.execute(CloseableHttpAsyncClient.java:107)
>       at 
> org.apache.http.impl.nio.client.CloseableHttpAsyncClient.execute(CloseableHttpAsyncClient.java:91)
>       at 
> domain.hardware.http.HttpRequestPublisher1.execute(HttpRequestPublisherTester.java:282)
>       at 
> domain.hardware.http.HttpHandler1.makeAsyncHttpGetRequest(HttpRequestPublisherTester.java:179)
>       at 
> domain.hardware.http.HttpRequestPublisherTester.run(HttpRequestPublisherTester.java:48)
>       at java.lang.Thread.run(Thread.java:662)



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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

Reply via email to