Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 58868 invoked from network); 3 Aug 2007 04:51:10 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 3 Aug 2007 04:51:10 -0000 Received: (qmail 72962 invoked by uid 500); 3 Aug 2007 04:51:10 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 72725 invoked by uid 500); 3 Aug 2007 04:51:09 -0000 Mailing-List: contact axis-cvs-help@ws.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-cvs@ws.apache.org Received: (qmail 72714 invoked by uid 500); 3 Aug 2007 04:51:09 -0000 Delivered-To: apmail-ws-axis2-cvs@ws.apache.org Received: (qmail 72648 invoked by uid 99); 3 Aug 2007 04:51:09 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 02 Aug 2007 21:51:09 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO eris.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Aug 2007 04:51:08 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id A1A491A981D; Thu, 2 Aug 2007 21:50:48 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r562329 - /webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/transport/http/ListingAgent.java Date: Fri, 03 Aug 2007 04:50:48 -0000 To: axis2-cvs@ws.apache.org From: deepal@apache.org X-Mailer: svnmailer-1.1.0 Message-Id: <20070803045048.A1A491A981D@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: deepal Date: Thu Aug 2 21:50:47 2007 New Revision: 562329 URL: http://svn.apache.org/viewvc?view=rev&rev=562329 Log: fixing AXIS2-3058 Modified: webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/transport/http/ListingAgent.java Modified: webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/transport/http/ListingAgent.java URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/transport/http/ListingAgent.java?view=diff&rev=562329&r1=562328&r2=562329 ============================================================================== --- webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/transport/http/ListingAgent.java (original) +++ webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/transport/http/ListingAgent.java Thu Aug 2 21:50:47 2007 @@ -110,8 +110,12 @@ ip = filePart.substring(ipindex + 2, filePart.length()); int seperatorIndex = ip.indexOf(":"); int slashIndex = ip.indexOf("/"); - String portstr = ip.substring(seperatorIndex + 1, - slashIndex); + String portstr; + if (seperatorIndex >= 0) { + portstr = ip.substring(seperatorIndex + 1, slashIndex); + } else { + portstr = "80"; + } try { addTransportListner(httpServletRequest.getScheme(), Integer.parseInt(portstr)); } catch (NumberFormatException e) { --------------------------------------------------------------------- To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org For additional commands, e-mail: axis-cvs-help@ws.apache.org