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

ComponentDefinitionException: Unable to initialize bean .cm-2 (Apache Karaf :: Deployer :: Karaf Archive Bundle)

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: jboss-fuse-6.2.1
    • Component/s: None
    • Labels:
      None
    • Environment:

      6.2.1 R9 (621216)
      Fabric (Standard Karaf container is not affected)

    • Workaround Description:
      Hide

      The issue can be resolved by:
      Locating the Apache Karaf :: Deployer :: Karaf Archive bundle
      Stopping the bundle (osgi:stop)
      Then starting the bundle (osgi:start)

      Show
      The issue can be resolved by: Locating the Apache Karaf :: Deployer :: Karaf Archive bundle Stopping the bundle (osgi:stop) Then starting the bundle (osgi:start)

      Description

      After installing the kar feature (mvn:org.apache.karaf.deployer/org.apache.karaf.deployer.kar/2.4.0.redhat-621216) and restarting the container the following exception occurs:

      JBossFuse:karaf@root> 
      rhpro:jboss-fuse-6.2.1.redhat-216 jsherman$ ./bin/fuse
      Please wait while JBoss Fuse is loading...
       30% [=====================>                                                  ][FelixStartLevel] ERROR org.apache.aries.blueprint.container.BlueprintContainerImpl - Unable to start blueprint container for bundle org.apache.karaf.deployer.kar/2.4.0.redhat-621216
      org.osgi.service.blueprint.container.ComponentDefinitionException: Unable to initialize bean .cm-2
      	at org.apache.aries.blueprint.container.BeanRecipe.runBeanProcInit(BeanRecipe.java:738)
      	at org.apache.aries.blueprint.container.BeanRecipe.internalCreate2(BeanRecipe.java:848)
      	at org.apache.aries.blueprint.container.BeanRecipe.internalCreate(BeanRecipe.java:811)
      	at org.apache.aries.blueprint.di.AbstractRecipe$1.call(AbstractRecipe.java:79)
      	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      	at org.apache.aries.blueprint.di.AbstractRecipe.create(AbstractRecipe.java:88)
      	at org.apache.aries.blueprint.container.BlueprintRepository.createInstances(BlueprintRepository.java:247)
      	at org.apache.aries.blueprint.container.BlueprintRepository.createInstance(BlueprintRepository.java:230)
      	at org.apache.aries.blueprint.container.BlueprintRepository.create(BlueprintRepository.java:155)
      	at org.apache.aries.blueprint.container.BlueprintContainerImpl.processProcessors(BlueprintContainerImpl.java:534)
      	at org.apache.aries.blueprint.container.BlueprintContainerImpl.doRun(BlueprintContainerImpl.java:367)
      	at org.apache.aries.blueprint.container.BlueprintContainerImpl.run(BlueprintContainerImpl.java:270)
      	at org.apache.aries.blueprint.container.BlueprintExtender.createContainer(BlueprintExtender.java:294)
      	at org.apache.aries.blueprint.container.BlueprintExtender.createContainer(BlueprintExtender.java:263)
      	at org.apache.aries.blueprint.container.BlueprintExtender.modifiedBundle(BlueprintExtender.java:253)
      	at org.apache.aries.util.tracker.hook.BundleHookBundleTracker$Tracked.customizerModified(BundleHookBundleTracker.java:500)
      	at org.apache.aries.util.tracker.hook.BundleHookBundleTracker$Tracked.customizerModified(BundleHookBundleTracker.java:433)
      	at org.apache.aries.util.tracker.hook.BundleHookBundleTracker$AbstractTracked.track(BundleHookBundleTracker.java:725)
      	at org.apache.aries.util.tracker.hook.BundleHookBundleTracker$Tracked.bundleChanged(BundleHookBundleTracker.java:463)
      	at org.apache.aries.util.tracker.hook.BundleHookBundleTracker$BundleEventHook.event(BundleHookBundleTracker.java:422)
      	at org.apache.felix.framework.util.SecureAction.invokeBundleEventHook(SecureAction.java:1127)
      	at org.apache.felix.framework.util.EventDispatcher.createWhitelistFromHooks(EventDispatcher.java:696)
      	at org.apache.felix.framework.util.EventDispatcher.fireBundleEvent(EventDispatcher.java:484)
      	at org.apache.felix.framework.Felix.fireBundleEvent(Felix.java:4429)
      	at org.apache.felix.framework.Felix.startBundle(Felix.java:2100)
      	at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1299)
      	at org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:304)
      	at java.lang.Thread.run(Thread.java:745)
      Caused by: org.osgi.service.blueprint.container.ServiceUnavailableException: Timeout expired when waiting for mandatory OSGi service reference: (objectClass=org.osgi.service.cm.ConfigurationAdmin)
      	at org.apache.aries.blueprint.container.ReferenceRecipe.getService(ReferenceRecipe.java:234)
      	at org.apache.aries.blueprint.container.ReferenceRecipe.access$000(ReferenceRecipe.java:56)
      	at org.apache.aries.blueprint.container.ReferenceRecipe$ServiceDispatcher.call(ReferenceRecipe.java:306)
      	at Proxy3515f600_8b24_40cd_b4c2_61dfaa824769.listConfigurations(Unknown Source)
      	at org.apache.aries.blueprint.compendium.cm.CmUtils.getConfiguration(CmUtils.java:37)
      	at org.apache.aries.blueprint.compendium.cm.CmPropertyPlaceholder.init(CmPropertyPlaceholder.java:92)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:497)
      	at org.apache.aries.blueprint.utils.ReflectionUtils.invoke(ReflectionUtils.java:299)
      	at org.apache.aries.blueprint.container.BeanRecipe.invoke(BeanRecipe.java:980)
      	at org.apache.aries.blueprint.container.BeanRecipe.runBeanProcInit(BeanRecipe.java:736)
      	... 27 more
      100% [========================================================================]
      

      This results in the Apache Karaf :: Deployer :: Karaf Archive bundle entering a Failure state:

      [ 289] [Active     ] [Failure     ] [       ] [   30] Apache Karaf :: Deployer :: Karaf Archive (.kar) (2.4.0.redhat-621216)
      

      In Fabric this causes the provisioning status to show a failure on the container.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                grgrzybek Grzegorz Grzybek
                Reporter:
                jsherman Jason Sherman
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: