This is an automated email from the ASF dual-hosted git repository.
ffang pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/main by this push:
new 23152a67d13 [CAMEL-21714]camel-cxf: CachedCxfPayload needs to LOG the
parsing XMLStreamReader exception
23152a67d13 is described below
commit 23152a67d139db06710bd0bd82eb989a97002619
Author: Freeman Fang <[email protected]>
AuthorDate: Tue Feb 4 12:20:48 2025 -0500
[CAMEL-21714]camel-cxf: CachedCxfPayload needs to LOG the parsing
XMLStreamReader exception
---
.../org/apache/camel/component/cxf/converter/CachedCxfPayload.java | 4 ++++
1 file changed, 4 insertions(+)
diff --git
a/components/camel-cxf/camel-cxf-common/src/main/java/org/apache/camel/component/cxf/converter/CachedCxfPayload.java
b/components/camel-cxf/camel-cxf-common/src/main/java/org/apache/camel/component/cxf/converter/CachedCxfPayload.java
index fd8968b845d..d26605dfd01 100644
---
a/components/camel-cxf/camel-cxf-common/src/main/java/org/apache/camel/component/cxf/converter/CachedCxfPayload.java
+++
b/components/camel-cxf/camel-cxf-common/src/main/java/org/apache/camel/component/cxf/converter/CachedCxfPayload.java
@@ -89,6 +89,10 @@ public class CachedCxfPayload<T> extends CxfPayload<T>
implements StreamCache {
if (tryUsingReader(cos, source, li)) {
continue;
}
+ //tryUsingReader returns false so we will fallback to DOM
mode
+ LOG.debug(
+ "Error during parsing XMLStreamReader from
StaxSource/StAXSource. Will fallback to using DOM mode. This exception is
ignored",
+ e);
}
}
// fallback to using DOM