Return-Path: Mailing-List: contact commons-httpclient-dev-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list commons-httpclient-dev@jakarta.apache.org Received: (qmail 76367 invoked from network); 11 Jul 2003 16:55:52 -0000 Received: from mail.bearingpoint.com (HELO KCCXOEX10.corp.kpmgconsulting.com) (57.80.136.22) by daedalus.apache.org with SMTP; 11 Jul 2003 16:55:52 -0000 Received: from kccxoex06.corp.kpmgconsulting.com ([10.98.3.31]) by KCCXOEX10.corp.kpmgconsulting.com with Microsoft SMTPSVC(5.0.2195.5329); Fri, 11 Jul 2003 16:57:52 +0000 x-mimeole: Produced By Microsoft Exchange V6.0.6249.0 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Subject: RE: SocketException Date: Fri, 11 Jul 2003 17:55:54 +0100 Message-ID: <825BF35A92B3F0479CC164ECBBE9376E0DE5B9@kccxoex06.corp.kpmgconsulting.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: SocketException Thread-Index: AcNHy5Z88grGrxNdQiSk8Uy8nm5ZaAAAdtAg From: "Kalnichevski, Oleg" To: "Commons HttpClient Project" X-OriginalArrivalTime: 11 Jul 2003 16:57:52.0359 (UTC) FILETIME=[9107EF70:01C347CD] X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N It looks like the problem occurs inside = org.apache.commons.httpclient.HttpConnection.tunnelCreated() method when = HttpClient attempts to establish a secure tunnel via proxy. It would be = interesting to find out if there are any log entries on the proxy side.=20 Can you try to execute your application on Sun JDK 1.4 for a change? I = have a slight suspicion that the problem may be somehow related to IBM = implementation of JSSE Oleg -----Original Message----- From: Ramanan nr [mailto:ramanannr@yahoo.com] Sent: Freitag, 11. Juli 2003 18:43 To: Commons HttpClient Project Subject: RE: SocketException Oleg, My log after enabling the logging for HttpClient follows. Looks like the connection is getting closed after the tunnelcreation. maybe my proxy is the culprit. I am yet to get my proxy log. does the log look fine from the httpclient prespective? =20 DEBUG 07/11, 12:12:32 org.apache.commons.httpclient.HttpClient. [104] - Java version: 1.3.1 DEBUG 07/11, 12:12:32 org.apache.commons.httpclient.HttpClient. [105] - Java vendor: IBM Corporation DEBUG 07/11, 12:12:32 org.apache.commons.httpclient.HttpClient. [106] - Java class path: myclasspath DEBUG 07/11, 12:12:32 org.apache.commons.httpclient.HttpClient. [107] - Operating system name: Windows NT DEBUG 07/11, 12:12:32 org.apache.commons.httpclient.HttpClient. [108] - Operating system architecture: x86 DEBUG 07/11, 12:12:32 org.apache.commons.httpclient.HttpClient. [109] - Operating system version: 4.0 DEBUG 07/11, 12:12:32 org.apache.commons.httpclient.HttpClient. [114] - SUN 1.2: SUN (DSA key/parameter generation; DSA signing; SHA-1, MD5 digests; SecureRandom; X.509 certificates; JKS keystore) DEBUG 07/11, 12:12:32 org.apache.commons.httpclient.HttpClient. [114] - IBMJCE 1.2: IBMJCE Provider implements the following: HMAC-SHA1, MD2, MD5, MARS, SHA, MD2withRSA, MD5withRSA, SHA1withRSA, RSA, SHA1withDSA, RC2, RC4, Seal)implements the following: <> DEBUG 07/11, 12:12:32 org.apache.commons.httpclient.HttpClient. [114] - JSSE 1.0: IBM JSSE provider DEBUG 07/11, 12:12:32 org.apache.commons.httpclient.methods.GetMethod. [184] - enter GetMethod(String) DEBUG 07/11, 12:12:32 org.apache.commons.httpclient.methods.EntityEnclosingMethod.setRequestBod= y [389] - enter EntityEnclosingMethod.setRequestBody(String) DEBUG 07/11, 12:12:32 org.apache.commons.httpclient.methods.PostMethod.clearRequestBody [215] - enter PostMethod.clearRequestBody() DEBUG 07/11, 12:12:32 org.apache.commons.httpclient.methods.EntityEnclosingMethod.clearRequestB= ody [212] - enter EntityEnclosingMethod.clearRequestBody() DEBUG 07/11, 12:12:32 org.apache.commons.httpclient.methods.EntityEnclosingMethod.setRequestCon= tentLength [295] - enter EntityEnclosingMethod.setRequestContentLength(int) DEBUG 07/11, 12:12:32 org.apache.commons.httpclient.HttpState.setProxyCredentials [577] - enter HttpState.setProxyCredentials(String, String, Credentials DEBUG 07/11, 12:12:32 org.apache.commons.httpclient.HttpConnection. [273] - Creating connection for www.ups.com via proxy using protocol https:443 DEBUG 07/11, 12:12:32 org.apache.commons.httpclient.HttpConnection.getSoTimeout [618] - HttpConnection.getSoTimeout() DEBUG 07/11, 12:12:32 org.apache.commons.httpclient.HttpConnection.setSoTimeout [601] - HttpConnection.setSoTimeout(10000) DEBUG 07/11, 12:12:32 org.apache.commons.httpclient.HttpConnection.getSoTimeout [618] - HttpConnection.getSoTimeout() DEBUG 07/11, 12:12:32 org.apache.commons.httpclient.HttpClient.executeMethod [498] - enter HttpClient.executeMethod(HttpMethod) DEBUG 07/11, 12:12:32 org.apache.commons.httpclient.HttpClient.executeMethod [549] - enter HttpClient.executeMethod(HostConfiguration,HttpMethod,HttpState) DEBUG 07/11, 12:12:32 org.apache.commons.httpclient.HttpConnection.setSoTimeout [601] - HttpConnection.setSoTimeout(0) DEBUG 07/11, 12:12:32 org.apache.commons.httpclient.HttpConnection.open [644] - enter HttpConnection.open() DEBUG 07/11, 12:12:33 org.apache.commons.httpclient.ConnectMethod. [92] - enter ConnectMethod(HttpMethod) DEBUG 07/11, 12:12:33 org.apache.commons.httpclient.ConnectMethod.execute [200] - enter ConnectMethod.execute(HttpState, HttpConnection) DEBUG 07/11, 12:12:33 org.apache.commons.httpclient.HttpMethodBase.execute [1001] - enter HttpMethodBase.execute(HttpState, HttpConnection) DEBUG 07/11, 12:12:33 org.apache.commons.httpclient.HttpMethodBase.execute [1014] - Preemptively sending default basic credentials DEBUG 07/11, 12:12:33 org.apache.commons.httpclient.auth.HttpAuthenticator.authenticateDefault [242] - enter HttpAuthenticator.authenticateDefault(HttpMethod, HttpConnection, HttpState) DEBUG 07/11, 12:12:33 org.apache.commons.httpclient.HttpState.getCredentials [493] - enter HttpState.getCredentials(String, String DEBUG 07/11, 12:12:33 org.apache.commons.httpclient.auth.HttpAuthenticator.authenticateProxyDef= ault [271] - enter HttpAuthenticator.authenticateProxyDefault(HttpMethod, HttpState) DEBUG 07/11, 12:12:33 org.apache.commons.httpclient.HttpState.getProxyCredentials [619] - enter HttpState.getCredentials(String, String DEBUG 07/11, 12:12:33 org.apache.commons.httpclient.auth.BasicScheme.authenticate [153] - enter BasicScheme.authenticate(UsernamePasswordCredentials) DEBUG 07/11, 12:12:33 org.apache.commons.httpclient.HttpMethodBase.execute [1022] - Default basic proxy credentials applied DEBUG 07/11, 12:12:33 org.apache.commons.httpclient.HttpMethodBase.execute [1040] - Execute loop try 1 DEBUG 07/11, 12:12:33 org.apache.commons.httpclient.HttpMethodBase.processRequest [2552] - enter HttpMethodBase.processRequest(HttpState, HttpConnection) DEBUG 07/11, 12:12:33 org.apache.commons.httpclient.HttpMethodBase.processRequest [2564] - Attempt number 1 to process request DEBUG 07/11, 12:12:33 org.apache.commons.httpclient.HttpMethodBase.writeRequest [2210] - enter HttpMethodBase.writeRequest(HttpState, HttpConnection) DEBUG 07/11, 12:12:33 org.apache.commons.httpclient.HttpConnection.printLine [1034] - enter HttpConnection.printLine(String) DEBUG 07/11, 12:12:33 org.apache.commons.httpclient.HttpConnection.writeLine [988] - enter HttpConnection.writeLine(byte[]) DEBUG 07/11, 12:12:33 org.apache.commons.httpclient.HttpConnection.write [927] - enter HttpConnection.write(byte[]) DEBUG 07/11, 12:12:33 org.apache.commons.httpclient.HttpConnection.write [949] - enter HttpConnection.write(byte[], int, int) DEBUG 07/11, 12:12:33 org.apache.commons.httpclient.HttpConnection.writeLine [1003] - enter HttpConnection.writeLine() DEBUG 07/11, 12:12:33 org.apache.commons.httpclient.HttpConnection.write [927] - enter HttpConnection.write(byte[]) DEBUG 07/11, 12:12:33 org.apache.commons.httpclient.HttpConnection.write [949] - enter HttpConnection.write(byte[], int, int) DEBUG 07/11, 12:12:33 org.apache.commons.httpclient.Wire.wire [119] - >> "CONNECT www.xyz.com:443 HTTP/1.1" DEBUG 07/11, 12:12:33 org.apache.commons.httpclient.HttpMethodBase.writeRequestHeaders [2320] - enter HttpMethodBase.writeRequestHeaders(HttpState,HttpConnection) DEBUG 07/11, 12:12:33 org.apache.commons.httpclient.ConnectMethod.addRequestHeaders [180] - enter ConnectMethod.addRequestHeaders(HttpState, HttpConnection) DEBUG 07/11, 12:12:33 org.apache.commons.httpclient.HttpMethodBase.addUserAgentRequestHeader [1610] - enter HttpMethodBase.addUserAgentRequestHeaders(HttpState, HttpConnection) DEBUG 07/11, 12:12:34 org.apache.commons.httpclient.HttpMethodBase.addHostRequestHeader [1462] - enter HttpMethodBase.addHostRequestHeader(HttpState, HttpConnection) DEBUG 07/11, 12:12:34 org.apache.commons.httpclient.HttpMethodBase.addHostRequestHeader [1492] - Adding Host request header DEBUG 07/11, 12:12:34 org.apache.commons.httpclient.HttpMethodBase.addProxyAuthorizationRequest= Header [1517] - enter HttpMethodBase.addProxyAuthorizationRequestHeader(HttpState, HttpConnection) DEBUG 07/11, 12:12:34 org.apache.commons.httpclient.HttpMethodBase.addProxyConnectionHeader [1552] - enter HttpMethodBase.addProxyConnectionHeader(HttpState, HttpConnection) DEBUG 07/11, 12:12:34 org.apache.commons.httpclient.Wire.wire [105] - >> "Proxy-Authorization: Basic cnJhbmdhY2hhcmk6cmFtYW5hbm5y[\r][\n]" DEBUG 07/11, 12:12:34 org.apache.commons.httpclient.HttpConnection.print [1018] - enter HttpConnection.print(String) DEBUG 07/11, 12:12:34 org.apache.commons.httpclient.HttpConnection.write [927] - enter HttpConnection.write(byte[]) DEBUG 07/11, 12:12:34 org.apache.commons.httpclient.HttpConnection.write [949] - enter HttpConnection.write(byte[], int, int) DEBUG 07/11, 12:12:34 org.apache.commons.httpclient.Wire.wire [105] - >> "User-Agent: Jakarta Commons-HttpClient/2.0beta2[\r][\n]" DEBUG 07/11, 12:12:34 org.apache.commons.httpclient.HttpConnection.print [1018] - enter HttpConnection.print(String) DEBUG 07/11, 12:12:34 org.apache.commons.httpclient.HttpConnection.write [927] - enter HttpConnection.write(byte[]) DEBUG 07/11, 12:12:34 org.apache.commons.httpclient.HttpConnection.write [949] - enter HttpConnection.write(byte[], int, int) DEBUG 07/11, 12:12:34 org.apache.commons.httpclient.Wire.wire [105] - >> "Host: www.xyz.com[\r][\n]" DEBUG 07/11, 12:12:34 org.apache.commons.httpclient.HttpConnection.print [1018] - enter HttpConnection.print(String) DEBUG 07/11, 12:12:34 org.apache.commons.httpclient.HttpConnection.write [927] - enter HttpConnection.write(byte[]) DEBUG 07/11, 12:12:34 org.apache.commons.httpclient.HttpConnection.write [949] - enter HttpConnection.write(byte[], int, int) DEBUG 07/11, 12:12:34 org.apache.commons.httpclient.Wire.wire [105] - >> "Proxy-Connection: Keep-Alive[\r][\n]" DEBUG 07/11, 12:12:34 org.apache.commons.httpclient.HttpConnection.print [1018] - enter HttpConnection.print(String) DEBUG 07/11, 12:12:34 org.apache.commons.httpclient.HttpConnection.write [927] - enter HttpConnection.write(byte[]) DEBUG 07/11, 12:12:34 org.apache.commons.httpclient.HttpConnection.write [949] - enter HttpConnection.write(byte[], int, int) DEBUG 07/11, 12:12:34 org.apache.commons.httpclient.HttpConnection.writeLine [1003] - enter HttpConnection.writeLine() DEBUG 07/11, 12:12:34 org.apache.commons.httpclient.HttpConnection.write [927] - enter HttpConnection.write(byte[]) DEBUG 07/11, 12:12:34 org.apache.commons.httpclient.HttpConnection.write [949] - enter HttpConnection.write(byte[], int, int) DEBUG 07/11, 12:12:34 org.apache.commons.httpclient.HttpConnection.flushRequestOutputStream [780] - enter HttpConnection.flushRequestOutputStream() DEBUG 07/11, 12:12:34 org.apache.commons.httpclient.Wire.wire [105] - >> "[\r][\n]" DEBUG 07/11, 12:12:34 org.apache.commons.httpclient.HttpConnection.flushRequestOutputStream [780] - enter HttpConnection.flushRequestOutputStream() DEBUG 07/11, 12:12:34 org.apache.commons.httpclient.HttpMethodBase.readResponse [1928] - enter HttpMethodBase.readResponse(HttpState, HttpConnection) DEBUG 07/11, 12:12:34 org.apache.commons.httpclient.HttpMethodBase.readStatusLine [2129] - enter HttpMethodBase.readStatusLine(HttpState, HttpConnection) DEBUG 07/11, 12:12:34 org.apache.commons.httpclient.HttpConnection.readLine [1062] - enter HttpConnection.readLine() DEBUG 07/11, 12:12:34 org.apache.commons.httpclient.HttpParser.readLine [134] - enter HttpParser.readLine() DEBUG 07/11, 12:12:34 org.apache.commons.httpclient.HttpParser.readRawLine [105] - enter HttpParser.readRawLine() DEBUG 07/11, 12:12:38 org.apache.commons.httpclient.Wire.wire [105] - << "HTTP/1.0 200 Connection established[\r][\n]" DEBUG 07/11, 12:12:38 org.apache.commons.httpclient.HttpMethodBase.readResponseHeaders [2092] - enter HttpMethodBase.readResponseHeaders(HttpState,HttpConnection) DEBUG 07/11, 12:12:38 org.apache.commons.httpclient.HttpConnection.getResponseInputStream [855] - enter HttpConnection.getResponseInputStream() DEBUG 07/11, 12:12:38 org.apache.commons.httpclient.HttpParser.parseHeaders [166] - enter HeaderParser.parseHeaders(HttpConnection, HeaderGroup) DEBUG 07/11, 12:12:38 org.apache.commons.httpclient.HttpParser.readLine [134] - enter HttpParser.readLine() DEBUG 07/11, 12:12:38 org.apache.commons.httpclient.HttpParser.readRawLine [105] - enter HttpParser.readRawLine() DEBUG 07/11, 12:12:38 org.apache.commons.httpclient.HttpParser.readLine [134] - enter HttpParser.readLine() DEBUG 07/11, 12:12:38 org.apache.commons.httpclient.HttpParser.readRawLine [105] - enter HttpParser.readRawLine() DEBUG 07/11, 12:12:38 org.apache.commons.httpclient.Wire.wire [105] - << "Proxy-agent: Netscape-Proxy/3.52[\r][\n]" DEBUG 07/11, 12:12:38 org.apache.commons.httpclient.HttpMethodBase.processResponseHeaders [1806] - enter HttpMethodBase.processResponseHeaders(HttpState, HttpConnection) DEBUG 07/11, 12:12:38 org.apache.commons.httpclient.HttpMethodBase.readResponseBody [1979] - enter HttpMethodBase.readResponseBody(HttpState, HttpConnection) DEBUG 07/11, 12:12:38 org.apache.commons.httpclient.HttpMethodBase.readResponseBody [2013] - enter HttpMethodBase.readResponseBody(HttpState, HttpConnection) DEBUG 07/11, 12:12:38 org.apache.commons.httpclient.HttpConnection.getResponseInputStream [855] - enter HttpConnection.getResponseInputStream() DEBUG 07/11, 12:12:38 org.apache.commons.httpclient.HttpMethodBase.canResponseHaveBody [2394] - enter HttpMethodBase.canResponseHaveBody(int) DEBUG 07/11, 12:12:38 org.apache.commons.httpclient.ConnectMethod.execute [202] - CONNECT status code 200 DEBUG 07/11, 12:12:38 org.apache.commons.httpclient.HttpConnection.tunnelCreated [734] - enter HttpConnection.tunnelCreated() DEBUG 07/11, 12:12:41 com.mypackage.myclass.mymethod [159] - IOException java.net.SocketException: Socket closed at java.net.PlainSocketImpl.socketGetOption(Native Method) at java.net.PlainSocketImpl.getOption(PlainSocketImpl.java:214) at java.net.Socket.getSendBufferSize(Socket.java:548) at org.apache.commons.httpclient.HttpConnection.tunnelCreated(HttpConnection= .java:756) at org.apache.commons.httpclient.ConnectMethod.execute(ConnectMethod.java:20= 4) at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:63= 8) at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:50= 0) at com.mypackage.myclass.mymethod(myclass.java:140) =09 --- "Kalnichevski, Oleg" wrote: > Can you also enable debug logging for HttpClient > classes by doing the following? >=20 > log4j.logger.org.apache.commons.httpclient=3DDEBUG, > YOUR_APPENDER >=20 > It may help shed some light on this issue >=20 > Oleg >=20 >=20 > --------------------------------------------------------------------- > To unsubscribe, e-mail: > commons-httpclient-dev-unsubscribe@jakarta.apache.org > For additional commands, e-mail: > commons-httpclient-dev-help@jakarta.apache.org >=20 __________________________________ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com --------------------------------------------------------------------- To unsubscribe, e-mail: = commons-httpclient-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: = commons-httpclient-dev-help@jakarta.apache.org