hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joan Balagueró <joan.balagu...@grupoventus.com>
Subject RE: I/O reactor status: STOPPED
Date Tue, 04 Oct 2016 12:29:19 GMT
Within the HttpAsyncResponseConsumer?

Joan.

-----Mensaje original-----
De: Oleg Kalnichevski [mailto:oleg@ok2consulting.com] 
Enviado el: martes, 4 de octubre de 2016 13:59
Para: HttpClient User Discussion; Joan Balagueró
Asunto: Re: I/O reactor status: STOPPED

On October 4, 2016 12:52:42 PM GMT+02:00, "Joan Balagueró" <joan.balaguero@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.ensureRunn
>ing(C
>loseableHttpAsyncClientBase.java:90)
>        at
>org.apache.http.impl.nio.client.InternalHttpAsyncClient.execute(Interna
>lHttp
>AsyncClient.java:123)
>        at
>org.apache.http.impl.nio.client.CloseableHttpAsyncClient.execute(Closea
>bleHt
>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-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