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 DDC1A61B5 for ; Sat, 11 Jun 2011 04:26:50 +0000 (UTC) Received: (qmail 66300 invoked by uid 500); 11 Jun 2011 04:26:50 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 66196 invoked by uid 500); 11 Jun 2011 04:26:50 -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 66184 invoked by uid 99); 11 Jun 2011 04:26:48 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 11 Jun 2011 04:26:48 +0000 X-ASF-Spam-Status: No, hits=0.6 required=5.0 tests=FREEMAIL_FROM,MIME_QP_LONG_LINE,RCVD_IN_DNSWL_LOW,RFC_ABUSE_POST,SPF_PASS,URI_HEX X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of taariql@gmail.com designates 74.125.82.173 as permitted sender) Received: from [74.125.82.173] (HELO mail-wy0-f173.google.com) (74.125.82.173) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 11 Jun 2011 04:26:41 +0000 Received: by wyb42 with SMTP id 42so2698110wyb.32 for ; Fri, 10 Jun 2011 21:26:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:subject:references:from:content-type:x-mailer :in-reply-to:message-id:date:to:content-transfer-encoding :mime-version; bh=IoY40l9kCLsqPMXoD1Y/L4oEaYuKYx/aycS1MVDLntM=; b=Fd3ZK3ql8bcjk9O9OjurSw9QdemFDQBVZNilMhR0YxffHaS9kyInVu/deyx5/Ck8v7 ZwriwVCmg/2D574LCnswr6H5tE3MaCfbfHR6ORmMoRBJbBwxDP27uGi0zbbhbf7yu+er 5rNOkCrxPgvRzXw9tKX0wA9q8jjlD51Lg/a2I= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:references:from:content-type:x-mailer:in-reply-to :message-id:date:to:content-transfer-encoding:mime-version; b=jVxQYPswYIiRqP15fJFnHZj5cJbO5DdMyw7J/w4uOJI9u8ugwfa1DXWlZ+EJ9oH/au IaQFohOvGI8kfkFOInY40rDroDQqB36/uGCFcPh1r0sVIgWN8RwbkSaa+he9fq9u2S2Q EhtBCFubSOY6eGUApnRTp89HhvhIPrZwZtB6A= Received: by 10.227.128.20 with SMTP id i20mr2902578wbs.3.1307766378750; Fri, 10 Jun 2011 21:26:18 -0700 (PDT) Received: from [192.168.0.6] (41-135-96-249.dsl.mweb.co.za [41.135.96.249]) by mx.google.com with ESMTPS id p21sm2509830wbh.6.2011.06.10.21.26.03 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 10 Jun 2011 21:26:17 -0700 (PDT) Subject: Re: camel bindy exception References: <1307715811688-4476292.post@n5.nabble.com> From: Taariq Levack Content-Type: text/plain; charset=us-ascii X-Mailer: iPhone Mail (8B117) In-Reply-To: <1307715811688-4476292.post@n5.nabble.com> Message-Id: <9446A98E-12A2-4991-97D4-4FEDFBAC7C53@gmail.com> Date: Sat, 11 Jun 2011 06:25:26 +0200 To: "users@camel.apache.org" Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (iPhone Mail 8B117) Hi Can I see your bindy annotations? On 10 Jun 2011, at 4:23 PM, sumatheja wrote: > Hi, > I'm using camel to read to csv file and persist the values to a database= . > Given below is my route >=20 > from("file:src/data?delay=3D10000") > .unmarshal().bindy(BindyType.Csv, "com.avnet") > .process(myProcessor) > .split(body()) > .to("jpa:com.avnet.RenQuotaIFaceAll"); >=20 > the processor here does the task of stuffing the beans into a list. >=20 > when i try to add more than 5 values in csv it is giving the following err= or >=20 > java.lang.IllegalArgumentException: No position 5 defined for the field : 5= , > line : 1 must be specified > at org.apache.camel.util.ObjectHelper.notNull(ObjectHelper.java:277) > at > org.apache.camel.dataformat.bindy.BindyCsvFactory.bind(BindyCsvFactory.jav= a:156) > at > org.apache.camel.dataformat.bindy.csv.BindyCsvDataFormat.unmarshal(BindyCs= vDataFormat.java:169) > at > org.apache.camel.processor.UnmarshalProcessor.process(UnmarshalProcessor.j= ava:56) > at > org.apache.camel.impl.converter.AsyncProcessorTypeConverter$ProcessorToAsy= ncProcessorBridge.process(AsyncProcessorTypeConverter.java:50) > at > org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.ja= va:77) > at > org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyn= cProcessor.java:98) > at > org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncPro= cessor.java:89) > at > org.apache.camel.management.InstrumentationProcessor.process(Instrumentati= onProcessor.java:68) > at > org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.ja= va:77) > at > org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyn= cProcessor.java:98) > at > org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncPro= cessor.java:89) > at > org.apache.camel.processor.interceptor.TraceInterceptor.process(TraceInter= ceptor.java:99) > at > org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.ja= va:77) > at > org.apache.camel.processor.RedeliveryErrorHandler.processErrorHandler(Rede= liveryErrorHandler.java:299) > at > org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorH= andler.java:208) > at > org.apache.camel.processor.DefaultChannel.process(DefaultChannel.java:269)= > at > org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.ja= va:77) > at org.apache.camel.processor.Pipeline.process(Pipeline.java:125) > at org.apache.camel.processor.Pipeline.process(Pipeline.java:80) > at > org.apache.camel.processor.UnitOfWorkProcessor.process(UnitOfWorkProcessor= .java:139) > at > org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.ja= va:77) > at > org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyn= cProcessor.java:98) > at > org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncPro= cessor.java:89) > at > org.apache.camel.management.InstrumentationProcessor.process(Instrumentati= onProcessor.java:68) > at > org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.ja= va:77) > at > org.apache.camel.component.direct.DirectProducer.process(DirectProducer.ja= va:61) > at > org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.ja= va:77) > at > org.apache.camel.processor.SendProcessor$2.doInAsyncProducer(SendProcessor= .java:104) > at > org.apache.camel.impl.ProducerCache.doInAsyncProducer(ProducerCache.java:2= 72) > at org.apache.camel.processor.SendProcessor.process(SendProcessor.java:= 98) > at > org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.ja= va:77) > at > org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyn= cProcessor.java:98) > at > org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncPro= cessor.java:89) > at > org.apache.camel.management.InstrumentationProcessor.process(Instrumentati= onProcessor.java:68) > at > org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.ja= va:77) > at > org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyn= cProcessor.java:98) > at > org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncPro= cessor.java:89) > at > org.apache.camel.processor.interceptor.TraceInterceptor.process(TraceInter= ceptor.java:99) > at > org.apache.camel.processor.DefaultChannel.process(DefaultChannel.java:269)= > at > org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.ja= va:77) > at > org.apache.camel.processor.RedeliveryErrorHandler.processErrorHandler(Rede= liveryErrorHandler.java:299) > at > org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorH= andler.java:208) > at > org.apache.camel.processor.UnitOfWorkProcessor.process(UnitOfWorkProcessor= .java:109) > at > org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.ja= va:77) > at > org.apache.camel.processor.MulticastProcessor.doProcessSequential(Multicas= tProcessor.java:582) > at > org.apache.camel.processor.MulticastProcessor.doProcessSequential(Multicas= tProcessor.java:511) > at > org.apache.camel.processor.MulticastProcessor.process(MulticastProcessor.j= ava:211) > at > org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.ja= va:77) > at > org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyn= cProcessor.java:98) > at > org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncPro= cessor.java:89) > at > org.apache.camel.management.InstrumentationProcessor.process(Instrumentati= onProcessor.java:68) > at > org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.ja= va:77) > at > org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyn= cProcessor.java:98) > at > org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncPro= cessor.java:89) > at > org.apache.camel.processor.interceptor.TraceInterceptor.process(TraceInter= ceptor.java:99) > at > org.apache.camel.processor.DefaultChannel.process(DefaultChannel.java:269)= > at > org.apache.camel.processor.UnitOfWorkProcessor.process(UnitOfWorkProcessor= .java:109) > at > org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.ja= va:77) > at > org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyn= cProcessor.java:98) > at > org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncPro= cessor.java:89) > at > org.apache.camel.management.InstrumentationProcessor.process(Instrumentati= onProcessor.java:68) > at > org.apache.camel.component.file.GenericFileConsumer.processExchange(Generi= cFileConsumer.java:330) > at > org.apache.camel.component.file.GenericFileConsumer.processBatch(GenericFi= leConsumer.java:157) > at > org.apache.camel.component.file.GenericFileConsumer.poll(GenericFileConsum= er.java:121) > at > org.apache.camel.impl.ScheduledPollConsumer.run(ScheduledPollConsumer.java= :97) > at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:4= 41) > at > java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)= > at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150) > at > java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.acces= s$101(ScheduledThreadPoolExecutor.java:98) > at > java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPe= riodic(ScheduledThreadPoolExecutor.java:180) > at > java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(S= cheduledThreadPoolExecutor.java:204) > at > java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.= java:886) > at > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java= :908) > at java.lang.Thread.run(Thread.java:662) >=20 >=20 > can anyone let me know if there is a restriction on the number of values i= n > the CSV??? >=20 > -- > View this message in context: http://camel.465427.n5.nabble.com/camel-bind= y-exception-tp4476292p4476292.html > Sent from the Camel - Users mailing list archive at Nabble.com.