You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by "Russell Pitre (JIRA)" <ji...@apache.org> on 2010/06/09 20:54:51 UTC

[jira] Created: (CAMEL-2803) Bindy - Add ability to configure Bindy to remove whitespace when binding Integer positions

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.


[jira] Commented: (CAMEL-2803) Bindy - Add ability to configure Bindy to remove whitespace when binding Integer positions

Posted by "Christian Mueller (JIRA)" <ji...@apache.org>.
    [ 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.


[jira] Updated: (CAMEL-2803) Bindy - Add ability to configure Bindy to remove whitespace when binding Integer positions

Posted by "Christian Mueller (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/CAMEL-2803?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Christian Mueller updated CAMEL-2803:
-------------------------------------

    Attachment: CAMEL-2803.patch

attached the patch which fixed this issue (still waiting for the karma)

I added the new 'trim' property to the 'org.apache.camel.dataformat.bindy.annotation.DataField' annotation.

I will update the wiki page, after this patch is committed.

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


[jira] Resolved: (CAMEL-2803) Bindy - Add ability to configure Bindy to remove whitespace when binding Integer positions

Posted by "Christian Mueller (JIRA)" <ji...@apache.org>.
     [ 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.


[jira] Work stopped: (CAMEL-2803) Bindy - Add ability to configure Bindy to remove whitespace when binding Integer positions

Posted by "Christian Mueller (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/CAMEL-2803?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Work on CAMEL-2803 stopped by Christian Mueller.

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


[jira] Updated: (CAMEL-2803) Bindy - Add ability to configure Bindy to remove whitespace when binding Integer positions

Posted by "Russell Pitre (JIRA)" <ji...@apache.org>.
     [ 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.


[jira] Commented: (CAMEL-2803) Bindy - Add ability to configure Bindy to remove whitespace when binding Integer positions

Posted by "Charles Moulliard (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/CAMEL-2803?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=60014#action_60014 ] 

Charles Moulliard commented on CAMEL-2803:
------------------------------------------

Hi Christian,

Thanks for the patch. I will take care of that and check it tomorrow.

KR,

Charles

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


[jira] Assigned: (CAMEL-2803) Bindy - Add ability to configure Bindy to remove whitespace when binding Integer positions

Posted by "Christian Mueller (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/CAMEL-2803?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Christian Mueller reassigned CAMEL-2803:
----------------------------------------

    Assignee: Christian Mueller

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


[jira] Work started: (CAMEL-2803) Bindy - Add ability to configure Bindy to remove whitespace when binding Integer positions

Posted by "Christian Mueller (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/CAMEL-2803?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Work on CAMEL-2803 started by Christian Mueller.

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


[jira] Issue Comment Edited: (CAMEL-2803) Bindy - Add ability to configure Bindy to remove whitespace when binding Integer positions

Posted by "Hadrian Zbarcea (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/CAMEL-2803?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=60013#action_60013 ] 

Hadrian Zbarcea edited comment on CAMEL-2803 at 6/10/10 9:41 AM:
-----------------------------------------------------------------

Patch applied with thanks to Christian.

Forgot to mention, I only had to remove a System.out from the test other than that looks great and it passed checkstyle too. Thanks again.

      was (Author: hadrian):
    Patch applied with thanks to 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.


[jira] Commented: (CAMEL-2803) Bindy - Add ability to configure Bindy to remove whitespace when binding Integer positions

Posted by "Hadrian Zbarcea (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/CAMEL-2803?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=60013#action_60013 ] 

Hadrian Zbarcea commented on CAMEL-2803:
----------------------------------------

Patch applied with thanks to 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.