Author: markt Date: Sun Mar 9 10:31:48 2008 New Revision: 635304 URL: http://svn.apache.org/viewvc?rev=635304&view=rev Log: Fix bug 44558. Include address in bind exception message.
Modified: tomcat/trunk/java/org/apache/tomcat/util/net/JIoEndpoint.java Modified: tomcat/trunk/java/org/apache/tomcat/util/net/JIoEndpoint.java URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/tomcat/util/net/JIoEndpoint.java?rev=635304&r1=635303&r2=635304&view=diff ============================================================================== --- tomcat/trunk/java/org/apache/tomcat/util/net/JIoEndpoint.java (original) +++ tomcat/trunk/java/org/apache/tomcat/util/net/JIoEndpoint.java Sun Mar 9 10:31:48 2008 @@ -498,7 +498,11 @@ serverSocket = serverSocketFactory.createSocket(port, backlog, address); } } catch (BindException be) { - throw new BindException(be.getMessage() + ":" + port); + if (address == null) + throw new BindException(be.getMessage() + "<null>:" + port); + else + throw new BindException(be.getMessage() + " " + + address.toString() + ":" + port); } } //if( serverTimeout >= 0 ) --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]