karaf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pablo Muñiz (JIRA) <j...@apache.org>
Subject [jira] [Created] (KARAF-2892) Cluster event not dispatched due to GroupManager is unavailable
Date Wed, 09 Apr 2014 12:01:21 GMT
Pablo Muñiz created KARAF-2892:

             Summary: Cluster event not dispatched due to GroupManager is unavailable
                 Key: KARAF-2892
                 URL: https://issues.apache.org/jira/browse/KARAF-2892
             Project: Karaf
          Issue Type: Bug
    Affects Versions: cellar-3.0.0
            Reporter: Pablo Muñiz

When trying to broadcast an event to all nodes in a group, the next message can be shown in

CELLAR EVENT: retrieved event org.apache.karaf.cellar.event.ClusterEvent@36983670 while groupManager
is not available yet!

Lookng for what is causing this failure I've realized that groupManager property is not been
injected for bean with id *clusterEventHandler* in file *event/src/main/resources/OSGI-INF/blueprint/blueprint.xml*.

Injecting that property will solve the issue.

    <!-- Cluster Event Handler -->
    <bean id="clusterEventHandler" class="org.apache.karaf.cellar.event.ClusterEventHandler"
init-method="init" destroy-method="destroy">
        <property name="configurationAdmin" ref="configurationAdmin"/>
        <property name="clusterManager" ref="clusterManager"/>
        <property name="groupManager" ref="groupManager"/>
        <property name="eventAdmin" ref="eventAdmin"/>

This message was sent by Atlassian JIRA

View raw message