Updated Branches:
  refs/heads/camel-2.11.x 47ebec3be -> 6cef9dad0

CAMEL-6408 - cxf endpoint should log the exception when failing to extract the 
root element name


Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/6cef9dad
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/6cef9dad
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/6cef9dad

Branch: refs/heads/camel-2.11.x
Commit: 6cef9dad0eb237144d193c32ae528ea7a030afd9
Parents: 47ebec3
Author: Akitoshi Yoshida <a...@apache.org>
Authored: Mon Jul 15 16:56:04 2013 +0200
Committer: Akitoshi Yoshida <a...@apache.org>
Committed: Mon Jul 15 17:46:48 2013 +0200

----------------------------------------------------------------------
 .../src/main/java/org/apache/camel/component/cxf/CxfEndpoint.java  | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/6cef9dad/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/CxfEndpoint.java
----------------------------------------------------------------------
diff --git 
a/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/CxfEndpoint.java
 
b/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/CxfEndpoint.java
index 26d0af0..5854c39 100644
--- 
a/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/CxfEndpoint.java
+++ 
b/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/CxfEndpoint.java
@@ -973,6 +973,8 @@ public class CxfEndpoint extends DefaultEndpoint implements 
HeaderFilterStrategy
                     }
                 } catch (XMLStreamException e) {
                     //ignore
+                    LOG.warn("Error finding the start element.", e);
+                    return null;
                 }
                 return r.getLocalName();
             }

Reply via email to