Hi,
I try to unmarshal a csv file using the following DSL :
from("file:///c:/temp/test?noop=true")
.unmarshal().csv()
.to("test-jms:queue:test.queue");
Unfortunately, I receive the following error during the execution :
GRAVE: Failed: java.lang.IllegalArgumentException: The class
org.apache.camel.dataformat.csv.CsvDataFormat is not on the classpath!
Cannot use the dataFormat
[EMAIL PROTECTED]
java.lang.IllegalArgumentException: The class
org.apache.camel.dataformat.csv.CsvDataFormat is not on the classpath!
Cannot use the dataFormat
[EMAIL PROTECTED]
at
org.apache.camel.model.dataformat.DataFormatType.createDataFormat(DataFormatType.java:94)
at
org.apache.camel.model.dataformat.DataFormatType.getDataFormat(DataFormatType.java:80)
at
org.apache.camel.model.dataformat.DataFormatType.getDataFormat(DataFormatType.java:58)
at
org.apache.camel.model.UnmarshalType.createProcessor(UnmarshalType.java:99)
at
org.apache.camel.model.ProcessorType.makeProcessor(ProcessorType.java:1217)
at org.apache.camel.model.ProcessorType.addRoutes(ProcessorType.java:92)
at org.apache.camel.model.RouteType.addRoutes(RouteType.java:177)
at org.apache.camel.model.RouteType.addRoutes(RouteType.java:71)
at
org.apache.camel.impl.DefaultCamelContext.startRouteDefinitions(DefaultCamelContext.java:466)
at
org.apache.camel.impl.DefaultCamelContext.doStart(DefaultCamelContext.java:458)
at
org.apache.camel.spring.SpringCamelContext.doStart(SpringCamelContext.java:143)
at org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:51)
at
org.apache.camel.spring.SpringCamelContext.onApplicationEvent(SpringCamelContext.java:96)
at
org.springframework.context.event.SimpleApplicationEventMulticaster$1.run(SimpleApplicationEventMulticaster.java:78)
at
org.springframework.core.task.SyncTaskExecutor.execute(SyncTaskExecutor.java:49)
at
org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:76)
at
org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:260)
at
org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:744)
at
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:372)
at
org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:123)
at
org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:76)
at
org.apache.camel.spring.Main.createDefaultApplicationContext(Main.java:311)
at org.apache.camel.spring.Main.doStart(Main.java:302)
at org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:51)
at org.apache.camel.spring.Main.run(Main.java:104)
at org.apache.camel.spring.Main.run(Main.java:95)
at
org.apache.camel.example.spring.MyRouteBuilder.main(MyRouteBuilder.java:41)
The class org.apache.camel.model.dataformat.CsvDataFormat is present in my
classpath of eclipse and I use camel-1.3-SNAPSHOT
Where is the problem ?
Regards,
Charles
--
View this message in context:
http://www.nabble.com/class-org.apache.camel.model.dataformat.csv.CsvDataFormat-is-not-on-the-classpath-%21-tp16048271s22882p16048271.html
Sent from the Camel - Users mailing list archive at Nabble.com.