[jboss-cvs] JBossAS SVN: r87017 - trunk/system/src/main/org/jboss/system/server/profileservice/repository/clustered.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Wed Apr 8 19:16:28 EDT 2009


Author: bstansberry at jboss.com
Date: 2009-04-08 19:16:28 -0400 (Wed, 08 Apr 2009)
New Revision: 87017

Modified:
   trunk/system/src/main/org/jboss/system/server/profileservice/repository/clustered/ClusteredDeploymentRepository.java
Log:
[JBAS-5552] Handle missing URIs

Modified: trunk/system/src/main/org/jboss/system/server/profileservice/repository/clustered/ClusteredDeploymentRepository.java
===================================================================
--- trunk/system/src/main/org/jboss/system/server/profileservice/repository/clustered/ClusteredDeploymentRepository.java	2009-04-08 22:51:12 UTC (rev 87016)
+++ trunk/system/src/main/org/jboss/system/server/profileservice/repository/clustered/ClusteredDeploymentRepository.java	2009-04-08 23:16:28 UTC (rev 87017)
@@ -719,8 +719,17 @@
       {
          for (URI uri : uris)
          {
-            VirtualFile vf = getCachedVirtualFile(uri);
-            map.put(vf.getName(), uri);
+            try
+            {
+               VirtualFile vf = getCachedVirtualFile(uri);
+               map.put(vf.getName(), uri);
+            }
+            catch (Exception e)
+            {
+               log.error("Problem accessing URI " + uri + " -- it will not be " +
+               		"used for profile " + getProfileKey() + ". Problem was " + 
+               		e.getLocalizedMessage());
+            }
          }
       }
       




More information about the jboss-cvs-commits mailing list