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

Component auto configuration fails in Java 11

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.0.0
    • Fix Version/s: 3.0.1, 3.1.0
    • Component/s: camel-main
    • Labels:
      None
    • Estimated Complexity:
      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

              • Assignee:
                lb Luca Burgazzoli
                Reporter:
                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