geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ammul...@apache.org
Subject svn commit: r209835 - /geronimo/trunk/modules/system/src/java/org/apache/geronimo/system/main/ProgressBarStartupMonitor.java
Date Fri, 08 Jul 2005 16:12:41 GMT
Author: ammulder
Date: Fri Jul  8 09:12:39 2005
New Revision: 209835

URL: http://svn.apache.org/viewcvs?rev=209835&view=rev
Log:
Less vulnerable to startup problems

Modified:
    geronimo/trunk/modules/system/src/java/org/apache/geronimo/system/main/ProgressBarStartupMonitor.java

Modified: geronimo/trunk/modules/system/src/java/org/apache/geronimo/system/main/ProgressBarStartupMonitor.java
URL: http://svn.apache.org/viewcvs/geronimo/trunk/modules/system/src/java/org/apache/geronimo/system/main/ProgressBarStartupMonitor.java?rev=209835&r1=209834&r2=209835&view=diff
==============================================================================
--- geronimo/trunk/modules/system/src/java/org/apache/geronimo/system/main/ProgressBarStartupMonitor.java
(original)
+++ geronimo/trunk/modules/system/src/java/org/apache/geronimo/system/main/ProgressBarStartupMonitor.java
Fri Jul  8 09:12:39 2005
@@ -172,17 +172,21 @@
                 }
                 for (int i = 0; i < list.size(); i++) {
                     GAttributeInfo att = (GAttributeInfo) list.get(i);
-                    InetSocketAddress addr = (InetSocketAddress) kernel.getAttribute(name,
att.getName());
-                    if(addr == null) {
-                        continue;
+                    try {
+                        InetSocketAddress addr = (InetSocketAddress) kernel.getAttribute(name,
att.getName());
+                        if(addr == null) {
+                            continue;
+                        }
+                        String attName = info.getName();
+                        if(list.size() > 1) {
+                            attName += " "+decamelize(att.getName());
+                        } else if(info.getAttribute("name") != null) {
+                            attName += " "+kernel.getAttribute(name, "name");
+                        }
+                        ports.add(new AddressHolder(attName, addr));
+                    } catch (IllegalStateException e) {
+                        // We weren't able to load a port for this service -- that's a bummer
                     }
-                    String attName = info.getName();
-                    if(list.size() > 1) {
-                        attName += " "+decamelize(att.getName());
-                    } else if(info.getAttribute("name") != null) {
-                        attName += " "+kernel.getAttribute(name, "name");
-                    }
-                    ports.add(new AddressHolder(attName, addr));
                 }
             }
             Collections.sort(ports);



Mime
View raw message