camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "anish.somadevan" <>
Subject Re: JSON to XML Conversion
Date Wed, 02 Sep 2015 00:25:05 GMT
Am not sure if i have implemented it as you said. This is what i have in my
route now,

<routes xmlns="">
    <xmljson id="xmljson"/>
    <xmljson id="xmljsonWithOptions" forceTopLevelObject="true"
trimSpaces="true" rootName="newRoot" skipNamespaces="true"
removeNamespacePrefixes="true" expandableProperties="d e"/>

<to uri="direct:inter2" />

        <route id="parseJSON">
        <from uri="direct:inter2" />

        <unmarshal ref="xmljsonWithOptions"/>
        <to uri="direct:inter3" />

I still get the same error

 Failed to create route parseJSON at: >>> Unmarshal[ref:xmljsonWithOptions]
<<< in route: Route[[From[direct:inter2]] ->
[Unmarshal[ref:xmljsonWithOpt... because of Cannot find data format in
registry with ref: xmljsonWithOptions

But when i have just "xmljson" in the route, everything works fine,

<to uri="direct:inter2" />

        <route id="parseJSON">
        <from uri="direct:inter2" />

        <unmarshal ref="xmljson"/>
        <to uri="direct:inter3" />

Can you let me know your thoughts on this. Am facing issue wherever am
trying to refer something from registry. 


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

View raw message