camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jonathan Anstey (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (CAMEL-9223) IllegalArgumentException when reverting fields using property placeholders
Date Wed, 14 Oct 2015 15:59:05 GMT

     [ https://issues.apache.org/jira/browse/CAMEL-9223?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Jonathan Anstey resolved CAMEL-9223.
------------------------------------
    Resolution: Fixed

[janstey@bender camel-core]$ git push origin 
Counting objects: 22, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (16/16), done.
Writing objects: 100% (22/22), 2.00 KiB | 0 bytes/s, done.
Total 22 (delta 9), reused 0 (delta 0)
To https://git-wip-us.apache.org/repos/asf/camel.git
   d444e86..b09b1a6  camel-2.16.x -> camel-2.16.x
   52a9b2b..d84594d  master -> master


> IllegalArgumentException when reverting fields using property placeholders
> --------------------------------------------------------------------------
>
>                 Key: CAMEL-9223
>                 URL: https://issues.apache.org/jira/browse/CAMEL-9223
>             Project: Camel
>          Issue Type: Bug
>    Affects Versions: 2.16.0
>            Reporter: Jonathan Anstey
>            Assignee: Jonathan Anstey
>             Fix For: 2.17.0, 2.16.1
>
>
> When using a route like
> {code}
> <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>
> {code}
> The following exception is thrown:
> {code}
> 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)
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message