You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by gn...@apache.org on 2020/03/04 08:58:05 UTC

[camel] 20/32: Fix services creation

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/camel.git

commit bcd26a13548933c45e5f083e41249120ba767af0
Author: Guillaume Nodet <gn...@gmail.com>
AuthorDate: Tue Mar 3 21:14:23 2020 +0100

    Fix services creation
---
 .../main/java/org/apache/camel/impl/engine/AbstractCamelContext.java  | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/core/camel-base/src/main/java/org/apache/camel/impl/engine/AbstractCamelContext.java b/core/camel-base/src/main/java/org/apache/camel/impl/engine/AbstractCamelContext.java
index d494187..b9f94cf 100644
--- a/core/camel-base/src/main/java/org/apache/camel/impl/engine/AbstractCamelContext.java
+++ b/core/camel-base/src/main/java/org/apache/camel/impl/engine/AbstractCamelContext.java
@@ -3522,7 +3522,7 @@ public abstract class AbstractCamelContext extends ServiceSupport implements Ext
         getPackageScanClassResolver();
         try {
             getRestRegistryFactory();
-        } catch (IllegalStateException e) {
+        } catch (IllegalArgumentException e) {
             // ignore in case camel-rest is not on the classpath
         }
         getReactiveExecutor();
@@ -3554,7 +3554,7 @@ public abstract class AbstractCamelContext extends ServiceSupport implements Ext
         getUnitOfWorkFactory();
         getRouteController();
         try {
-            addService(getBeanProxyFactory());
+            getBeanProxyFactory();
             getBeanProcessorFactory();
         } catch (Exception e) {
             // ignore in case camel-bean is not on the classpath