[jboss-remoting-commits] JBoss Remoting SVN: r4059 - remoting2/branches/2.x/src/main/org/jboss/remoting/transport.

jboss-remoting-commits at lists.jboss.org jboss-remoting-commits at lists.jboss.org
Thu Apr 24 02:56:25 EDT 2008


Author: ron.sigal at jboss.com
Date: 2008-04-24 02:56:24 -0400 (Thu, 24 Apr 2008)
New Revision: 4059

Modified:
   remoting2/branches/2.x/src/main/org/jboss/remoting/transport/PortUtil.java
Log:
JBREM-865: Logs more informative message if IPv6 is not available.

Modified: remoting2/branches/2.x/src/main/org/jboss/remoting/transport/PortUtil.java
===================================================================
--- remoting2/branches/2.x/src/main/org/jboss/remoting/transport/PortUtil.java	2008-04-24 06:38:18 UTC (rev 4058)
+++ remoting2/branches/2.x/src/main/org/jboss/remoting/transport/PortUtil.java	2008-04-24 06:56:24 UTC (rev 4059)
@@ -90,7 +90,14 @@
       }
       catch (IOException e)
       {
-         log.debug("port " + p + " already in use.  Will try another.", e.getCause());
+         if ("Protocol family unavailable".equalsIgnoreCase(e.getMessage()))
+         {
+            log.debug("perhaps IPv6 is not available: " + e.getMessage());
+         }
+         else
+         {
+            log.debug("port " + p + " already in use.  Will try another.", e.getCause());
+         }
       }
       finally
       {




More information about the jboss-remoting-commits mailing list