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 Mark Greene <mg...@hubspot.com> on 2012/11/12 17:08:02 UTC
Http Async Client: Connection already open
Hi,
Occasionally I'll get this error when executing a call but would like to
understand the actual source of the problem and if there is some
configuration I can change to prevent it from happening again.
java.lang.IllegalStateException: Connection already open
at
org.apache.http.impl.nio.conn.ManagedClientAsyncConnectionImpl.open(ManagedClientAsyncConnectionImpl.java:305)
at
org.apache.http.impl.nio.client.DefaultAsyncRequestDirector.connectionRequestCompleted(DefaultAsyncRequestDirector.java:568)
at
org.apache.http.impl.nio.client.DefaultAsyncRequestDirector.access$000(DefaultAsyncRequestDirector.java:95)
at
org.apache.http.impl.nio.client.DefaultAsyncRequestDirector$InternalFutureCallback.completed(DefaultAsyncRequestDirector.java:609)
at
org.apache.http.impl.nio.client.DefaultAsyncRequestDirector$InternalFutureCallback.completed(DefaultAsyncRequestDirector.java:606)
at
org.apache.http.concurrent.BasicFuture.completed(BasicFuture.java:109)
at
org.apache.http.impl.nio.conn.PoolingClientAsyncConnectionManager$InternalPoolEntryCallback.completed(PoolingClientAsyncConnectionManager.java:303)
at
org.apache.http.impl.nio.conn.PoolingClientAsyncConnectionManager$InternalPoolEntryCallback.completed(PoolingClientAsyncConnectionManager.java:285)
at
org.apache.http.concurrent.BasicFuture.completed(BasicFuture.java:109)
at
org.apache.http.nio.pool.AbstractNIOConnPool.processPendingRequests(AbstractNIOConnPool.java:267)
at
org.apache.http.nio.pool.AbstractNIOConnPool.lease(AbstractNIOConnPool.java:192)
at
org.apache.http.impl.nio.conn.PoolingClientAsyncConnectionManager.leaseConnection(PoolingClientAsyncConnectionManager.java:176)
at
org.apache.http.impl.nio.client.DefaultAsyncRequestDirector.requestConnection(DefaultAsyncRequestDirector.java:629)
at
org.apache.http.impl.nio.client.DefaultAsyncRequestDirector.start(DefaultAsyncRequestDirector.java:233)
at
org.apache.http.impl.nio.client.AbstractHttpAsyncClient.execute(AbstractHttpAsyncClient.java:540)
at
org.apache.http.impl.nio.client.AbstractHttpAsyncClient.execute(AbstractHttpAsyncClient.java:554)
at
org.apache.http.impl.nio.client.AbstractHttpAsyncClient.execute(AbstractHttpAsyncClient.java:584)
at
org.apache.http.impl.nio.client.AbstractHttpAsyncClient.execute(AbstractHttpAsyncClient.java:569)
Re: Http Async Client: Connection already open
Posted by Mark Greene <mg...@hubspot.com>.
Sure no problem, JIRA is here:
https://issues.apache.org/jira/browse/HTTPASYNC-30
On Mon, Nov 12, 2012 at 11:40 AM, Oleg Kalnichevski <ol...@apache.org>wrote:
> On Mon, 2012-11-12 at 11:08 -0500, Mark Greene wrote:
> > Hi,
> >
> > Occasionally I'll get this error when executing a call but would like to
> > understand the actual source of the problem and if there is some
> > configuration I can change to prevent it from happening again.
> >
> > java.lang.IllegalStateException: Connection already open
>
> Mark
>
> It is difficult to make a definitive statement as to what the cause of
> the problem might without having at least some sort of contextual
> details. By the look of it, for some reason a connection ended up in a
> inconsistent state. This quite likely to be due to a bug in
> HttpAsyncClient but I cannot say for sure. Could you please raise a JIRA
> for this defect and try to provide some context details about what kind
> of requests the client has been executing when the problem occurred?
>
> Oleg
>
> > at
> >
> org.apache.http.impl.nio.conn.ManagedClientAsyncConnectionImpl.open(ManagedClientAsyncConnectionImpl.java:305)
> > at
> >
> org.apache.http.impl.nio.client.DefaultAsyncRequestDirector.connectionRequestCompleted(DefaultAsyncRequestDirector.java:568)
> > at
> >
> org.apache.http.impl.nio.client.DefaultAsyncRequestDirector.access$000(DefaultAsyncRequestDirector.java:95)
> > at
> >
> org.apache.http.impl.nio.client.DefaultAsyncRequestDirector$InternalFutureCallback.completed(DefaultAsyncRequestDirector.java:609)
> > at
> >
> org.apache.http.impl.nio.client.DefaultAsyncRequestDirector$InternalFutureCallback.completed(DefaultAsyncRequestDirector.java:606)
> > at
> > org.apache.http.concurrent.BasicFuture.completed(BasicFuture.java:109)
> > at
> >
> org.apache.http.impl.nio.conn.PoolingClientAsyncConnectionManager$InternalPoolEntryCallback.completed(PoolingClientAsyncConnectionManager.java:303)
> > at
> >
> org.apache.http.impl.nio.conn.PoolingClientAsyncConnectionManager$InternalPoolEntryCallback.completed(PoolingClientAsyncConnectionManager.java:285)
> > at
> > org.apache.http.concurrent.BasicFuture.completed(BasicFuture.java:109)
> > at
> >
> org.apache.http.nio.pool.AbstractNIOConnPool.processPendingRequests(AbstractNIOConnPool.java:267)
> > at
> >
> org.apache.http.nio.pool.AbstractNIOConnPool.lease(AbstractNIOConnPool.java:192)
> > at
> >
> org.apache.http.impl.nio.conn.PoolingClientAsyncConnectionManager.leaseConnection(PoolingClientAsyncConnectionManager.java:176)
> > at
> >
> org.apache.http.impl.nio.client.DefaultAsyncRequestDirector.requestConnection(DefaultAsyncRequestDirector.java:629)
> > at
> >
> org.apache.http.impl.nio.client.DefaultAsyncRequestDirector.start(DefaultAsyncRequestDirector.java:233)
> > at
> >
> org.apache.http.impl.nio.client.AbstractHttpAsyncClient.execute(AbstractHttpAsyncClient.java:540)
> > at
> >
> org.apache.http.impl.nio.client.AbstractHttpAsyncClient.execute(AbstractHttpAsyncClient.java:554)
> > at
> >
> org.apache.http.impl.nio.client.AbstractHttpAsyncClient.execute(AbstractHttpAsyncClient.java:584)
> > at
> >
> org.apache.http.impl.nio.client.AbstractHttpAsyncClient.execute(AbstractHttpAsyncClient.java:569)
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org
> For additional commands, e-mail: httpclient-users-help@hc.apache.org
>
>
Re: Http Async Client: Connection already open
Posted by Oleg Kalnichevski <ol...@apache.org>.
On Mon, 2012-11-12 at 11:08 -0500, Mark Greene wrote:
> Hi,
>
> Occasionally I'll get this error when executing a call but would like to
> understand the actual source of the problem and if there is some
> configuration I can change to prevent it from happening again.
>
> java.lang.IllegalStateException: Connection already open
Mark
It is difficult to make a definitive statement as to what the cause of
the problem might without having at least some sort of contextual
details. By the look of it, for some reason a connection ended up in a
inconsistent state. This quite likely to be due to a bug in
HttpAsyncClient but I cannot say for sure. Could you please raise a JIRA
for this defect and try to provide some context details about what kind
of requests the client has been executing when the problem occurred?
Oleg
> at
> org.apache.http.impl.nio.conn.ManagedClientAsyncConnectionImpl.open(ManagedClientAsyncConnectionImpl.java:305)
> at
> org.apache.http.impl.nio.client.DefaultAsyncRequestDirector.connectionRequestCompleted(DefaultAsyncRequestDirector.java:568)
> at
> org.apache.http.impl.nio.client.DefaultAsyncRequestDirector.access$000(DefaultAsyncRequestDirector.java:95)
> at
> org.apache.http.impl.nio.client.DefaultAsyncRequestDirector$InternalFutureCallback.completed(DefaultAsyncRequestDirector.java:609)
> at
> org.apache.http.impl.nio.client.DefaultAsyncRequestDirector$InternalFutureCallback.completed(DefaultAsyncRequestDirector.java:606)
> at
> org.apache.http.concurrent.BasicFuture.completed(BasicFuture.java:109)
> at
> org.apache.http.impl.nio.conn.PoolingClientAsyncConnectionManager$InternalPoolEntryCallback.completed(PoolingClientAsyncConnectionManager.java:303)
> at
> org.apache.http.impl.nio.conn.PoolingClientAsyncConnectionManager$InternalPoolEntryCallback.completed(PoolingClientAsyncConnectionManager.java:285)
> at
> org.apache.http.concurrent.BasicFuture.completed(BasicFuture.java:109)
> at
> org.apache.http.nio.pool.AbstractNIOConnPool.processPendingRequests(AbstractNIOConnPool.java:267)
> at
> org.apache.http.nio.pool.AbstractNIOConnPool.lease(AbstractNIOConnPool.java:192)
> at
> org.apache.http.impl.nio.conn.PoolingClientAsyncConnectionManager.leaseConnection(PoolingClientAsyncConnectionManager.java:176)
> at
> org.apache.http.impl.nio.client.DefaultAsyncRequestDirector.requestConnection(DefaultAsyncRequestDirector.java:629)
> at
> org.apache.http.impl.nio.client.DefaultAsyncRequestDirector.start(DefaultAsyncRequestDirector.java:233)
> at
> org.apache.http.impl.nio.client.AbstractHttpAsyncClient.execute(AbstractHttpAsyncClient.java:540)
> at
> org.apache.http.impl.nio.client.AbstractHttpAsyncClient.execute(AbstractHttpAsyncClient.java:554)
> at
> org.apache.http.impl.nio.client.AbstractHttpAsyncClient.execute(AbstractHttpAsyncClient.java:584)
> at
> org.apache.http.impl.nio.client.AbstractHttpAsyncClient.execute(AbstractHttpAsyncClient.java:569)
---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org
For additional commands, e-mail: httpclient-users-help@hc.apache.org