[
https://issues.apache.org/activemq/browse/CAMEL-2803?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=60019#action_60019
]
Christian Mueller commented on CAMEL-2803:
------------------------------------------
@Hadrian, Charles: Thanks for committing and reviewing the patch.
@Russell: Feel free to test if the current trunk fits your needs.
@all: I updated the wiki page:
https://cwiki.apache.org/confluence/display/CAMEL/Bindy
Thanks,
Christian
> 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
> 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.