camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Scisci <ferioli.mi...@gmail.com>
Subject camel bindy 2.14.1 and jboss-eap 6.3.3
Date Wed, 11 Mar 2015 10:14:06 GMT
Hi,
I'm trying to use bindy on camel 2.14.1 with a WAR deploy on jboss-eap 6.3.3
this is my camel context:

 <camelContext xmlns="http://camel.apache.org/schema/spring">
    	<propertyPlaceholder id="placeholder"
location="classpath:file.properties"/>
        <route id="file-to-jpa">
 <from
uri="file:{{Path_RiskNoDer}}?fileName={{File_Name_RiskNoDer}}&amp;readLock=changed&amp;readLockTimeout=10000&amp;readLockCheckInterval=5000&amp;move={{Backup}}"/>
 			<split>
				<tokenize token="\n" />
				<unmarshal>
					<bindy type="Csv" classType="it.demo.Rischio_Controparti.RiskNoDer_CSV"
/>
				</unmarshal>
				<log message="unmarshal ${body}"/>

        	</split>
        </route>
    </camelContext>


and this is my bean where unmarshal the csv file

package it.demo.Rischio_Controparti;

import java.io.Serializable;
import java.util.Date;

import org.apache.camel.dataformat.bindy.annotation.CsvRecord;
import org.apache.camel.dataformat.bindy.annotation.DataField;

@CsvRecord(separator="\\;")
public class RiskNoDer_CSV implements Serializable {
	
	/**
	 * 
	 */
	private static final long serialVersionUID = -5848486668088244375L;

	@DataField(pos=1 , required=true)
	Integer codice_controparte;
	
	@DataField(pos=2 , required=true)
	String nome_controparte;
	
	@DataField(pos=3 , required=true)
	String tipo;
	
	@DataField(pos=4 , required=true, pattern="yyyyMMdd")
	Date data_valuta;

....

this is the error ...
java.lang.IllegalArgumentException: The separator has not been defined in
the annotation @CsvRecord or not instantiated during initModel.

Can someone help me please ?
Thanks
Mirko




--
View this message in context: http://camel.465427.n5.nabble.com/camel-bindy-2-14-1-and-jboss-eap-6-3-3-tp5763997.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
View raw message