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 88DE511E80 for ; Thu, 19 Jun 2014 17:22:17 +0000 (UTC) Received: (qmail 18615 invoked by uid 500); 19 Jun 2014 17:22:17 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 18570 invoked by uid 500); 19 Jun 2014 17:22:17 -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 18559 invoked by uid 99); 19 Jun 2014 17:22:16 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 19 Jun 2014 17:22:16 +0000 X-ASF-Spam-Status: No, hits=1.3 required=5.0 tests=URI_HEX X-Spam-Check-By: apache.org Received-SPF: unknown (nike.apache.org: error in processing during lookup of sarada.behera@jda.com) Received: from [216.139.236.26] (HELO sam.nabble.com) (216.139.236.26) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 19 Jun 2014 17:22:14 +0000 Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1Wxg22-0002o3-8R for users@camel.apache.org; Thu, 19 Jun 2014 10:21:50 -0700 Date: Thu, 19 Jun 2014 10:21:50 -0700 (PDT) From: sprasan To: users@camel.apache.org Message-ID: <1403198510118-5752586.post@n5.nabble.com> Subject: Bindy not able to handle multiple annotated classes MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Hi, I'm trying to unmarshal from CSV file to POJO using Bindy on Camel. As I need to unmarshal multiple csv files to multiple java objects , I have created separated classes corresponding to each CSV and annotated the java classes. When a single class is annotated, Bindy works fine but as soon as I have one more annotated class then the following warning comes and Bindy goes for a toss. l) thread #0 - file://src/data] BindyCsvFactory WARN Potentially invalid model: existing @DataField 'DCSi' replaced by 'ITEM' @CsvRecord(separator = ",", skipFirstLine = true) public class Item implements Serializable { @DataField(pos = 1) private String DCSi; ... } @CsvRecord(separator = ",", skipFirstLine = true) public class ItemLoc implements Serializable { @DataField(pos = 1) private String ITEM; ... } Let me help resolve this. -- View this message in context: http://camel.465427.n5.nabble.com/Bindy-not-able-to-handle-multiple-annotated-classes-tp5752586.html Sent from the Camel - Users mailing list archive at Nabble.com.