camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <>
Subject Re: xmljson component failing to do json>xml conversion
Date Wed, 26 Nov 2014 06:42:26 GMT

Converting first to a string should allow the unmarshal to read the
data as an input stream.
Are you still having trouble with this?

Also you can take a look at the unit tests of camel-xmljson to find samples

On Fri, Nov 21, 2014 at 11:15 PM, clinton <> wrote:
> Using camel's xmljson, I had no problem converting XML into JSON using
> "marshal"
> When I tried to do the reverse it failed. (unmarshal)
> The "body" that was in place was a DBObject I had just retrieved from
> Mongodb.
> I tried converting to a string first too.  Didn't work.
> I'm using 2.13  Spring DSL
> The error is:
> org.apache.camel.InvalidPayloadException: No body available of type:
> but has value: --quotes my json string here--
> Any guidance appreciated.
> --
> View this message in context:
> Sent from the Camel - Users mailing list archive at

Claus Ibsen
Red Hat, Inc.
Twitter: davsclaus
Author of Camel in Action:

View raw message