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

Failing blueprint execution displays wrong OSGi status Active

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Information Provided
    • 3.11.1
    • None
    • camel-blueprint, karaf, osgi
    • None
    • Unknown

    Description

      Hello,

      when using Karaf 4.2.11 + camel 3.11.1
      and dropping a blueprint which fails, status is Active whereas it should be Failure.

      To reproduce:

      • start karaf 4.2.11
      • execute:
        karaf@root()> feature:repo-add mvn:org.apache.camel.karaf/apache-camel/3.11.1/xml/features
        karaf@root()> feature:install camel-blueprint
        
      • in deploy dir, drop log.xml
      • check logs:
        16:31:34.160 INFO [fileinstall-C:\_PROGRAMS\apache-karaf-4.2.11/deploy] Installing bundle log.xml / 0.0.0
        16:31:59.985 INFO [fileinstall-C:\_PROGRAMS\apache-karaf-4.2.11/deploy] Karaf BundleStateService not accessible. Bundle state won't reflect Camel context state
        16:32:00.000 INFO [fileinstall-C:\_PROGRAMS\apache-karaf-4.2.11/deploy] Blueprint bundle log.xml/0.0.0 has been started
        16:32:00.001 INFO [Blueprint Event Dispatcher: 1] Attempting to start CamelContext: camel-3
        16:32:00.006 INFO [Blueprint Event Dispatcher: 1] JMX is enabled
        16:32:00.016 WARN [Blueprint Event Dispatcher: 1] Changing Camel state for bundle 334 to Failure
        16:32:00.016 ERROR [Blueprint Event Dispatcher: 1] Error occurred during starting CamelContext: camel-3
        org.apache.camel.FailedToCreateRouteException: Failed to create route route3: Route(route3)[From[log://test?fixedRate=true&period=2000] ->... because of Failed to resolve endpoint: log://test?fixedRate=true&period=2000 due to: Failed to resolve endpoint: log://test?fixedRate=true&period=2000 due to: There are 2 parameters that couldn't be set on the endpoint. Check the uri if the parameters are spelt correctly and that they are properties of the endpoint. Unknown parameters=[{fixedRate=true, period=2000}]
        

      Check bundle status:

      karaf@root()> list | grep log.xml
      334 | Active |  80 | 0.0.0   | log.xml
      

      Seems related to this specific log:

      16:31:59.985 INFO [fileinstall-C:\_PROGRAMS\apache-karaf-4.2.11/deploy] Karaf BundleStateService not accessible. Bundle state won't reflect Camel context state
      

      Did we miss something, another feature to install before?

      Attachments

        1. log.xml
          0.4 kB
          Julien Greffe

        Activity

          People

            Unassigned Unassigned
            jgreffe Julien Greffe
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: