You are viewing a plain text version of this content. The canonical link for it is here.
Posted to httpclient-users@hc.apache.org by Joan Balagueró <jo...@grupoventus.com> on 2016/10/04 10:52:42 UTC
I/O reactor status: STOPPED
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.
---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org
For additional commands, e-mail: httpclient-users-help@hc.apache.org
Re: I/O reactor status: STOPPED
Posted by Oleg Kalnichevski <ol...@apache.org>.
On Tue, 2016-10-04 at 14:29 +0200, Joan Balaguer� wrote:
> Within the HttpAsyncResponseConsumer?
>
Most likely.
You can use #getAuditLog() method of the I/O reactor to find out exactly
what exception caused it to terminate.
http://hc.apache.org/httpcomponents-core-4.4.x/httpcore-nio/apidocs/org/apache/http/impl/nio/reactor/AbstractMultiworkerIOReactor.html#getAuditLog()
Oleg
> 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�" <jo...@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
>
---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org
For additional commands, e-mail: httpclient-users-help@hc.apache.org
RE: I/O reactor status: STOPPED
Posted by Joan Balagueró <jo...@grupoventus.com>.
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ó" <jo...@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
Re: I/O reactor status: STOPPED
Posted by Oleg Kalnichevski <ol...@ok2consulting.com>.
On October 4, 2016 12:52:42 PM GMT+02:00, "Joan Balaguer�" <jo...@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-unsubscribe@hc.apache.org
For additional commands, e-mail: httpclient-users-help@hc.apache.org