Return-Path: Delivered-To: apmail-camel-users-archive@www.apache.org Received: (qmail 17958 invoked from network); 1 Jun 2010 06:36:05 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 1 Jun 2010 06:36:05 -0000 Received: (qmail 73493 invoked by uid 500); 1 Jun 2010 06:36:04 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 73449 invoked by uid 500); 1 Jun 2010 06:36:03 -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 73441 invoked by uid 99); 1 Jun 2010 06:36:03 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Jun 2010 06:36:03 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=AWL,FREEMAIL_FROM,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of claus.ibsen@gmail.com designates 74.125.82.45 as permitted sender) Received: from [74.125.82.45] (HELO mail-ww0-f45.google.com) (74.125.82.45) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Jun 2010 06:35:58 +0000 Received: by wwb13 with SMTP id 13so300941wwb.32 for ; Mon, 31 May 2010 23:35:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:in-reply-to :references:from:date:message-id:subject:to:content-type :content-transfer-encoding; bh=22YUM0mrFdgXUyX6f6P/9DYiE7S4IBs3GdGGC+cESk4=; b=mYNnAYB34sEPUSMv5r9btjbvXqWX12FRMf8eJ3rCX0AL6/wkykVhgUs+kO+xmag2P8 dx/HIP6ZMzDF3Pm4c0/b+6Jnnv3Cp5Dm9cr+fVVMrIwRJfFlfFd2AzypNDI4Pd5aAA2Q vGqeylu2RX9gA1EMKaiJeSazbQhdY0ysG9bBo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type:content-transfer-encoding; b=MWAd+i/x5CrEyii8d1EutsdhPi/lEBAZ8cTerVud5hhw/HMaBLfXPEBjKhadE7tFJw KyP4ilqWYnWZ9I1XU+FRfuTfj3BTZvgjj6rLXG1YTaLkl0YSqbvl5hSSbYr4gMJjkTlO ZvblnUda2z0quxDC1AK5lRLLDqqheq/0P2G3k= Received: by 10.216.170.70 with SMTP id o48mr4972619wel.71.1275374137138; Mon, 31 May 2010 23:35:37 -0700 (PDT) MIME-Version: 1.0 Received: by 10.216.6.140 with HTTP; Mon, 31 May 2010 23:35:17 -0700 (PDT) In-Reply-To: References: From: Claus Ibsen Date: Tue, 1 Jun 2010 08:35:17 +0200 Message-ID: Subject: Re: Bindy CSV not Marshaling To: users@camel.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On Mon, May 31, 2010 at 7:55 AM, Claus Ibsen wrote: > On Mon, May 31, 2010 at 7:50 AM, Nick Heudecker wr= ote: >> Thanks for the response. =A0There appear to be two bugs with Bindy 2.3.0= . >> First, BindyAbstractFactory#generateKey() creates an invalid number if y= ou >> don't define a @Section annotation. =A0You'll get a key like 'null000', >> resulting in a NumberFormatException. >> >> Next, Bindy doesn't support Booleans or booleans. >> How do you want to map booleans? I have never seen any CSV file with "true" or "false" as values. You most likely need to define a custom mapping scheme. Such as "Y" =3D true, "N" =3D false etc. And so you can use String type and add a isXXX boolean method yourself in the bean. Having a mapping for boolean in Bindy is of course nice but I think it requires additional mapping definition to set the rules. > > Can you create tickets in JIRA about the bugs and if possible a little > piece of sample to go along? > http://issues.apache.org/activemq/browse/CAMEL > I created the ticket https://issues.apache.org/activemq/browse/CAMEL-2773 >> >> >> On Sun, May 30, 2010 at 1:57 AM, Claus Ibsen wro= te: >> >>> On Sun, May 30, 2010 at 5:30 AM, Nick Heudecker >>> wrote: >>> > Are there known issues with Bindy and marshaling POJOs to CSV? =A0I >>> followed >>> > the example and my objects aren't getting past the marshal(...) step = with >>> > data. =A0I'm getting a zero-length byte[] in the exchange after the >>> > marshal(...) step. =A0What am I missing? >>> > >>> >>> Hi >>> >>> You may have to add more details. What Camel version. What does your >>> POJO looks like with the annotations. >>> Can you see an exception in the logs etc. >>> >>> At first I suggest to take a look at the unit tests of camel-bindy or >>> chapter 3 in the Camel in Action book which contains a Bindy example. >>> The source code for the book is free so you can actually find the >>> source code for the example there. >>> >>> >>> -- >>> Claus Ibsen >>> Apache Camel Committer >>> >>> Author of Camel in Action: http://www.manning.com/ibsen/ >>> Open Source Integration: http://fusesource.com >>> Blog: http://davsclaus.blogspot.com/ >>> Twitter: http://twitter.com/davsclaus >>> >> > > > > -- > Claus Ibsen > Apache Camel Committer > > Author of Camel in Action: http://www.manning.com/ibsen/ > Open Source Integration: http://fusesource.com > Blog: http://davsclaus.blogspot.com/ > Twitter: http://twitter.com/davsclaus > --=20 Claus Ibsen Apache Camel Committer Author of Camel in Action: http://www.manning.com/ibsen/ Open Source Integration: http://fusesource.com Blog: http://davsclaus.blogspot.com/ Twitter: http://twitter.com/davsclaus