Hi Is there a reason you use such an old Camel version 2.15? The latest is 2.19
On Thu, Jun 8, 2017 at 11:29 AM, sakouhi <sakouhicha...@gmail.com> wrote: > I followed an example from a book Camel in action. how to marchal and > unmarchal a csv data format. However, I want to unmarchal a csv files with > (comma seperated delimiter) and split body. Then, I will use content based > .choice to distribute messages according to required tasks. > In fact, The first and simple example didn't work to me. I used camel > 2.15.6 (camel-core, camel-context, camel-csv, commons-csv) and java 7. > public void configure() > { > CsvDataFormat csv = new CsvDataFormat(); > csv.setDelimiter(","); > > from("file:test?noop=true") > .unmarshal().csv() > .split(body()) > .to("file:out"); > } > Please find below the stack trace. > <http://camel.465427.n5.nabble.com/file/n5802566/errorstack.png> > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Parsing-csv-data-format-tp5802566.html > Sent from the Camel - Users mailing list archive at Nabble.com. -- Claus Ibsen ----------------- http://davsclaus.com @davsclaus Camel in Action 2: https://www.manning.com/ibsen2