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:o...@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.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.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-unsubscr...@hc.apache.org > For additional commands, e-mail: httpclient-users-h...@hc.apache.org > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: httpclient-users-unsubscr...@hc.apache.org > For additional commands, e-mail: httpclient-users-h...@hc.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: httpclient-users-unsubscr...@hc.apache.org For additional commands, e-mail: httpclient-users-h...@hc.apache.org