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

camel-spring-boot - No converter found capable of converting from type [java.lang.String] to type [org.apache.camel.component.http.HttpClientConfigurer]

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.6.0
    • Fix Version/s: 3.7.0
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      When trying to use a custom http-configurer, I believe I am experiencing a regression when upgrading to Camel 3.6.0

      I am using spring-boot 2.3.4.RELEASE, and I am declaring my custom configurer bean using:

      camel.component.http.http-client-configurer=#httpClientConfig
      

      When updating to Camel 3.6.0, that configuration results in: 

      ***************************
      APPLICATION FAILED TO START
      ***************************
      
      
      Description:
      
      
      Failed to bind properties under 'camel.component.http.http-client-configurer' to org.apache.camel.component.http.HttpClientConfigurer:
      
      
          Property: camel.component.http.http-client-configurer
          Value: httpClientConfig
          Origin: class path resource [application.properties]:1:45
          Reason: No converter found capable of converting from type [java.lang.String] to type [org.apache.camel.component.http.HttpClientConfigurer]
      
      
      Action:
      
      
      Update your application's configuration

       

      See https://github.com/santam85/camel-3.6.0-http-configurer-bean for a reproduction example.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                davsclaus Claus Ibsen
                Reporter:
                santa.85 Marco Santarelli
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: