Return-Path: X-Original-To: apmail-camel-users-archive@www.apache.org Delivered-To: apmail-camel-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 543CFF5AC for ; Tue, 23 Apr 2013 07:31:02 +0000 (UTC) Received: (qmail 57750 invoked by uid 500); 23 Apr 2013 07:31:01 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 57567 invoked by uid 500); 23 Apr 2013 07:31:01 -0000 Mailing-List: contact users-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@camel.apache.org Delivered-To: mailing list users@camel.apache.org Received: (qmail 57540 invoked by uid 99); 23 Apr 2013 07:31:00 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 23 Apr 2013 07:31:00 +0000 X-ASF-Spam-Status: No, hits=2.0 required=5.0 tests=SPF_NEUTRAL,URI_HEX X-Spam-Check-By: apache.org Received-SPF: error (athena.apache.org: encountered temporary error during SPF processing of domain of sandy.morphis@gmail.com) Received: from [216.139.236.26] (HELO sam.nabble.com) (216.139.236.26) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 23 Apr 2013 07:30:56 +0000 Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1UUXg7-0002BC-Fx for users@camel.apache.org; Tue, 23 Apr 2013 00:30:15 -0700 Date: Tue, 23 Apr 2013 00:30:15 -0700 (PDT) From: sandeep To: users@camel.apache.org Message-ID: <1366702215096-5731324.post@n5.nabble.com> Subject: Bindy MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org I am trying to convert an CSV file to XML route look like BindyCsvDataFormat bindy = new BindyCsvDataFormat(UspsTrackRecord.class.getPackage().getName()); from(fromLocation) .unmarshal(bindy) .marshal() .xstream() .to(localDir); but i get error: 12:48:08,965 ERROR [org.apache.camel.processor.DefaultErrorHandler] (Camel (camel-3) thread #2 - file://D:/data/backoffice-tracking/usps/) Failed delivery for (MessageId: ID-NOISA019PA-L1-54360-1366701454968-2-1 on ExchangeId: ID-NOISA019PA-L1-54360-1366701454968-2-2). Exhausted after delivery attempt: 1 caught: java.lang.IllegalArgumentException: The separator has not been defined in the annotation @CsvRecord or not instantiated during initModel. must be specified: java.lang.IllegalArgumentException: The separator has not been defined in the annotation @CsvRecord or not instantiated during initModel. must be specified data class is @XmlRootElement @XmlAccessorType(XmlAccessType.FIELD) @CsvRecord(separator = ",",crlf = "UNIX") public class UspsTrackRecord implements Serializable { @XmlAttribute @DataField(pos = 1) private String version; public String getPackageID() { return packageID; } public void setPackageID(String packageID) { this.packageID = packageID; } public String getVersion() { return version; } public void setVersion(String version) { this.version = version; } @XmlAttribute @DataField(pos = 2) private String packageID; } when I did debug bindy code i found that when it try to scan package for annotated class it goes to wrong path. Any suggestion what i am doing wrong? thanks in advance -- View this message in context: http://camel.465427.n5.nabble.com/Bindy-tp5731324.html Sent from the Camel - Users mailing list archive at Nabble.com.