karaf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gno...@apache.org
Subject [karaf] 02/02: Catch all Throwable in order to more easily debug possible problems
Date Thu, 18 Jan 2018 16:12:20 GMT
This is an automated email from the ASF dual-hosted git repository.

gnodet pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/karaf.git

commit 4078698e8dcde80c5c4dc0c1c492374c7db0ca98
Author: Guillaume Nodet <gnodet@gmail.com>
AuthorDate: Thu Jan 18 17:11:51 2018 +0100

    Catch all Throwable in order to more easily debug possible problems
---
 util/src/main/java/org/apache/karaf/util/tracker/BaseActivator.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/util/src/main/java/org/apache/karaf/util/tracker/BaseActivator.java b/util/src/main/java/org/apache/karaf/util/tracker/BaseActivator.java
index 63b2622..c2c7204 100644
--- a/util/src/main/java/org/apache/karaf/util/tracker/BaseActivator.java
+++ b/util/src/main/java/org/apache/karaf/util/tracker/BaseActivator.java
@@ -91,7 +91,7 @@ public class BaseActivator implements BundleActivator, Runnable, ThreadFactory
{
                     .allMatch(t -> t.getService() != null)) {
             try {
                 doStart();
-            } catch (Exception e) {
+            } catch (Throwable e) {
                 logger.warn("Error starting activator", e);
                 doStop();
             }

-- 
To stop receiving notification emails like this one, please contact
"commits@karaf.apache.org" <commits@karaf.apache.org>.

Mime
View raw message