Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-9284

warning in logs when using propertyplaceholder with prop

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.16.0
    • 2.16.1, 2.17.0
    • camel-spring
    • None
    • mac, jdk7

    • Unknown

    Description

      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

      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>
      
      

      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

      Attachments

        Activity

          People

            davsclaus Claus Ibsen
            mtran Minh Tran
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: