Vladimir Kulev created SM-2338:
----------------------------------
Summary: cm:property-placeholder and camelContext conflict with
each other on redeploy
Key: SM-2338
URL: https://issues.apache.org/jira/browse/SM-2338
Project: ServiceMix
Issue Type: Bug
Components: servicemix-camel
Affects Versions: 5.0.1, 5.0.0
Reporter: Vladimir Kulev
Priority: Critical
Attachments: test-bundle.jar
The simple jar bundle (attached) with blueprint below deploys successfully, but
triggers NPE on bundle file update or manual OSGi bundle refresh.
Surprisingly, deploying blueprint.xml directly (instead of a jar bundle) works
fine.
{code:xml}
<blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"
xmlns:cm="http://aries.apache.org/blueprint/xmlns/blueprint-cm/v1.1.0">
<cm:property-placeholder persistent-id="com.example.test">
<cm:default-properties>
<cm:property name="test" value="10"/>
</cm:default-properties>
</cm:property-placeholder>
<camelContext xmlns="http://camel.apache.org/schema/blueprint"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://camel.apache.org/schema/blueprint
http://camel.apache.org/schema/blueprint/camel-blueprint.xsd">
<route>
<from uri="direct:a"/>
<to uri="direct:b"/>
</route>
</camelContext>
</blueprint>
{code}
--
This message was sent by Atlassian JIRA
(v6.2#6252)