Return-Path: Delivered-To: apmail-hc-httpclient-users-archive@www.apache.org Received: (qmail 95054 invoked from network); 25 May 2010 17:07:45 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 25 May 2010 17:07:45 -0000 Received: (qmail 11522 invoked by uid 500); 25 May 2010 17:07:44 -0000 Delivered-To: apmail-hc-httpclient-users-archive@hc.apache.org Received: (qmail 11449 invoked by uid 500); 25 May 2010 17:07:44 -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 11441 invoked by uid 99); 25 May 2010 17:07:44 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 25 May 2010 17:07:44 +0000 X-ASF-Spam-Status: No, hits=-0.1 required=10.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of kenneth.s.brooks@chase.com designates 159.53.78.134 as permitted sender) Received: from [159.53.78.134] (HELO sz1.jpmchase.com) (159.53.78.134) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 25 May 2010 17:07:34 +0000 Received: from se1.svr.bankone.net (se1.svr.bankone.net [155.180.234.112]) by sz1.jpmchase.com (Switch-3.3.3mp/Switch-3.3.3mp) with ESMTP id o4PH7DO4009672 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL) for ; Tue, 25 May 2010 13:07:13 -0400 X-DKIM: Sendmail DKIM Filter v2.5.6 sz1.jpmchase.com o4PH7DO4009672 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=chase.com; s=smtpout; t=1274807233; bh=FLhE10G5JiY25epK+MqtFcVZgT2M34t+gcTD5e5CMWc=; h=From:To:Date:Subject:Message-ID:MIME-Version:Content-Type; b=q9cU VPt4PP9L6Yfj8XsHTFMd/DMJuLVM+VsQleGAgM4lNLyFA+/0ptJ0umWgnDqhV5OT3b5 uZz1piYW0/l3uP9rq8bIVZurPd6zoN5cb5gsZeEk6P4RNKLsdo9E9R9qjerwQ4Si1Rg b4kqepmPxjtY9VjuKfgftscoW7ipSuwqg= Received: from svr.us.jpmchase.net (imh1.svr.us.jpmchase.net [169.81.26.6]) by se1.svr.bankone.net (Switch-3.4.3/Switch-3.3.3mp) with ESMTP id o4PH7CWB008126 for ; Tue, 25 May 2010 13:07:12 -0400 Received: from ([169.69.182.48]) by imh1.svr.us.jpmchase.net with ESMTP id 5503235.25491296; Tue, 25 May 2010 13:06:53 -0400 Received: from HBCR002.exchad.jpmchase.net (169.69.182.44) by HUBR002.exchad.jpmchase.net (169.69.182.48) with Microsoft SMTP Server (TLS) id 8.2.247.2; Tue, 25 May 2010 13:06:59 -0400 Received: from EMASC204VS01.exchad.jpmchase.net ([169.254.2.99]) by HBCR002.exchad.jpmchase.net ([169.69.182.44]) with mapi; Tue, 25 May 2010 13:06:49 -0400 From: "Brooks, Kenneth S" To: HttpClient User Discussion Date: Tue, 25 May 2010 13:06:46 -0400 Subject: java.lang.IllegalStateException: Connection already open Thread-Topic: java.lang.IllegalStateException: Connection already open Thread-Index: Acr8LKZwViIcfS8wSl6sXE4s2Ww5Fw== Message-ID: <3346D37D0C89394485F205971AB9C6701A7C130038@EMASC204VS01.exchad.jpmchase.net> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-cr-puzzleid: {80AA3D96-B69D-495B-A02D-2B211ED0D6C0} x-cr-hashedpuzzle: PhE= ALcw AXsx Bghm BlPu CThG DR60 EE5V EdJu G9z1 Hw5E Isb/ Iy7B KLpd KbyO Ki1E;1;aAB0AHQAcABjAGwAaQBlAG4AdAAtAHUAcwBlAHIAcwBAAGgAYwAuAGEAcABhAGMAaABlAC4AbwByAGcA;Sosha1_v1;7;{80AA3D96-B69D-495B-A02D-2B211ED0D6C0};awBlAG4AbgBlAHQAaAAuAHMALgBiAHIAbwBvAGsAcwBAAGMAaABhAHMAZQAuAGMAbwBtAA==;Tue, 25 May 2010 17:06:46 GMT;agBhAHYAYQAuAGwAYQBuAGcALgBJAGwAbABlAGcAYQBsAFMAdABhAHQAZQBFAHgAYwBlAHAAdABpAG8AbgA6ACAAQwBvAG4AbgBlAGMAdABpAG8AbgAgAGEAbAByAGUAYQBkAHkAIABvAHAAZQBuAA== acceptlanguage: en-US MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="_000_3346D37D0C89394485F205971AB9C6701A7C130038EMASC204VS01e_" X-Virus-Checked: Checked by ClamAV on apache.org --_000_3346D37D0C89394485F205971AB9C6701A7C130038EMASC204VS01e_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable What would cause this: java=2Elang=2EIllegalStateException: Connection alr= eady open=0D=0A=0D=0ANever saw this when using httpclient 3=2Ex, recently u= pgraded to 4=2E0=2E1 and saw this a few times while running performance tes= ts=2E=0D=0A=0D=0AHere are all of the configurations used when constructing = the client:=0D=0A HttpParams httpParams =3D new BasicHttpParams();= =0D=0A=0D=0A HttpProtocolParams=2EsetVersion(httpParams, HttpVersion= =2EHTTP_1_1);=0D=0A=0D=0A ConnManagerParams=2EsetMaxTotalConnections= (httpParams, ClientPropertyLocator=2EgetInstance()=2EgetIntProperty(ClientP= ropertyLocator=2EHTTP_MAX_TOTAL_CONNECTIONS));=0D=0A ConnManagerPara= ms=2EsetMaxConnectionsPerRoute(httpParams, new ConnPerRouteBean(ClientPrope= rtyLocator=2EgetInstance()=2EgetIntProperty(ClientPropertyLocator=2EHTTP_MA= X_CONNECTIONS_PER_ROUTE)));=0D=0A=0D=0A HttpConnectionParams=2EsetCo= nnectionTimeout(httpParams, ClientPropertyLocator=2EgetInstance()=2EgetIntP= roperty(ClientPropertyLocator=2EHTTP_CONNECTION_TIMEOUT));=0D=0A Htt= pConnectionParams=2EsetStaleCheckingEnabled(httpParams, ClientPropertyLocat= or=2EgetInstance()=2EgetBooleanProperty(ClientPropertyLocator=2EHTTP_STALE_= CONNECTION_CHECK_ENABLED));=0D=0A HttpConnectionParams=2EsetSoTimeou= t(httpParams, ClientPropertyLocator=2EgetInstance()=2EgetIntProperty(Client= PropertyLocator=2EHTTP_SOCKET_TIMEOUT));=0D=0A HttpConnectionParams= =2EsetLinger(httpParams, ClientPropertyLocator=2EgetInstance()=2EgetIntProp= erty(ClientPropertyLocator=2EHTTP_SO_LINGER));=0D=0A HttpConnectionP= arams=2EsetTcpNoDelay(httpParams, ClientPropertyLocator=2EgetInstance()=2Eg= etBooleanProperty(ClientPropertyLocator=2EHTTP_TCP_NODELAY));=0D=0A=0D=0A = SchemeRegistry schemeRegistry =3D new SchemeRegistry();=0D=0A = schemeRegistry=2Eregister(new Scheme("http", PlainSocketFactory=2EgetSocket= Factory(), 80));=0D=0A=0D=0A ClientConnectionManager clientConnectio= nManager =3D new ThreadSafeClientConnManager(httpParams, schemeRegistry);= =0D=0A=0D=0A IdleConnectionMonitorThread idleConnectionMonitorThread= =3D new IdleConnectionMonitorThread(clientConnectionManager);=0D=0A = idleConnectionMonitorThread=2EsetIdleConnectionTimeout(ClientPropertyLocat= or=2EgetInstance()=2EgetIntProperty(ClientPropertyLocator=2EHTTP_IDLE_CONNE= CTION_TIMEOUT));=0D=0A idleConnectionMonitorThread=2EsetIdleConnecti= onCheckInterval(ClientPropertyLocator=2EgetInstance()=2EgetIntProperty(Clie= ntPropertyLocator=2EHTTP_IDLE_CONNECTION_CHECK_INTERVAL));=0D=0A idl= eConnectionMonitorThread=2Estart();=0D=0A=0D=0A httpClient =3D new D= efaultHttpClient(clientConnectionManager, httpParams);=0D=0A=0D=0A=0D=0A=0D= =0A=0D=0AThis transmission may contain information that is privileged,=0Aco= nfidential, legally privileged, and/or exempt from disclosure=0Aunder appli= cable law=2E If you are not the intended recipient, you=0Aare hereby notif= ied that any disclosure, copying, distribution, or=0Ause of the information= contained herein (including any reliance=0Athereon) is STRICTLY PROHIBITED= =2E Although this transmission and=0Aany attachments are believed to be fr= ee of any virus or other=0Adefect that might affect any computer system int= o which it is=0Areceived and opened, it is the responsibility of the recipi= ent to=0Aensure that it is virus free and no responsibility is accepted by= =0AJPMorgan Chase & Co=2E, its subsidiaries and affiliates, as=0Aapplicable= , for any loss or damage arising in any way from its use=2E=0A If you recei= ved this transmission in error, please immediately=0Acontact the sender and= destroy the material in its entirety,=0Awhether in electronic or hard copy= format=2E Thank you=2E --_000_3346D37D0C89394485F205971AB9C6701A7C130038EMASC204VS01e_--