On Thu, Apr 19, 2012 at 5:00 AM, Neo <ratheet...@gmail.com> wrote:
> Hi,
>
>
> The following is my Route in general tems:
> *
> JMS Topic -> Async Camel JMS Subscriber ->SEDA -> CONVERTBODYTO -> SEDA
> ->ENRICH ->SEDA->RESTFUL SERVICE CALLOUT*
>
>       In the current application that I am working on , I use the
> convertbodyto tag to convert the incoming JMS Body of XML type to a Java
> Object.
>
> The convertbodyto tag works and it converts the JMS Body to the given type.
>
> In one case , I have sent a wrong XML in the JMS Body and the convertbodyto
> has errored out trying to convert the message to Java Bean.
>
> It is after this that the problem started.
>
> The next message that I sent was the correct XML message in the JMS body ,
> but then Camel threw the same JAXB InvalidPayload exception for this correct
> XML too.
>
> The logic just broke for the rest of the messages as it threw the same
> exception for every message read from the JMS Topic.
>
> Did anyone see such kind of behaviour ? Or am I supposed to clear some
> message header that I am not clearing?
>
> Can anyone please help ?
>

That sounds like the bug that is fixed in the upcoming 2.9.3 and 2.10 releases.

Discussed here
http://camel.465427.n5.nabble.com/HEADS-UP-TypeConverter-improved-in-Camel-2-10-td5645689.html

> Cheers,
> Neo
>
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/Camel-2-9-convertbodyto-fails-to-converts-a-XML-JMS-Body-to-Java-Bean-tp5650739p5650739.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
CamelOne 2012 Conference, May 15-16, 2012: http://camelone.com
FuseSource
Email: cib...@fusesource.com
Web: http://fusesource.com
Twitter: davsclaus, fusenews
Blog: http://davsclaus.blogspot.com/
Author of Camel in Action: http://www.manning.com/ibsen/

Reply via email to