Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-14268

Component auto configuration fails in Java 11

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 3.0.0
    • 3.0.1, 3.1.0
    • camel-main
    • None
    • Unknown

    Description

      I have the following configuration in my application.properties

      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}}
      

      While running this code in against Java 8, the auto configuration works as expected:

      [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}}
      

      When running on Java 11 instead it fails with:

      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}}
      

      Attachments

        Issue Links

          Activity

            People

              lb Luca Burgazzoli
              lb Luca Burgazzoli
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m