Apache Camel onException does not get fired

2011-10-13 Thread dportabella
I have this simple route: onException(Exception.class) .to("log:com.mycompany.test?level=INFO"); from("sftp://myuser@localhost:/files/?password=mypassword&knownHostsFile=/myuser/.ssh/known_hosts&noop=true";) .to("log:com.mycompany.test?level=INFO"); If I stop the sftp server, from("sftp:..."

unmarshal(CsvDataFormat). different behavior for one or multiples lines.

2011-09-07 Thread dportabella
unmarshal(CsvDataFormat) produces a List>, however, it the CSV file has only one line, it produces List instead of List>. We don't know in advance how many lines the CSV file will have, that could be zero, one, or more than one, and we should expect to receive always a Li