[
https://issues.apache.org/jira/browse/CAMEL-14268?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16991525#comment-16991525
]
Luca Burgazzoli edited comment on CAMEL-14268 at 12/9/19 11:58 AM:
-------------------------------------------------------------------
I suspect the issues is that if you have a properties loader in place, in this
case based on MP Config, then you are not sure about the order the loader uses
to list properties thus it may happen they are not in the order you may expect-
was (Author: lb):
I suspect the issues is that if you have a loader, in this case based on MP
Config, then you are not sure about the order the loader uses to list
properties thus it may happen they are not in the order you may expect-
> 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
> Assignee: Luca Burgazzoli
> Priority: Minor
> Fix For: 3.0.1, 3.1.0
>
>
> 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)