You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Luca Burgazzoli (Jira)" <ji...@apache.org> on 2019/12/10 09:44:00 UTC
[jira] [Resolved] (CAMEL-14268) Component auto configuration fails
in Java 11
[ https://issues.apache.org/jira/browse/CAMEL-14268?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Luca Burgazzoli resolved CAMEL-14268.
-------------------------------------
Resolution: Fixed
> 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
>
> Time Spent: 20m
> Remaining Estimate: 0h
>
> 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)