camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Russell Pitre (JIRA)" <j...@apache.org>
Subject [jira] Updated: (CAMEL-2803) Bindy - Add ability to configure Bindy to remove whitespace when binding Integer positions
Date Wed, 09 Jun 2010 18:54:52 GMT

     [ https://issues.apache.org/activemq/browse/CAMEL-2803?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Russell Pitre updated CAMEL-2803:
---------------------------------

    Description: 
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}
\\
\\


  was:
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}


> 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
>
> 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.


Mime
View raw message