Uploaded image for project: 'Red Hat Fuse'
  1. Red Hat Fuse
  2. ENTESB-12012

camel bundle is throwing Run time exception Property with key [xxx.yyy] not found in properties from text: {{xxx.yyy}}

    XMLWordPrintable

Details

    • Task
    • Resolution: Not a Bug
    • Major
    • None
    • fuse-7.4-GA
    • Camel
    • None
    • % %

    Description

      camel bundle is failing when making use of cm:propertyplaceholder and
      @PropertyInject("xxx.yyy")

      stacktrace:

      org.osgi.service.blueprint.container.ComponentDefinitionException: Unable to initialize bean .camelBlueprint.factory.tester
      	at org.apache.aries.blueprint.container.BeanRecipe.runBeanProcInit(BeanRecipe.java:593)
      	at org.apache.aries.blueprint.container.BeanRecipe.internalCreate2(BeanRecipe.java:703)
      
      ----------------------------------------------------------------------------------------------------------------------
      ------------------------------------------------------------------------------------------------------------------------
      Caused by: org.apache.camel.NoSuchBeanException: Cannot lookup: routes from registry: org.apache.camel.blueprint.BlueprintContainerRegistry@13d9c237 with expected type: interface org.apache.camel.RoutesBuilder due: Cound not create component instance for routes
      -----------------------------------------------------------------------------------------------------------------------
      ----------------------------------------------------------------------------------------------------------------------
      Caused by: org.apache.camel.RuntimeCamelException: java.lang.IllegalArgumentException: Property with key [xxx.yyy] not found in properties from text: {{xxx.yyy}}
      	at org.apache.camel.util.ObjectHelper.wrapRuntimeCamelException(ObjectHelper.java:1830)
      
      

      Issue is intermittent. Success,failure logs attached. Test case also attached

      Attachments

        1. output.txt
          12 kB
        2. output-error.txt
          21 kB
        3. xml_javadsl_properties_example.zip
          53 kB

        Activity

          People

            ggrzybek Grzegorz Grzybek
            rhn-support-kkakarla kodandaRamu kakarla
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: