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

camel-jbang - Export @PropertyInject should support ENV variables

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 4.8.0
    • 4.8.1, 4.9.0
    • camel-jbang
    • None
    • Unknown

    Description

      jbang  export does not work for properties configured as custom.number=env:CUSTOM_NUMBER:12345 and injected as
          @PropertyInject("custom.number")
          private Integer number;
      Error:
      Caused by: org.apache.camel.TypeConversionException: Error during type conversion from type: java.lang.String to the required type: java.lang.Integer with value @@CamelMagicValue@@ due to java.lang.NumberFormatException: For input string: "@@CamelMagicValue@@"

      Attachments

        Activity

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

          People

            davsclaus Claus Ibsen
            davsclaus Claus Ibsen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment