geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ga...@apache.org
Subject svn commit: r785068 - /geronimo/server/branches/2.1/plugins/corba/geronimo-yoko/src/main/java/org/apache/geronimo/yoko/ORBConfigAdapter.java
Date Tue, 16 Jun 2009 04:26:24 GMT
Author: gawor
Date: Tue Jun 16 04:26:23 2009
New Revision: 785068

URL: http://svn.apache.org/viewvc?rev=785068&view=rev
Log:
improve error message for naming service startup problems. Patch from Shawn Jiang (GERONIMO-4686)

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

Modified: geronimo/server/branches/2.1/plugins/corba/geronimo-yoko/src/main/java/org/apache/geronimo/yoko/ORBConfigAdapter.java
URL: http://svn.apache.org/viewvc/geronimo/server/branches/2.1/plugins/corba/geronimo-yoko/src/main/java/org/apache/geronimo/yoko/ORBConfigAdapter.java?rev=785068&r1=785067&r2=785068&view=diff
==============================================================================
--- geronimo/server/branches/2.1/plugins/corba/geronimo-yoko/src/main/java/org/apache/geronimo/yoko/ORBConfigAdapter.java
(original)
+++ geronimo/server/branches/2.1/plugins/corba/geronimo-yoko/src/main/java/org/apache/geronimo/yoko/ORBConfigAdapter.java
Tue Jun 16 04:26:23 2009
@@ -193,13 +193,7 @@
             // the service instance is returned as an opaque object.
             return service;
         } catch (TransientServiceException 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);
+            throw new ConfigException("Error starting transient name service on port " +
port, e);
         }
     }
 



Mime
View raw message