You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by Jeffery <je...@hotmail.com> on 2007/11/09 06:29:08 UTC
How to unmarshal with XMLBeans?
I tried with this line of codes:
...
from(PRODUCER_EP_URI).unmarshal().xmlBeans().to(CONSUMER_EP_URI);
...
But exceptions are reported:
java.lang.IllegalArgumentException: The class
org.apache.camel.dataformat.converter.XmlBeansDataType is not on the
classpath! Cannot use the dataFormat
org.apache.camel.model.dataformat.XMLBeansDataFormat@13f3045
at
org.apache.camel.model.dataformat.DataFormatType.createDataFormat(DataFormatType.java:68)
at
org.apache.camel.model.dataformat.DataFormatType.getDataFormat(DataFormatType.java:54)
at
org.apache.camel.model.UnmarshalType.createProcessor(UnmarshalType.java:89)
at
org.apache.camel.model.ProcessorType.makeProcessor(ProcessorType.java:882)
at org.apache.camel.model.ProcessorType.addRoutes(ProcessorType.java:87)
at org.apache.camel.model.RouteType.addRoutes(RouteType.java:182)
at org.apache.camel.model.RouteType.addRoutes(RouteType.java:80)
at org.apache.camel.model.RouteType.addRoutes(RouteType.java:71)
at
org.apache.camel.impl.DefaultCamelContext.startRouteDefinitions(DefaultCamelContext.java:449)
at
org.apache.camel.impl.DefaultCamelContext.doStart(DefaultCamelContext.java:441)
at org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:51)
Should I configure something somewhere?
Thanks in advance.
--
View this message in context: http://www.nabble.com/How-to-unmarshal-with-XMLBeans--tf4775991s22882.html#a13661850
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: How to unmarshal with XMLBeans?
Posted by James Strachan <ja...@gmail.com>.
Unfortunately XmlBeans marshalling didn't quite make it into the 1.2.0
release. The class its looking for:
org.apache.camel.dataformat.converter.XmlBeansDataType doesn't exist.
This is working fine in trunk though - the correct class is
org.apache.camel.converter.xmlbeans.XmlBeansDataFormat
As soon as we release 1.3.0 it'll be working AFAIK.
On 09/11/2007, Jeffery <je...@hotmail.com> wrote:
>
> I tried with this line of codes:
> ...
> from(PRODUCER_EP_URI).unmarshal().xmlBeans().to(CONSUMER_EP_URI);
> ...
> But exceptions are reported:
>
> java.lang.IllegalArgumentException: The class
> org.apache.camel.dataformat.converter.XmlBeansDataType is not on the
> classpath! Cannot use the dataFormat
> org.apache.camel.model.dataformat.XMLBeansDataFormat@13f3045
> at
> org.apache.camel.model.dataformat.DataFormatType.createDataFormat(DataFormatType.java:68)
> at
> org.apache.camel.model.dataformat.DataFormatType.getDataFormat(DataFormatType.java:54)
> at
> org.apache.camel.model.UnmarshalType.createProcessor(UnmarshalType.java:89)
> at
> org.apache.camel.model.ProcessorType.makeProcessor(ProcessorType.java:882)
> at org.apache.camel.model.ProcessorType.addRoutes(ProcessorType.java:87)
> at org.apache.camel.model.RouteType.addRoutes(RouteType.java:182)
> at org.apache.camel.model.RouteType.addRoutes(RouteType.java:80)
> at org.apache.camel.model.RouteType.addRoutes(RouteType.java:71)
> at
> org.apache.camel.impl.DefaultCamelContext.startRouteDefinitions(DefaultCamelContext.java:449)
> at
> org.apache.camel.impl.DefaultCamelContext.doStart(DefaultCamelContext.java:441)
> at org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:51)
>
> Should I configure something somewhere?
>
> Thanks in advance.
>
>
> --
> View this message in context: http://www.nabble.com/How-to-unmarshal-with-XMLBeans--tf4775991s22882.html#a13661850
> Sent from the Camel - Users mailing list archive at Nabble.com.
>
>
--
James
-------
http://macstrac.blogspot.com/
Open Source SOA
http://open.iona.com
Re: How to unmarshal with XMLBeans?
Posted by Jeffery <je...@hotmail.com>.
Hi Hiram,
Yes, camel-xmlbeans-1.2.0.jar is in the classpath, along with other camel
libs.
Hiram Chirino wrote:
>
> Hi Jeffery.. do you have the camel-xmlbean-*.jar in the classpath??
>
> On Nov 9, 2007 12:29 AM, Jeffery <je...@hotmail.com> wrote:
>>
>> I tried with this line of codes:
>> ...
>> from(PRODUCER_EP_URI).unmarshal().xmlBeans().to(CONSUMER_EP_URI);
>> ...
>> But exceptions are reported:
>>
>> java.lang.IllegalArgumentException: The class
>> org.apache.camel.dataformat.converter.XmlBeansDataType is not on the
>> classpath! Cannot use the dataFormat
>> org.apache.camel.model.dataformat.XMLBeansDataFormat@13f3045
>> at
>> org.apache.camel.model.dataformat.DataFormatType.createDataFormat(DataFormatType.java:68)
>> at
>> org.apache.camel.model.dataformat.DataFormatType.getDataFormat(DataFormatType.java:54)
>> at
>> org.apache.camel.model.UnmarshalType.createProcessor(UnmarshalType.java:89)
>> at
>> org.apache.camel.model.ProcessorType.makeProcessor(ProcessorType.java:882)
>> at
>> org.apache.camel.model.ProcessorType.addRoutes(ProcessorType.java:87)
>> at org.apache.camel.model.RouteType.addRoutes(RouteType.java:182)
>> at org.apache.camel.model.RouteType.addRoutes(RouteType.java:80)
>> at org.apache.camel.model.RouteType.addRoutes(RouteType.java:71)
>> at
>> org.apache.camel.impl.DefaultCamelContext.startRouteDefinitions(DefaultCamelContext.java:449)
>> at
>> org.apache.camel.impl.DefaultCamelContext.doStart(DefaultCamelContext.java:441)
>> at
>> org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:51)
>>
>> Should I configure something somewhere?
>>
>> Thanks in advance.
>>
>> --
>> View this message in context:
>> http://www.nabble.com/How-to-unmarshal-with-XMLBeans--tf4775991s22882.html#a13661850
>> Sent from the Camel - Users mailing list archive at Nabble.com.
>>
>>
>
>
>
> --
> Regards,
> Hiram
>
> Blog: http://hiramchirino.com
>
>
--
View this message in context: http://www.nabble.com/How-to-unmarshal-with-XMLBeans--tf4775991s22882.html#a13670573
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: How to unmarshal with XMLBeans?
Posted by Hiram Chirino <hi...@hiramchirino.com>.
Hi Jeffery.. do you have the camel-xmlbean-*.jar in the classpath??
On Nov 9, 2007 12:29 AM, Jeffery <je...@hotmail.com> wrote:
>
> I tried with this line of codes:
> ...
> from(PRODUCER_EP_URI).unmarshal().xmlBeans().to(CONSUMER_EP_URI);
> ...
> But exceptions are reported:
>
> java.lang.IllegalArgumentException: The class
> org.apache.camel.dataformat.converter.XmlBeansDataType is not on the
> classpath! Cannot use the dataFormat
> org.apache.camel.model.dataformat.XMLBeansDataFormat@13f3045
> at
> org.apache.camel.model.dataformat.DataFormatType.createDataFormat(DataFormatType.java:68)
> at
> org.apache.camel.model.dataformat.DataFormatType.getDataFormat(DataFormatType.java:54)
> at
> org.apache.camel.model.UnmarshalType.createProcessor(UnmarshalType.java:89)
> at
> org.apache.camel.model.ProcessorType.makeProcessor(ProcessorType.java:882)
> at org.apache.camel.model.ProcessorType.addRoutes(ProcessorType.java:87)
> at org.apache.camel.model.RouteType.addRoutes(RouteType.java:182)
> at org.apache.camel.model.RouteType.addRoutes(RouteType.java:80)
> at org.apache.camel.model.RouteType.addRoutes(RouteType.java:71)
> at
> org.apache.camel.impl.DefaultCamelContext.startRouteDefinitions(DefaultCamelContext.java:449)
> at
> org.apache.camel.impl.DefaultCamelContext.doStart(DefaultCamelContext.java:441)
> at org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:51)
>
> Should I configure something somewhere?
>
> Thanks in advance.
>
> --
> View this message in context: http://www.nabble.com/How-to-unmarshal-with-XMLBeans--tf4775991s22882.html#a13661850
> Sent from the Camel - Users mailing list archive at Nabble.com.
>
>
--
Regards,
Hiram
Blog: http://hiramchirino.com