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

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

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment