Return-Path: Delivered-To: apmail-jakarta-httpclient-user-archive@www.apache.org Received: (qmail 7664 invoked from network); 23 Jun 2006 18:52:29 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 23 Jun 2006 18:52:29 -0000 Received: (qmail 64148 invoked by uid 500); 23 Jun 2006 18:52:28 -0000 Delivered-To: apmail-jakarta-httpclient-user-archive@jakarta.apache.org Received: (qmail 64128 invoked by uid 500); 23 Jun 2006 18:52:28 -0000 Mailing-List: contact httpclient-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: "HttpClient User Discussion" Reply-To: "HttpClient User Discussion" Delivered-To: mailing list httpclient-user@jakarta.apache.org Received: (qmail 64117 invoked by uid 99); 23 Jun 2006 18:52:27 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 23 Jun 2006 11:52:27 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [212.227.126.177] (HELO moutng.kundenserver.de) (212.227.126.177) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 23 Jun 2006 11:52:27 -0700 Received: from [85.180.10.16] (helo=[85.180.10.16]) by mrelayeu.kundenserver.de (node=mrelayeu5) with ESMTP (Nemesis), id 0ML25U-1FtqlA1nPO-0002Q9; Fri, 23 Jun 2006 20:52:04 +0200 Message-ID: <449C38C4.9030709@dubioso.net> Date: Fri, 23 Jun 2006 20:53:56 +0200 From: Roland Weber User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.13) Gecko/20060428 X-Accept-Language: en-us, en MIME-Version: 1.0 To: HttpClient User Discussion Subject: Re: Operation timed out: connect:could be due to invalid address References: <449AABE6.70905@camsys.com> In-Reply-To: <449AABE6.70905@camsys.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Provags-ID: kundenserver.de abuse@kundenserver.de login:4601b1d39ab4ddfc21c613822e406392 X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hi Eric, > [6/21/06 11:21:55:467 EDT] 215da05f SystemOut O 2006-06-21 > 11:21:55,452 DEBUG [Servlet.Engine.Transports : 0] > httpclient.HttpMethodDirector (HttpMethodDirector.java:442) - > Operation timed out: connect:could be due to invalid address > java.net.SocketException: Operation timed out: connect:could be due to > invalid address An important part of an exception is the stack trace. Please post it. > We have ruled out the possibility that the customer's server is unable > to access the remote server by asking our customer to issue a POST > request using a web browser from the server machine -- the response was > successful. Have you verified that HTTPS for HttpClient is correctly set up in the customer's application server? Did they use HTTPS for issuing the POST request? > Has anyone seen this symptom before? Absolutely *zero* log data from > the "httpclient.wire" loggers, not even a connection attempt? The wire logger will only print what is sent over or received through a connection. If the connect fails, nothing is sent. Please enable the context logger and post the results: http://jakarta.apache.org/commons/httpclient/logging.html > Here is the extent of what we are doing with HttpClient, I have added > comments specific to this email with "//+++": > > HttpClientParams httpClientParams = new HttpClientParams(); > httpClientParams.setSoTimeout(HTTP_SOCKET_TIMEOUT_MILLIS); > //+++ HTTP_SOCKET_TIMEOUT_MILLIS is set to 60000 > HttpClient client = new HttpClient(httpClientParams); > > PostMethod post = new PostMethod(targetUrl); > //+++ targetUrl is the https:// URL we are accessing > post.addParameters(parameters); > //+++ parameters is a NameValuePair[] with about eight variables You are creating a new HttpClient and implicit SimpleConnectionManager for every request. If you feel that is the right thing to do, you have to make sure that the connection manager does not try to keep the connections alive: http://issues.apache.org/jira/browse/HTTPCLIENT-420 One way to achieve this is to send a "Connection: close" header. cheers, Roland --------------------------------------------------------------------- To unsubscribe, e-mail: httpclient-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: httpclient-user-help@jakarta.apache.org