Camel PropertyPlaceholder in blueprint for boolean attribute cannot be set
Issue
- We have the following blueprint.xml file below,
<blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"
xmlns:cm="http://aries.apache.org/blueprint/xmlns/blueprint-cm/v1.1.0"
xmlns:prop="http://camel.apache.org/schema/placeholder"
<cm:property-placeholder persistent-id="myid">
<cm:default-properties>
<cm:property name="mybooleankey" value="false" ></cm:property>
</cm:default-properties>
</cm:property-placeholder>
<camelContext>
<split prop:parallelProcessing="mybooleankey">
</camelContext>
- Since Fuse 6.2 the following log output occurs:
06:20:32,837 | WARN | rint Extender: 3 | ProcessorDefinitionHelper | 198 - org.apache.camel.camel-core - 2.15.1.redhat-620133 | Could not restore definition properties
java.lang.IllegalArgumentException: Could not find a suitable setter for property: parallelProcessing as there isn't a setter method with same type: java.lang.String nor type conversion possible:
- The value of the key seems not to get resolved anymore.
Environment
- Red Hat JBoss Fuse
- 6.x
- Apache Aries Blueprint
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.