Author: remy.maucherat(a)jboss.com
Date: 2008-03-11 08:24:32 -0400 (Tue, 11 Mar 2008)
New Revision: 492
Modified:
trunk/java/org/apache/tomcat/util/net/JIoEndpoint.java
trunk/webapps/docs/changelog.xml
Log:
- Improve bind exception message with address.
Modified: trunk/java/org/apache/tomcat/util/net/JIoEndpoint.java
===================================================================
--- trunk/java/org/apache/tomcat/util/net/JIoEndpoint.java 2008-03-11 12:23:36 UTC (rev
491)
+++ trunk/java/org/apache/tomcat/util/net/JIoEndpoint.java 2008-03-11 12:24:32 UTC (rev
492)
@@ -498,7 +498,12 @@
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 )
Modified: trunk/webapps/docs/changelog.xml
===================================================================
--- trunk/webapps/docs/changelog.xml 2008-03-11 12:23:36 UTC (rev 491)
+++ trunk/webapps/docs/changelog.xml 2008-03-11 12:24:32 UTC (rev 492)
@@ -190,6 +190,9 @@
<fix>
Simplify response reset. (remm)
</fix>
+ <fix>
+ <bug>44558</bug>: Include address in bind exception message. (markt)
+ </fix>
</changelog>
</subsection>
<subsection name="Jasper">
Show replies by date