here is the exception and my code : the bean method :
public void doHandleCsvData(List<List<String>> csvData) { } the xml : <bean id="csvReportsHandler" scope="singleton" class="calypsox.reports.CsvReportsHandler" /> <camelContext xmlns="http://camel.apache.org/schema/spring" id="report1"> <propertyPlaceholder id="reportsProperty" location="BLLresources/reports.properties" /> <route> <from uri="file:{{report1.incoming.directory}}?preMove={{report1.inprogress.directory}}&move= {{report1.done.directory}}&moveFailed={{report1.failed.directory}}" /> <unmarshal> <csv /> </unmarshal> <to uri="bean:csvReportsHandler?method=doHandleCsvData" /> <marshal> <csv /> </marshal> <to uri="file:{{report1.outcoming.directory}}?fileName=teat.csv" /> </route> </camelContext> the exception is: [LOG|ERROR|27 09:58:26,734 2013 דצמ |org.apache.camel.processor.DefaultErrorHandler|Camel (report1) thread #1 - file://C:reports1_in| - ] Failed delivery for exchangeId: ID-NTAS107703T05-50117-1388131078416-3-1. Exhausted after delivery attempt: 1 caught: org.apache.camel.NoTypeConversionAvailableException: No type converter available to convert from type: java.lang.String to the required type: java.util.Map with value ILS [END] org.apache.camel.NoTypeConversionAvailableException: No type converter available to convert from type: java.lang.String to the required type: java.util.Map with value ILS at org.apache.camel.impl.converter.BaseTypeConverterRegistry.mandatoryConvertTo(BaseTypeConverterRegistry.java:144) at org.apache.camel.util.ExchangeHelper.convertToMandatoryType(ExchangeHelper.java:143) at org.apache.camel.dataformat.csv.CsvDataFormat.marshal(CsvDataFormat.java:70) at org.apache.camel.processor.MarshalProcessor.process(MarshalProcessor.java:57) at org.apache.camel.impl.converter.AsyncProcessorTypeConv -- View this message in context: http://camel.465427.n5.nabble.com/writing-a-csv-file-tp5745260p5745286.html Sent from the Camel - Users mailing list archive at Nabble.com.