Return-Path: X-Original-To: apmail-hc-httpclient-users-archive@www.apache.org Delivered-To: apmail-hc-httpclient-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B2E4FDE45 for ; Mon, 12 Nov 2012 16:41:15 +0000 (UTC) Received: (qmail 14214 invoked by uid 500); 12 Nov 2012 16:41:15 -0000 Delivered-To: apmail-hc-httpclient-users-archive@hc.apache.org Received: (qmail 14169 invoked by uid 500); 12 Nov 2012 16:41:14 -0000 Mailing-List: contact httpclient-users-help@hc.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "HttpClient User Discussion" Delivered-To: mailing list httpclient-users@hc.apache.org Received: (qmail 14124 invoked by uid 99); 12 Nov 2012 16:41:13 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 12 Nov 2012 16:41:13 +0000 X-ASF-Spam-Status: No, hits=0.7 required=5.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [217.150.250.48] (HELO kalnich.nine.ch) (217.150.250.48) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 12 Nov 2012 16:41:05 +0000 Received: from [192.168.42.181] (unknown [213.55.184.157]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by kalnich.nine.ch (Postfix) with ESMTPSA id 1DA4BB80168 for ; Mon, 12 Nov 2012 17:40:43 +0100 (CET) Message-ID: <1352738433.9464.5.camel@ubuntu> Subject: Re: Http Async Client: Connection already open From: Oleg Kalnichevski To: HttpClient User Discussion Date: Mon, 12 Nov 2012 17:40:33 +0100 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.6.0-0ubuntu3 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on 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