Bug #7747

ClusterRepoItemEvent causes exceptions

Added by Andrzej Wójcik IoT 1 CloudTigaseTeam 10 months ago. Updated 10 months ago.

Target version:
Start date:
Due date:
% Done:


Estimated time:
Applicable version:
Source Code Disclaimer:


Following exception is being thrown when one of the cluster nodes fires ClusterRepoItemEvent:

2018-06-17 13:42:26.768 [in_0-eventbus]    StanzaProcessor.processPacket()         SEVERE:   Unsupported conversion to class tigase.cluster.repo.ClusterRepoItem when processing,, DATA=<message xmlns="jabber:client" id="" from="" to=""><event xmlns=""><items node="tigase.cluster.repo.ClusterRepoItemEvent"><item><tigase.cluster.repo.ClusterRepoItemEvent><action>UPDATED</action><item></item></tigase.cluster.repo.ClusterRepoItemEvent></item></items></event></message>, SIZE=654, XMLNS=jabber:client, PRIORITY=NORMAL, PERMISSION=ADMIN, TYPE=null
java.lang.RuntimeException: Unsupported conversion to class tigase.cluster.repo.ClusterRepoItem
    at tigase.kernel.DefaultTypesConverter.convert(
    at tigase.eventbus.impl.EventBusSerializer.deserialize(
    at tigase.eventbus.component.EventReceiverModule.fireEventLocally(
    at tigase.eventbus.component.EventReceiverModule.process(
    at tigase.component.modules.StanzaProcessor.process(
    at tigase.component.modules.StanzaProcessor.processPacket(
    at tigase.component.AbstractKernelBasedComponent.processPacket(
    at tigase.eventbus.component.EventBusComponent.processPacket(
    at tigase.server.AbstractMessageReceiver$

Associated revisions

Revision 28e0e392 (diff)
Added by Andrzej Wójcik IoT 1 CloudTigaseTeam 10 months ago

#7747: changing ClusterRepoItemEvent scope from cluster to local


#2 Updated by Andrzej Wójcik IoT 1 CloudTigaseTeam 10 months ago

  • Status changed from New to In QA
  • Assignee changed from Andrzej Wójcik to Wojciech Kapcia
  • % Done changed from 0 to 100

This event was implementing Serializable which forced it to be executed in the cluster scope. Due to that it (and its properties) where serialized on the cluster node which fired this event and then deserialization was happening on the other cluster nodes. Unfortunately, for this to work, all types/classes of event fields need to be either serializable/deserializable or marked as transientbut it was not true for ClusterRepoItem.

As this event is fired on each cluster node when new nodes is found in the cluster nodes repository, there is no point to fire it in the cluster scope. Instead it should be fired in the local node scope (no serizalization needed) and it will be fired on every cluster node as each cluster node will detect change in the list of cluster nodes and will fire it on its own.

Due to that, I've changed this scope to local (removed implements Serializable and empty constructor).

#3 Updated by Wojciech Kapcia TigaseTeam 10 months ago

  • Status changed from In QA to Closed

Also available in: Atom PDF