[
https://issues.apache.org/jira/browse/CAMEL-16059?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17273465#comment-17273465
]
Gianpaolo Lopresti commented on CAMEL-16059:
--------------------------------------------
Update: i've created a project from scratch and it works, even with this:
camel.component.http.x509-hostname-verifier = NoopHostnameVerifier
i've also put a route that uses the http component, and the app starts normally.
So i think that the problem is with some dependency (in the original project
i've also tried with the "camel-spring-boot-bom", but this has not solved the
issue.
Maybe i should try to put all the original dependencies to the new project one
at time, but i think that this means that the problem is not into the http
component.
I've found another error message that i haven't seen before:
"ConfigServletWebServerApplicationContext : Exception encountered during
context initialization - cancelling refresh attempt:
org.springframework.beans.factory.UnsatisfiedDependencyException: Error
creating bean with name
'org.apache.camel.component.http.springboot.HttpComponentAutoConfiguration':
Unsatisfied dependency expressed through field 'configuration'; nested
exception is
org.springframework.boot.context.properties.ConfigurationPropertiesBindException:
Error creating bean with name
'camel.component.http-org.apache.camel.component.http.springboot.HttpComponentConfiguration':
Could not bind properties to 'HttpComponentConfiguration' :
prefix=camel.component.http, ignoreInvalidFields=false,
ignoreUnknownFields=true; nested exception is
org.springframework.boot.context.properties.bind.BindException: Failed to bind
properties under 'camel.component.http.x509-hostname-verifier' to
javax.net.ssl.HostnameVerifier"
Thanks [~davsclaus], now i close this issue, and maybe i'm going to open a new
one when i find the real bug.
Regards
> Cannot configure x509 host name verifier on camel http component
> ----------------------------------------------------------------
>
> Key: CAMEL-16059
> URL: https://issues.apache.org/jira/browse/CAMEL-16059
> Project: Camel
> Issue Type: Bug
> Components: camel-http
> Affects Versions: 3.7.0
> Reporter: Gianpaolo Lopresti
> Priority: Major
>
> Hi,
> When using camel-http-starter (with Spring boot), if you try to set the
> property (as per
> https://camel.apache.org/camel-spring-boot/latest/http-starter.html):
> camel.component.http.x509-hostname-verifier = NoopHostnameVerifier
> Camel crashes at start up with the message:
>
> Failed to bind properties under 'camel.component.http.x509-hostname-verifier'
> to javax.net.ssl.HostnameVerifier:
> Property: camel.component.http.x509-hostname-verifier
> Value: NoopHostnameVerifier
> Origin: class path resource [config/application.yml] - 71:31
> Reason: No converter found capable of converting from type
> [java.lang.String] to type [javax.net.ssl.HostnameVerifier]
>
> Thanks.
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)