This is an automated email from the ASF dual-hosted git repository.
ffang pushed a commit to branch camel-4.8.x
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/camel-4.8.x by this push:
new 885211c6ff9 [CAMEL-21714]camel-cxf: CachedCxfPayload needs to LOG the
parsing XMLStreamReader exception
885211c6ff9 is described below
commit 885211c6ff99d5218f52b44c43d31f95710af428
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
(cherry picked from commit 23152a67d139db06710bd0bd82eb989a97002619)
---
.../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