You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (JIRA)" <ji...@apache.org> on 2013/09/03 10:55:51 UTC
[jira] [Commented] (CAMEL-6700) camel-blueprint - Using
and referrring to SSLContextParameters with property placeholders can lead
to CircularDependencyException
[ https://issues.apache.org/jira/browse/CAMEL-6700?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13756462#comment-13756462 ]
Claus Ibsen commented on CAMEL-6700:
------------------------------------
The problem is only when you define a SSLContextParameters which you refer to from <endpoint>
{code}
<camel:sslContextParameters id="mySsl">
<camel:serverParameters clientAuthentication="REQUIRE"/>
<camel:keyManagers keyPassword="changeit">
<camel:keyStore resource="etc/localhost.ks" password="changeit"/>
</camel:keyManagers>
<camel:trustManagers>
<camel:keyStore resource="etc/localhost.ks" password="changeit"/>
</camel:trustManagers>
</camel:sslContextParameters>
{code}
And with endpoint
{code}
<endpoint id="myNettyServer" uri="netty-http:http://0.0.0.0:{{port}}/foo?ssl=true&sslContextParameters=#mySsl"/>
{code}
> camel-blueprint - Using <endpoint> and referrring to SSLContextParameters with property placeholders can lead to CircularDependencyException
> --------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: CAMEL-6700
> URL: https://issues.apache.org/jira/browse/CAMEL-6700
> Project: Camel
> Issue Type: Bug
> Components: camel-blueprint
> Affects Versions: 2.11.0
> Reporter: Claus Ibsen
> Assignee: Claus Ibsen
> Fix For: 2.11.2, 2.12.0
>
>
> Configuring a blueprint xml file with
> {code}
> <endpoint id="myNettyServer" uri="netty-http:http://0.0.0.0:{{port}}/foo?ssl=true&sslContextParameters=#mySsl"/>
> {code}
> Can lead to ciruclar exceptions
> {code}
> 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
> {code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira