Can you paste the content of your CSV file?
The CSV data format now always returns a List if its 0, 1, or 2+ rows, as stated in the release notes http://camel.apache.org/camel-290-release.html On Fri, Feb 17, 2012 at 7:18 AM, Kai Wähner <megachu...@googlemail.com> wrote: > Hello. > > I have got an working example in Camel 2.6. I upgraded to Camel 2.9, now > the example fails. > The Splitter does not work anymore. I tried for two hours now, but I do not > understand what changed or how to fix it. > > Here is the route. Input body is for example: > "kai 1 / dvd , kai 2 / cd , kai 3 / book" > > > from("file:orders/inbox?noop= > true") > > .tracing() > > .process(new LoggingProcessor()) > > .bean(new TransformationBean(), "makeUpperCase") > > .unmarshal().csv() > > > // working in 2.6, but not in 2.9 ??? (I used the default > tokenizer, a comma, there. > .split().body() > > // I tried with Camel 2.9 for example: > //.split(body(String.class).tokenize(",")) > //.split(body().tokenize(",")) > // this way it splits again, BUT: > // the first order contains a "[[", the last order contains a "]]". What is > happening and why? > > > // Content-based Router EIP > //.log("Kai: ${body}") > .choice() > .when(body().contains("DVD")) > // Producer Endpoint > .to("file:orders/outbox/dvd") > .when(body().contains("CD")) > .to("file:orders/outbox/cd") > .otherwise() > .to("mock:others"); > > Can please anyone help me solve it (and explain what happened / changed > between 2.6 and 2.9)? > Thank you a lot... > > Best regards, > Kai -- Claus Ibsen ----------------- FuseSource Email: cib...@fusesource.com Web: http://fusesource.com Twitter: davsclaus, fusenews Blog: http://davsclaus.blogspot.com/ Author of Camel in Action: http://www.manning.com/ibsen/