You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Tomohisa Igarashi (JIRA)" <ji...@apache.org> on 2018/03/28 20:30:00 UTC

[jira] [Commented] (CAMEL-12396) Spring Boot 2 - CamelCloudServiceCallSimpleExpressionTest fails

    [ https://issues.apache.org/jira/browse/CAMEL-12396?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16418063#comment-16418063 ] 

Tomohisa Igarashi commented on CAMEL-12396:
-------------------------------------------

So we don't want placeholders to be evaluated by spring as it's supposed to be evaluated in Camel. Looking for a way to disable it.

> Spring Boot 2 - CamelCloudServiceCallSimpleExpressionTest fails
> ---------------------------------------------------------------
>
>                 Key: CAMEL-12396
>                 URL: https://issues.apache.org/jira/browse/CAMEL-12396
>             Project: Camel
>          Issue Type: Sub-task
>          Components: camel-spring-boot
>            Reporter: Tomohisa Igarashi
>            Assignee: Tomohisa Igarashi
>            Priority: Major
>             Fix For: 2.22.0
>
>
> It looks like there might be some plumbing issue around auto configuration
> {code:none}
> [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"{code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)