You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by lb...@apache.org on 2021/02/05 17:48:08 UTC
[camel] branch master updated: camel-zookeeper-master: catch
Throwable otherwhise the exception escapes the try/catch
This is an automated email from the ASF dual-hosted git repository.
lburgazzoli pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/master by this push:
new 85f38da camel-zookeeper-master: catch Throwable otherwhise the exception escapes the try/catch
85f38da is described below
commit 85f38dabe0860cd411da2b03153d372d02c0df41
Author: Luca Burgazzoli <lb...@gmail.com>
AuthorDate: Fri Feb 5 17:44:57 2021 +0100
camel-zookeeper-master: catch Throwable otherwhise the exception escapes the try/catch
---
.../zookeepermaster/group/internal/ManagedGroupFactoryBuilder.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/components/camel-zookeeper-master/src/main/java/org/apache/camel/component/zookeepermaster/group/internal/ManagedGroupFactoryBuilder.java b/components/camel-zookeeper-master/src/main/java/org/apache/camel/component/zookeepermaster/group/internal/ManagedGroupFactoryBuilder.java
index d75ab86..da132b8 100644
--- a/components/camel-zookeeper-master/src/main/java/org/apache/camel/component/zookeepermaster/group/internal/ManagedGroupFactoryBuilder.java
+++ b/components/camel-zookeeper-master/src/main/java/org/apache/camel/component/zookeepermaster/group/internal/ManagedGroupFactoryBuilder.java
@@ -47,8 +47,8 @@ public final class ManagedGroupFactoryBuilder {
beanIntrospection.setProperty(camelContext, instance, "classLoader", loader);
return (ManagedGroupFactory) instance;
}
- } catch (Exception e) {
- // Ignore if we'e not in OSGi
+ } catch (Throwable e) {
+ // Ignore if we're not in OSGi
}
return new StaticManagedGroupFactory(factory.call(), true);
}