Return-Path: X-Original-To: apmail-hc-dev-archive@www.apache.org Delivered-To: apmail-hc-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 6033592D7 for ; Thu, 16 May 2013 00:49:16 +0000 (UTC) Received: (qmail 68150 invoked by uid 500); 16 May 2013 00:49:16 -0000 Delivered-To: apmail-hc-dev-archive@hc.apache.org Received: (qmail 68121 invoked by uid 500); 16 May 2013 00:49:16 -0000 Mailing-List: contact dev-help@hc.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "HttpComponents Project" Delivered-To: mailing list dev@hc.apache.org Received: (qmail 68100 invoked by uid 99); 16 May 2013 00:49:16 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 May 2013 00:49:16 +0000 Date: Thu, 16 May 2013 00:49:16 +0000 (UTC) From: "Joshua Andrews (JIRA)" To: dev@hc.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HTTPASYNC-30) Connection already open error on some requests MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HTTPASYNC-30?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13659090#comment-13659090 ] Joshua Andrews commented on HTTPASYNC-30: ----------------------------------------- Hey Oleg, I've updated to beta4, and ported all of my code to use the new api, it's much cleaner. I didn't test the deprecated PoolingClientAsyncConnectionManager, only the new PoolingNHttpClientConnectionManager - which I can confirm works very well. To give you some insight, I'm using akka+scala+a futures bridge, not ideal, but it works. Thanks so much for your work on HttpClient over the years, Oleg! > 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 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 is the first time I've seen the error. 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