camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Neo <>
Subject Camel 2.9 - <convertbodyto > fails to converts a XML JMS Body to Java Bean
Date Thu, 19 Apr 2012 03:00:45 GMT

The following is my Route in general tems:
JMS Topic -> Async Camel JMS Subscriber ->SEDA -> CONVERTBODYTO -> SEDA

       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

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 ?


View this message in context:
Sent from the Camel - Users mailing list archive at

View raw message