Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-8780

Camel exec component have trouble to load arguments list from message header

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.14.2, 2.15.2
    • 2.14.3, 2.15.3, 2.16.0
    • camel-exec
    • None
    • Unknown

    Description

      When trying to set the following header:

                  <setHeader headerName="CamelExecCommandArgs" >
                      <simple>"--import" "--export"</simple>
                  </setHeader>
      

      We receive the following error:

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

      Attachments

        Activity

          People

            njiang Willem Jiang
            njiang Willem Jiang
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: