Hi all,
I am migrating an application from Spring dsl to blueprint.
This worked previously:
<bean id="webServiceRequestCreator"
class="com.tradestonesoftware.aiConverter.service.WebServiceRequestCreator">
<property name="extractall" value="${aiextractor.extractall}"/>
"/>
</bean>
in conjunction with this bean method:
public void setExtractall(boolean extractall)
this.extractall = extractall;
So the value was being converted to a boolean with some built in type
converter.
With the blueprint version, I get this error when I try to deploy:
org.osgi.service.blueprint.container.ComponentDefinitionException: Error
setting property: PropertyDescriptor <name: extractall, getter: null,
setter: [class
com.tradestonesoftware.aiConverter.service.WebServiceRequestCreator.setExtractall(boolean)]
at
org.apache.aries.blueprint.container.BeanRecipe.setProperty(BeanRecipe.java:941)
Caused by: java.lang.RuntimeException: Invalid boolean value:
${aiextractor.extractall}
Does this mean that I have to modify my beans to always use Strings and do
my own Boolean.parseBoolean(String) on the input? Or is there a way to
invoke a converter?
Thanks,
Carl
I am migrating an application from Spring dsl to blueprint.
This worked previously:
<bean id="webServiceRequestCreator"
class="com.tradestonesoftware.aiConverter.service.WebServiceRequestCreator">
<property name="extractall" value="${aiextractor.extractall}"/>
"/>
</bean>
in conjunction with this bean method:
public void setExtractall(boolean extractall)
this.extractall = extractall;
So the value was being converted to a boolean with some built in type
converter.
With the blueprint version, I get this error when I try to deploy:
org.osgi.service.blueprint.container.ComponentDefinitionException: Error
setting property: PropertyDescriptor <name: extractall, getter: null,
setter: [class
com.tradestonesoftware.aiConverter.service.WebServiceRequestCreator.setExtractall(boolean)]
at
org.apache.aries.blueprint.container.BeanRecipe.setProperty(BeanRecipe.java:941)
Caused by: java.lang.RuntimeException: Invalid boolean value:
${aiextractor.extractall}
Does this mean that I have to modify my beans to always use Strings and do
my own Boolean.parseBoolean(String) on the input? Or is there a way to
invoke a converter?
Thanks,
Carl