I added a custom bean processor (see below) to my camel route where i want
to use the CXF InTransformReader to do some transformation as prescribed.
There seems to be a problem though. No type convertor in camel to convert
the underlying 'ValidatingStreamReader' into type understood by Camel. Does
this mean i'll need to implement my own type convertor to make this work?
The error occurs when my processor returns and the message continues in the
camel route pipeline.
public void process(Exchange exchange) throws Exception {
log.debug("Entered TransformFeature process() method...");
XMLStreamReader reader =
(XMLStreamReader)exchange.getIn().getBody();
if ((reader != null) && (inElementsMap != null || inAppendMap !=
null || inDropElements != null)) {
log.debug("Creating InTransformReader...");
reader = new InTransformReader(reader, inElementsMap,
inAppendMap, inDropElements, null, blockOriginalReader);
}
exchange.getIn().setBody(reader, XMLStreamReader.class);
}
- No type converter available to convert from type:
org.apache.cxf.staxutils.transform.InTransformReader to the required type:
java.io.InputStream with value
com.ctc.wstx.sr.ValidatingStreamReader@d6db5b]
--
View this message in context:
http://cxf.547215.n5.nabble.com/cxf-transformation-feature-could-code-be-ported-and-used-in-Camel-tp5746812p5747005.html
Sent from the cxf-user mailing list archive at Nabble.com.