Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-11430 Add support for Spring Boot 2.0.x
  3. CAMEL-12396

Spring Boot 2 - CamelCloudServiceCallSimpleExpressionTest fails

    XMLWordPrintableJSON

    Details

    • Type: Sub-task
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.22.0
    • Component/s: camel-spring-boot
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      It looks like there might be some plumbing issue around auto configuration

      [ERROR] testServiceCall(org.apache.camel.spring.boot.cloud.CamelCloudServiceCallSimpleExpressionTest) Time elapsed: 0.005 s <<< ERROR!
      java.lang.IllegalStateException: Failed to load ApplicationContext
      Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'org.apache.camel.spring.boot.cloud.CamelCloudServiceCallConfigurationAutoConfiguration': Unsatisfied dependency expressed through field 'configurationProperties'; nested exception is org.springframework.boot.context.properties.ConfigurationPropertiesBindException: Error creating bean with name 'camel.cloud-org.apache.camel.spring.boot.cloud.CamelCloudConfigurationProperties': Could not bind properties to 'CamelCloudConfigurationProperties' : prefix=camel.cloud, ignoreInvalidFields=false, ignoreUnknownFields=true; nested exception is org.springframework.boot.context.properties.bind.BindException: Failed to bind properties under 'camel.cloud.service-call.expression' to java.lang.String
      Caused by: org.springframework.boot.context.properties.ConfigurationPropertiesBindException: Error creating bean with name 'camel.cloud-org.apache.camel.spring.boot.cloud.CamelCloudConfigurationProperties': Could not bind properties to 'CamelCloudConfigurationProperties' : prefix=camel.cloud, ignoreInvalidFields=false, ignoreUnknownFields=true; nested exception is org.springframework.boot.context.properties.bind.BindException: Failed to bind properties under 'camel.cloud.service-call.expression' to java.lang.String
      Caused by: org.springframework.boot.context.properties.bind.BindException: Failed to bind properties under 'camel.cloud.service-call.expression' to java.lang.String
      Caused by: java.lang.IllegalArgumentException: Could not resolve placeholder 'header.CamelServiceCallScheme' in value "${header.CamelServiceCallScheme}:http://${header.CamelServiceCallServiceHost}:${header.CamelServiceCallServicePort}/hello"

        Attachments

          Activity

            People

            • Assignee:
              igarashitm Tomohisa Igarashi
              Reporter:
              igarashitm Tomohisa Igarashi
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: