You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by "Mark Greene (JIRA)" <ji...@apache.org> on 2012/11/12 21:51:12 UTC

[jira] [Updated] (HTTPASYNC-30) Connection already open error on some requests

     [ https://issues.apache.org/jira/browse/HTTPASYNC-30?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Mark Greene updated HTTPASYNC-30:
---------------------------------

    Description: 
I apologize in advance for not providing a unit test or steps to reproduce but I've only seen this is the first time I've seen this happen in my production environment.

The only context I can really provide is that out of the roughly 7 million async http calls a day my app makes this first time I've seen this. Additionally, the URI I was attempting to hit had made successful calls leading up to the error. The status code that is to be returned from this URI is 204.

Stack trace is:
 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)

  was:
I apologize in advance for not providing a unit test or steps to reproduce but I've only seen this is the first time I've seen this happen in my production environment.

The only context I can really provide is that out of the roughly 7 million async http calls a day my app makes is this first time I've seen this. Additionally, the URI I was attempting to hit had made successful calls leading up to the error. The status code that is to be returned from this URI is 204.

Stack trace is:
 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)

    
> Connection already open error on some requests
> ----------------------------------------------
>
>                 Key: HTTPASYNC-30
>                 URL: https://issues.apache.org/jira/browse/HTTPASYNC-30
>             Project: HttpComponents HttpAsyncClient
>          Issue Type: Bug
>    Affects Versions: 4.0-beta3
>            Reporter: Mark Greene
>            Priority: Minor
>
> I apologize in advance for not providing a unit test or steps to reproduce but I've only seen this is the first time I've seen this happen in my production environment.
> The only context I can really provide is that out of the roughly 7 million async http calls a day my app makes this first time I've seen this. Additionally, the URI I was attempting to hit had made successful calls leading up to the error. The status code that is to be returned from this URI is 204.
> Stack trace is:
>  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)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org