]
Radoslav Husar updated WFLY-10647:
----------------------------------
Affects Version/s: 13.0.0.Final
Custom jgroups classes should be registered eagerly
---------------------------------------------------
Key: WFLY-10647
URL:
https://issues.jboss.org/browse/WFLY-10647
Project: WildFly
Issue Type: Bug
Components: Clustering
Affects Versions: 13.0.0.Final
Reporter: Radoslav Husar
Assignee: Radoslav Husar
If a message is received with configured custom classes (e.g. AUTH) but the receiving
stack does not have the protocol, rather than handling and later discarding it, it floods
the server log with CNFE.
{noformat}
18:55:49,152 ERROR [org.jgroups.protocols.UDP] (ucast-receiver-5,ejb,node2) JGRP000030:
node2: failed handling incoming message: java.lang.ClassNotFoundException: Class for magic
number 1100 cannot be found
at org.jgroups.conf.ClassConfigurator.create(ClassConfigurator.java:118)
at org.jgroups.protocols.AuthHeader.readAuthToken(AuthHeader.java:70)
at org.jgroups.protocols.AuthHeader.readFrom(AuthHeader.java:41)
at org.jgroups.Message.readHeader(Message.java:870)
at org.jgroups.Message.readFrom(Message.java:742)
at org.jgroups.protocols.TP.handleSingleMessage(TP.java:1346)
at org.jgroups.protocols.TP.receive(TP.java:1304)
at org.jgroups.protocols.UDP$PacketReceiver.run(UDP.java:709)
at
org.jboss.as.clustering.jgroups.ClassLoaderThreadFactory.lambda$newThread$0(ClassLoaderThreadFactory.java:52)
at java.lang.Thread.run(Thread.java:748)
{noformat}