Uploaded image for project: 'Karaf'
  1. Karaf
  2. KARAF-2955

RepositoryEventHandler not handling events

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • cellar-3.0.0
    • cellar-3.0.0
    • cellar
    • None
    • Ubuntu 12.04
      java version "1.7.0_05"

    Description

      After sending an event to a cluster of nodes using Karaf Cellar I've found this sentence in log.

      CELLAR FEATURES: retrieved event ClusterRepositoryEvent ... while groupManager is not available yet!

      Looking for what is causing this issue I realized that groupManager is not being injected for RepositoryEventHandler in blueprint.xml of features module.

      Injecting that property solves the issue.

      	<bean id="repositoryEventHandler" class="org.apache.karaf.cellar.features.RepositoryEventHandler"
      		init-method="init" destroy-method="destroy">
      		<property name="featuresService" ref="featuresService" />
      		<property name="groupManager" ref="groupManager" />
      		<property name="clusterManager" ref="clusterManager" />
      		<property name="configurationAdmin" ref="configurationAdmin" />
      	</bean>
      

      Attachments

        Activity

          People

            jbonofre Jean-Baptiste Onofré
            pablo.muniz Pablo Muñiz
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: