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: [email protected] For additional commands, e-mail: [email protected]
