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

camel-blueprint - Using <endpoint> and referrring to SSLContextParameters with property placeholders can lead to CircularDependencyException

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.11.0
    • 2.10.7, 2.11.2, 2.12.0
    • camel-blueprint
    • None
    • Unknown

    Description

      Configuring a blueprint xml file with

          <endpoint id="myNettyServer" uri="netty-http:http://0.0.0.0:{{port}}/foo?ssl=true&amp;sslContextParameters=#mySsl"/>
      

      Can lead to ciruclar exceptions

      Caused by: org.apache.aries.blueprint.di.CircularDependencyException: [BeanRecipe[name='mySsl'], BeanRecipe[name='.camelBlueprint.factory.mySsl'], BeanRecipe[name='camel-4'], BeanRecipe[name='myNettyServer'], BeanRecipe[name='mySsl']]
      	at org.apache.aries.blueprint.container.BlueprintRepository.push(BlueprintRepository.java:343)[7:org.apache.aries.blueprint.core:1.1.0]
      	at org.apache.aries.blueprint.di.AbstractRecipe.create(AbstractRecipe.java:71)[7:org.apache.aries.blueprint.core:1.1.0]
      	at org.apache.aries.blueprint.container.BlueprintRepository.createInstances(BlueprintRepository.java:245)[7:org.apache.aries.blueprint.core:1.1.0]
      	at org.apache.aries.blueprint.container.BlueprintRepository.createInstance(BlueprintRepository.java:230)[7:org.apache.aries.blueprint.core:1.1.0]
      	at org.apache.aries.blueprint.container.BlueprintRepository.create(BlueprintRepository.java:145)[7:org.apache.aries.blueprint.core:1.1.0]
      	at org.apache.aries.blueprint.container.BlueprintContainerImpl.getComponentInstance(BlueprintContainerImpl.java:746)[7:org.apache.aries.blueprint.core:1.1.0]
      	at org.apache.camel.blueprint.BlueprintContainerRegistry.lookupByNameAndType(BlueprintContainerRegistry.java:54)
      	at org.apache.camel.impl.CompositeRegistry.lookupByNameAndType(CompositeRegistry.java:52)
      	... 125 more
      

      Attachments

        Activity

          People

            davsclaus Claus Ibsen
            davsclaus Claus Ibsen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: