sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From asa...@apache.org
Subject svn commit: r1780567 - /sling/trunk/installer/core/src/main/java/org/apache/sling/installer/core/impl/tasks/RestartActiveBundlesTask.java
Date Fri, 27 Jan 2017 14:47:21 GMT
Author: asanso
Date: Fri Jan 27 14:47:21 2017
New Revision: 1780567

URL: http://svn.apache.org/viewvc?rev=1780567&view=rev
Log:
SLING-6491 - Make RestartActiveBundlesTask#execute more resilient. 

Modified:
    sling/trunk/installer/core/src/main/java/org/apache/sling/installer/core/impl/tasks/RestartActiveBundlesTask.java

Modified: sling/trunk/installer/core/src/main/java/org/apache/sling/installer/core/impl/tasks/RestartActiveBundlesTask.java
URL: http://svn.apache.org/viewvc/sling/trunk/installer/core/src/main/java/org/apache/sling/installer/core/impl/tasks/RestartActiveBundlesTask.java?rev=1780567&r1=1780566&r2=1780567&view=diff
==============================================================================
--- sling/trunk/installer/core/src/main/java/org/apache/sling/installer/core/impl/tasks/RestartActiveBundlesTask.java
(original)
+++ sling/trunk/installer/core/src/main/java/org/apache/sling/installer/core/impl/tasks/RestartActiveBundlesTask.java
Fri Jan 27 14:47:21 2017
@@ -78,6 +78,9 @@ public class RestartActiveBundlesTask ex
                         remove.add(id);
                     } catch (final BundleException e) {
                         getLogger().info("Unable to start bundle {} : {}", bundle, e.getMessage());
+                    } catch (final IllegalStateException ie) {
+                        getLogger().info("Unable to start bundle {} : {}", bundle, ie.getMessage());
+                        remove.add(id);
                     }
                 } else {
                     // bundle might be null(!)



Mime
View raw message