geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From xuhaih...@apache.org
Subject svn commit: r784694 - /geronimo/server/trunk/plugins/corba/geronimo-yoko/src/main/java/org/apache/geronimo/yoko/ORBConfigAdapter.java
Date Mon, 15 Jun 2009 08:55:56 GMT
Author: xuhaihong
Date: Mon Jun 15 08:55:56 2009
New Revision: 784694

URL: http://svn.apache.org/viewvc?rev=784694&view=rev
Log:
GERONIMO-4686 No clear hints in startup error when 1050 port is already in use. (Patch from
Shawn Jiang)

Modified:
    geronimo/server/trunk/plugins/corba/geronimo-yoko/src/main/java/org/apache/geronimo/yoko/ORBConfigAdapter.java

Modified: geronimo/server/trunk/plugins/corba/geronimo-yoko/src/main/java/org/apache/geronimo/yoko/ORBConfigAdapter.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/plugins/corba/geronimo-yoko/src/main/java/org/apache/geronimo/yoko/ORBConfigAdapter.java?rev=784694&r1=784693&r2=784694&view=diff
==============================================================================
--- geronimo/server/trunk/plugins/corba/geronimo-yoko/src/main/java/org/apache/geronimo/yoko/ORBConfigAdapter.java
(original)
+++ geronimo/server/trunk/plugins/corba/geronimo-yoko/src/main/java/org/apache/geronimo/yoko/ORBConfigAdapter.java
Mon Jun 15 08:55:56 2009
@@ -193,7 +193,13 @@
             // the service instance is returned as an opaque object.
             return service;
         } catch (TransientServiceException e) {
-            throw new ConfigException("Error starting transient name service", e);
+            
+            if (e.getCause() != null && e.getCause().getCause() != null
+                    && e.getCause().getCause() instanceof java.net.BindException)
{
+                
+                throw new ConfigException("Error starting transient name service, Port already
in use:" + port, e);
+
+            } else throw new ConfigException("Error starting transient name service", e);
         }
     }
 



Mime
View raw message