On October 4, 2016 12:52:42 PM GMT+02:00, "Joan Balagueró" 
<joan.balagu...@grupoventus.com> wrote:
>Hello,
>
>I'm occassionally receiving this error, and the async pool stops
>working:
>
>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(C
>loseableHttpAsyncClientBase.java:90)
>        at
>org.apache.http.impl.nio.client.InternalHttpAsyncClient.execute(InternalHttp
>AsyncClient.java:123)
>        at
>org.apache.http.impl.nio.client.CloseableHttpAsyncClient.execute(CloseableHt
>tpAsyncClient.java:68)
>
>
>I'm using an HttpAsyncResponseConsumer, and I know that one of the
>reasons
>for this error is to throw an exception on the "failed" method. That's
>why
>this method looks like as follows:
>
>@Override
> public void failed(final Exception e)
> {
>  try { this.setError(e); }
>  catch (Throwable t) {}
> }
>
>Even with this, sometimes the IO reactor stops. Is there anything else
>I
>must take into account in order to avoid this error? Any other method I
>should control? What else can cause the IO reactor to be stopped?
>
>Thanks,
>
>Joan.

Most likely due to a runtime thrown by application code.

Oleg
-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.

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

Reply via email to