Return-Path: Delivered-To: apmail-camel-dev-archive@www.apache.org Received: (qmail 76510 invoked from network); 10 Jun 2010 19:21:15 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 10 Jun 2010 19:21:15 -0000 Received: (qmail 87171 invoked by uid 500); 10 Jun 2010 19:21:15 -0000 Delivered-To: apmail-camel-dev-archive@camel.apache.org Received: (qmail 87149 invoked by uid 500); 10 Jun 2010 19:21:15 -0000 Mailing-List: contact dev-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@camel.apache.org Delivered-To: mailing list dev@camel.apache.org Received: (qmail 87141 invoked by uid 500); 10 Jun 2010 19:21:15 -0000 Delivered-To: apmail-activemq-camel-dev@activemq.apache.org Received: (qmail 87138 invoked by uid 99); 10 Jun 2010 19:21:15 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 Jun 2010 19:21:15 +0000 X-ASF-Spam-Status: No, hits=-1512.1 required=10.0 tests=ALL_TRUSTED,AWL X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 Jun 2010 19:21:14 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o5AJKs1s003293 for ; Thu, 10 Jun 2010 19:20:54 GMT Message-ID: <19275100.13011276197653993.JavaMail.jira@thor> Date: Thu, 10 Jun 2010 15:20:53 -0400 (EDT) From: "Christian Mueller (JIRA)" To: camel-dev@activemq.apache.org Subject: [jira] Resolved: (CAMEL-2803) Bindy - Add ability to configure Bindy to remove whitespace when binding Integer positions In-Reply-To: <11130606.12081276109691867.JavaMail.jira@thor> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: ae95407df07c98740808b2ef9da0087c [ https://issues.apache.org/activemq/browse/CAMEL-2803?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Christian Mueller resolved CAMEL-2803. -------------------------------------- Fix Version/s: 2.4.0 Resolution: Fixed > Bindy - Add ability to configure Bindy to remove whitespace when binding Integer positions > ------------------------------------------------------------------------------------------ > > Key: CAMEL-2803 > URL: https://issues.apache.org/activemq/browse/CAMEL-2803 > Project: Apache Camel > Issue Type: Improvement > Components: camel-bindy > Reporter: Russell Pitre > Assignee: Christian Mueller > Fix For: 2.4.0 > > Attachments: CAMEL-2803.patch > > > Bindy - Add ability to configure Bindy to remove whitespace when binding Integer positions. A FormatException is thrown when Bindy attempts to bind an Integer type position when whitespace is present. > \\ > \\ > {code} > 08:52:52 DEBUG [org.apache.camel.dataformat.bindy.BindyCsvFactory] Pos : 1, Data : GLT, Field type : class java.lang.String > 08:52:52 DEBUG [org.apache.camel.dataformat.bindy.BindyCsvFactory] Pos : 2, Data : 1-00-00-12500 , Field type : class java.lang.String > 08:52:52 DEBUG [org.apache.camel.dataformat.bindy.BindyCsvFactory] Pos : 3, Data : 05/30/2010, Field type : class java.util.Date > 08:52:53 DEBUG [org.apache.camel.dataformat.bindy.BindyCsvFactory] Pos : 4, Data : , Field type : class java.lang.Integer > 08:52:53 TRACE [org.apache.camel.processor.exceptionpolicy.DefaultExceptionPolicyStrategy] Finding best suited exception policy for thrown exception org.apache.camel.dataformat.bindy.format.FormatException > 08:52:53 TRACE [org.apache.camel.processor.exceptionpolicy.DefaultExceptionPolicyStrategy] Finding best suited exception policy for thrown exception java.lang.IllegalArgumentException > 08:52:53 TRACE [org.apache.camel.processor.exceptionpolicy.DefaultExceptionPolicyStrategy] Found 0 candidates > 08:52:53 DEBUG [org.apache.camel.processor.DefaultErrorHandler] Failed delivery for exchangeId: 9b099be4-b8c6-49b2-acd4-a71cf12dd614. On delivery attempt: 0 caught: java.lang.IllegalArgumentException: String provided does not fit the Integer pattern defined or is not parseable, position : 4, line : 1 > 08:52:53 ERROR [org.apache.camel.processor.DefaultErrorHandler] Failed delivery for exchangeId: 9b099be4-b8c6-49b2-acd4-a71cf12dd614. Exhausted after delivery attempt: 1 caught: java.lang.IllegalArgumentException: String provided does not fit the Integer pattern defined or is not parseable, position : 4, line : 1 > java.lang.IllegalArgumentException: String provided does not fit the Integer pattern defined or is not parseable, position : 4, line : 1 > at org.apache.camel.dataformat.bindy.BindyCsvFactory.bind(BindyCsvFactory.java:194) > at org.apache.camel.dataformat.bindy.csv.BindyCsvDataFormat.unmarshal(BindyCsvDataFormat.java:153) > at org.apache.camel.processor.UnmarshalProcessor.process(UnmarshalProcessor.java:51) > at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:67) > at org.apache.camel.processor.DelegateProcessor.processNext(DelegateProcessor.java:53) > at org.apache.camel.processor.DelegateProcessor.proceed(DelegateProcessor.java:82) > {code} > \\ > \\ -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.