camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggrzy...@apache.org
Subject [camel] branch camel-2.19.x updated: CAMEL-12251: WARN about blueprint component definition problems
Date Fri, 09 Feb 2018 13:54:34 GMT
This is an automated email from the ASF dual-hosted git repository.

ggrzybek pushed a commit to branch camel-2.19.x
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/camel-2.19.x by this push:
     new 270fedc  CAMEL-12251: WARN about blueprint component definition problems
270fedc is described below

commit 270fedcbd5734717623227f3a9d4528778458fa0
Author: Grzegorz Grzybek <gr.grzybek@gmail.com>
AuthorDate: Fri Feb 9 14:50:14 2018 +0100

    CAMEL-12251: WARN about blueprint component definition problems
    
    (cherry picked from commit 0bce5ce21f28ce998a01282c0fd3dd7e63fef859)
---
 .../java/org/apache/camel/blueprint/BlueprintComponentResolver.java    | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/components/camel-blueprint/src/main/java/org/apache/camel/blueprint/BlueprintComponentResolver.java
b/components/camel-blueprint/src/main/java/org/apache/camel/blueprint/BlueprintComponentResolver.java
index 3cc0021..561f1ae 100644
--- a/components/camel-blueprint/src/main/java/org/apache/camel/blueprint/BlueprintComponentResolver.java
+++ b/components/camel-blueprint/src/main/java/org/apache/camel/blueprint/BlueprintComponentResolver.java
@@ -22,6 +22,7 @@ import org.apache.camel.core.osgi.OsgiComponentResolver;
 import org.apache.camel.spi.ComponentResolver;
 import org.apache.camel.util.ResolverHelper;
 import org.osgi.framework.BundleContext;
+import org.osgi.service.blueprint.container.ComponentDefinitionException;
 import org.osgi.service.blueprint.container.NoSuchComponentException;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
@@ -44,6 +45,8 @@ public class BlueprintComponentResolver extends OsgiComponentResolver {
             public void handleException(Exception e, Logger log, String name) {
                 if (getException(NoSuchComponentException.class, e) != null) {
                     // if the caused error is NoSuchComponentException then that can be expected
so ignore
+                } else if (getException(ComponentDefinitionException.class, e) != null) {
+                    LOG.warn("Problem looking up bean: " + name + " due: " + e.getMessage(),
e);
                 } else {
                     LOG.trace("Ignored error looking up bean: " + name + " due: " + e.getMessage(),
e);
                 }

-- 
To stop receiving notification emails like this one, please contact
ggrzybek@apache.org.

Mime
View raw message