Luca Burgazzoli created CAMEL-14268:
---------------------------------------
Summary: Component auto configuration fails in Java 11
Key: CAMEL-14268
URL: https://issues.apache.org/jira/browse/CAMEL-14268
Project: Camel
Issue Type: Bug
Components: camel-main
Affects Versions: 3.0.0
Reporter: Luca Burgazzoli
I have the following configuration in my application.properties
{code}
camel.component.fhir.configuration =
#class:org.apache.camel.component.fhir.FhirConfiguration
camel.component.fhir.configuration.log = false
camel.component.fhir.configuration.server-url = {{camel.fhir.test-url}}
{code}
While running this code in against Java 8, the auto configuration works as
expected:
{code}
[org.apa.cam.mai.BaseMainSupport] (main) Auto-configuration summary:
[org.apa.cam.mai.BaseMainSupport] (main)
camel.component.fhir.configuration=#class:org.apache.camel.component.fhir.FhirConfiguration
[org.apa.cam.mai.BaseMainSupport] (main)
camel.component.fhir.configuration.log=false
[org.apa.cam.mai.BaseMainSupport] (main)
camel.component.fhir.configuration.server-url={{camel.fhir.test-url}}
{code}
When running on Java 11 instead it fails with:
{code}
Error binding property
(camel.component.fhir..configuration.server-url={{camel.fhir.test-url}}) with
name: configuration.serverurl on bean:
org.apache.camel.component.fhir.FhirComponent@5e557671 with value:
{{camel.fhir.test-url}}
Caused by: org.apache.camel.PropertyBindingException: Error binding property
(camel.component.fhir..configuration.server-url={{camel.fhir.test-url}}) with
name: configuration.serverurl on bean:
org.apache.camel.component.fhir.FhirComponent@5e557671 with value:
{{camel.fhir.test-url}}
{code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)