Description
When using a route like
<camelContext xmlns="http://camel.apache.org/schema/spring"> <propertyPlaceholder id="properties" location="classpath:my.properties" xmlns="http://camel.apache.org/schema/spring" /> <route> <from uri="direct:start" /> <multicast prop:stopOnException="stop"> <to uri="mock:a" /> <to uri="mock:b" /> </multicast> </route> </camelContext>
The following exception is thrown:
java.lang.IllegalArgumentException: Could not find a suitable setter for property: stopOnException as there isn't a setter method with same type: java.lang.String nor type conversion possible: {{stop}} at org.apache.camel.util.IntrospectionSupport.setProperty(IntrospectionSupport.java:561) at org.apache.camel.util.IntrospectionSupport.setProperty(IntrospectionSupport.java:571) at org.apache.camel.util.IntrospectionSupport.setProperties(IntrospectionSupport.java:454) at org.apache.camel.model.ProcessorDefinitionHelper$1.run(ProcessorDefinitionHelper.java:623) at org.apache.camel.model.ProcessorDefinitionHelper$RestoreAction.run(ProcessorDefinitionHelper.java:572) at org.apache.camel.model.ProcessorDefinition.makeProcessor(ProcessorDefinition.java:491) at org.apache.camel.model.ProcessorDefinition.addRoutes(ProcessorDefinition.java:218) at org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:1025) at org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:185) at org.apache.camel.impl.DefaultCamelContext.startRoute(DefaultCamelContext.java:841) at org.apache.camel.impl.DefaultCamelContext.startRouteDefinitions(DefaultCamelContext.java:2895) at org.apache.camel.impl.DefaultCamelContext.doStartCamel(DefaultCamelContext.java:2618) at org.apache.camel.impl.DefaultCamelContext.access$000(DefaultCamelContext.java:167) at org.apache.camel.impl.DefaultCamelContext$2.call(DefaultCamelContext.java:2467) at org.apache.camel.impl.DefaultCamelContext$2.call(DefaultCamelContext.java:2463) at org.apache.camel.impl.DefaultCamelContext.doWithDefinedClassLoader(DefaultCamelContext.java:2486) at org.apache.camel.impl.DefaultCamelContext.doStart(DefaultCamelContext.java:2463) at org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:61) at org.apache.camel.impl.DefaultCamelContext.start(DefaultCamelContext.java:2432) at org.apache.camel.spring.SpringCamelContext.maybeStart(SpringCamelContext.java:255) at org.apache.camel.spring.SpringCamelContext.onApplicationEvent(SpringCamelContext.java:121) at org.apache.camel.spring.CamelContextFactoryBean.onApplicationEvent(CamelContextFactoryBean.java:332) at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:96) at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:334) at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:950) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:482) at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:139) at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:83)