camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <claus.ib...@gmail.com>
Subject Re: Parsing csv data format
Date Thu, 08 Jun 2017 10:38:59 GMT
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 <sakouhichayma@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

Mime
View raw message