Ok. Thanks for the pointer.
This brings me to my next question.


> StreamCache Affects your payload object
> The StreamCache will affect your payload object as it will replace the
> Stream payload with a org.apache.camel.StreamCache object.
> This StreamCache is capable of being re-readable and thus possible to
> better be routed within Camel using redelivery or Content Based Router or
> the likes. 
> 

When I tried to use multicast() to deliver the message to multiple
recipients, my XSLT conversion did not like this StreamCache object.

FINEST|1844/0|11-04-19 13:08:03|[efaultQuartzScheduler_Worker-1]
DefaultErrorHandler            ERROR Failed delivery for exchangeId:
1ff2b349-6458-4f1c-9d39-cb85cc41d3e8. Exhausted after delivery attempt: 1
caught: org.apache.camel.InvalidPayloadException: No body available of type:
javax.xml.transform.Source but has value:
org.apache.camel.converter.stream.CachedOutputStream$WrappedInputStream@1ea6a1c
of type:
org.apache.camel.converter.stream.CachedOutputStream.WrappedInputStream on:
Message: [Body is instance of java.io.InputStream]. Caused by: No type
converter available to convert from type:
org.apache.camel.converter.stream.CachedOutputStream.WrappedInputStream to
the required type: javax.xml.transform.Source with value
org.apache.camel.converter.stream.CachedOutputStream$WrappedInputStream@1ea6a1c.
Exchange[Message: [Body is instance of java.io.InputStream]]. Caused by:
[org.apache.camel.NoTypeConversionAvailableException - No type converter
available to convert from type:
org.apache.camel.converter.stream.CachedOutputStream.WrappedInputStream to
the required type: javax.xml.transform.Source with value
org.apache.camel.converter.stream.CachedOutputStream$WrappedInputStream@1ea6a1c]

How do I get past this? 
Btw. I'm using Fuse Mediation Router 2.6.0-fuse-01-09

-Atte


--
View this message in context: 
http://camel.465427.n5.nabble.com/Weird-behaviour-with-message-routing-tp4312978p4315516.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to