Claus Ibsen created CAMEL-26062:
-----------------------------------
Summary: camel-smooks - SAXSource, remote file and File bodies
fail with a reader in the config
Key: CAMEL-26062
URL: https://issues.apache.org/jira/browse/CAMEL-26062
Project: Camel
Issue Type: Bug
Components: camel-smooks
Affects Versions: 4.18.0, 4.22.0, 4.23.0
Reporter: Claus Ibsen
Fix For: 4.24.0
Found while adding the catalog body types of the smooks component
(CAMEL-24961). Read in the code, not run; the bodies that work were checked
with {{camel run}}.
h4. 1. Bodies that fail with a ClassCastException
* A {{javax.xml.transform.sax.SAXSource}} body: its XMLReader is cast to a
Reader ({{SmooksProcessor}}, main 5aac7df76b83, line 241).
* A remote file body (ftp, sftp, ftps) with a reader in the Smooks config: the
file of the WrappedFile is cast to {{java.io.File}} (line 231).
* A {{java.io.File}} or a {{Path}} body with a reader in the config finds no
converter to a Source (line 244).
h4. Also read in the code, not run
* With several exports, the List of the results comes in no fixed order.
* A failure of a bean route with a correlation id is ignored ({{BeanRouter}},
line 178), the other branch throws (line 180).
_Claude Code on behalf of davsclaus_
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)