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 5D93791F6 for ; Tue, 14 Feb 2012 12:00:20 +0000 (UTC) Received: (qmail 50475 invoked by uid 500); 14 Feb 2012 11:54:51 -0000 Delivered-To: apmail-hc-dev-archive@hc.apache.org Received: (qmail 36926 invoked by uid 500); 14 Feb 2012 11:54:21 -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 12397 invoked by uid 99); 14 Feb 2012 11:37:22 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 14 Feb 2012 11:37:22 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 14 Feb 2012 11:37:20 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 7ECB01B623D for ; Tue, 14 Feb 2012 11:36:59 +0000 (UTC) Date: Tue, 14 Feb 2012 11:36:59 +0000 (UTC) From: "martial sauvette (Created) (JIRA)" To: dev@hc.apache.org Message-ID: <489970319.36003.1329219419520.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Created] (HTTPCLIENT-1166) URIUtils.extractHost(...) throws a NumberFormatException line 310 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org URIUtils.extractHost(...) throws a NumberFormatException line 310 ----------------------------------------------------------------- Key: HTTPCLIENT-1166 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-1166 Project: HttpComponents HttpClient Issue Type: Bug Components: HttpClient Affects Versions: 4.1.2 Environment: Linux Reporter: martial sauvette regarding this page : http://hc.apache.org/httpcomponents-client-dev/httpclient/clover/org/apache/http/client/utils/URIUtils.html 305 // Extract the port suffix, if present 306 if (host != null) { 307 int colon = host.indexOf(':'); 308 if (colon >= 0) { 309 if (colon+1 < host.length()) { 310 port = Integer.parseInt(host.substring(colon+1)); 311 } 312 host = host.substring(0,colon); 313 } 314 } resolving the port throw a NumberFormatException java.lang.NumberFormatException: For input string: "8080;jsessionid=9E9EDA0B6E1CDD499A0A15C4A8F212D8" at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48) at java.lang.Integer.parseInt(Integer.java:458) at java.lang.Integer.parseInt(Integer.java:499) at org.apache.http.client.utils.URIUtils.extractHost(URIUtils.java:310) at org.apache.http.impl.client.AbstractHttpClient.determineTarget(AbstractHttpClient.java:764) at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:754) at org.tagbrowser.api.TagBrowser.request(TagBrowser.java:109) another case of this problem canbe found hier : https://gitorious.org/yacy/rc1/commit/8b0920b0b5eb67ae17eec24c1bf3a059543cb6e8/diffs -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa 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