Minh Tran created CAMEL-9284:
--------------------------------
Summary: warning in logs when using propertyplaceholder with prop
Key: CAMEL-9284
URL: https://issues.apache.org/jira/browse/CAMEL-9284
Project: Camel
Issue Type: Bug
Components: camel-spring
Affects Versions: 2.16.0
Environment: mac, jdk7
Reporter: Minh Tran
Priority: Minor
After upgrading to Camel 2.16.0, I’m starting to get warning messages appear in
my logs whenever a route is using a propertyplaceholder with the prop prefix,
eg <aggregate prop:completionInterval="pricing.rrp.aggregation.timeout"
strategyRef="useLatestAggregationStrategy">
The warning is
{noformat}
2015-11-02 16:28:53,261 [main] WARN
org.apache.camel.model.ProcessorDefinitionHelper - Could not restore definition
properties
java.lang.IllegalArgumentException: Could not find a suitable setter for
property: completionInterval as there isn't a setter method with same type:
java.lang.String nor type conversion possible: For input string:
"{{pricing.rrp.aggregation.timeout}}"
at
org.apache.camel.util.IntrospectionSupport.setProperty(IntrospectionSupport.java:567)
~[camel-core-2.16.0.jar:2.16.0]
at
org.apache.camel.util.IntrospectionSupport.setProperty(IntrospectionSupport.java:577)
~[camel-core-2.16.0.jar:2.16.0]
at
org.apache.camel.util.IntrospectionSupport.setProperties(IntrospectionSupport.java:456)
~[camel-core-2.16.0.jar:2.16.0]
at
org.apache.camel.model.ProcessorDefinitionHelper$1.run(ProcessorDefinitionHelper.java:629)
~[camel-core-2.16.0.jar:2.16.0]
at
org.apache.camel.model.ProcessorDefinitionHelper$RestoreAction.run(ProcessorDefinitionHelper.java:578)
[camel-core-2.16.0.jar:2.16.0]
at
org.apache.camel.model.ProcessorDefinition.makeProcessor(ProcessorDefinition.java:498)
[camel-core-2.16.0.jar:2.16.0]
at
org.apache.camel.model.ProcessorDefinition.addRoutes(ProcessorDefinition.java:219)
[camel-core-2.16.0.jar:2.16.0]
at
org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:1069)
[camel-core-2.16.0.jar:2.16.0]
at
org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:196)
[camel-core-2.16.0.jar:2.16.0]
at
org.apache.camel.impl.DefaultCamelContext.startRoute(DefaultCamelContext.java:944)
[camel-core-2.16.0.jar:2.16.0]
at
org.apache.camel.impl.DefaultCamelContext.startRouteDefinitions(DefaultCamelContext.java:3245)
[camel-core-2.16.0.jar:2.16.0]
at
org.apache.camel.impl.DefaultCamelContext.doStartCamel(DefaultCamelContext.java:2968)
[camel-core-2.16.0.jar:2.16.0]
at
org.apache.camel.impl.DefaultCamelContext.access$000(DefaultCamelContext.java:172)
[camel-core-2.16.0.jar:2.16.0]
at
org.apache.camel.impl.DefaultCamelContext$2.call(DefaultCamelContext.java:2799)
[camel-core-2.16.0.jar:2.16.0]
at
org.apache.camel.impl.DefaultCamelContext$2.call(DefaultCamelContext.java:2795)
[camel-core-2.16.0.jar:2.16.0]
at
org.apache.camel.impl.DefaultCamelContext.doWithDefinedClassLoader(DefaultCamelContext.java:2818)
[camel-core-2.16.0.jar:2.16.0]
at
org.apache.camel.impl.DefaultCamelContext.doStart(DefaultCamelContext.java:2795)
[camel-core-2.16.0.jar:2.16.0]
at
org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:61)
[camel-core-2.16.0.jar:2.16.0]
at
org.apache.camel.impl.DefaultCamelContext.start(DefaultCamelContext.java:2764)
[camel-core-2.16.0.jar:2.16.0]
at
org.apache.camel.test.spring.CamelSpringTestContextLoader$7.execute(CamelSpringTestContextLoader.java:515)
[camel-test-spring-2.16.0.jar:2.16.0]
at
org.apache.camel.test.spring.CamelSpringTestHelper.doToSpringCamelContexts(CamelSpringTestHelper.java:92)
[camel-test-spring-2.16.0.jar:2.16.0]
<snip>
{noformat}
The unit tests I have written still all pass but this warning appears whenever
camel is starting up. Should I be worried or can I ignore it? Thanks
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)