camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Willem Jiang (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CAMEL-8780) Camel exec component have trouble to load arguments list from message header
Date Mon, 18 May 2015 05:21:59 GMT

    [ https://issues.apache.org/jira/browse/CAMEL-8780?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14547545#comment-14547545
] 

Willem Jiang commented on CAMEL-8780:
-------------------------------------

It turns out that DefaultExecBinding try to turn the String into a List, but other type converter
just introduces an exception when doing it.


> Camel exec component have trouble to load arguments list from message header
> ----------------------------------------------------------------------------
>
>                 Key: CAMEL-8780
>                 URL: https://issues.apache.org/jira/browse/CAMEL-8780
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-exec
>    Affects Versions: 2.14.2, 2.15.2
>            Reporter: Willem Jiang
>            Assignee: Willem Jiang
>             Fix For: 2.14.3, 2.16.0, 2.15.3
>
>
> When trying to set the following header:
> {code}
>             <setHeader headerName="CamelExecCommandArgs" >
>                 <simple>"--import" "--export"</simple>
>             </setHeader>
> {code}
> We receive the following error:
> {code}
> org.apache.camel.TypeConversionException: Error during type conversion from type: java.lang.String
to the required type: java.util.List with value "--import" "--export" due java.lang.NumberFormatException:
For input string: ""--import" "--export""
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message