message.length,
(ClassLoader[]) classLoaders.toArray(new ClassLoader[classLoaders.size()]));
} catch (Exception e) {
String errMsg = "Cannot deserialize received message";
log.error(errMsg, e);
throw new RemoteProcessException(errMsg, e);
}
// If the system has not still been intialized, reject all incoming messages, except the
// GetStateResponseCommand message
if (configurationContext.
getPropertyNonReplicable(ClusteringConstants.CLUSTER_INITIALIZED) == null) {
log.warn("Received message " + msg +
" before cluster initialization has been completed from " +
TribesUtil.getHost(sender));
return;
}
if (log.isDebugEnabled()) {
log.debug("Received message " + msg + " from " + TribesUtil.getHost(sender));
}
try {
processMessage(msg, sender);
} catch (Exception e) {
String errMsg = "Cannot process received message";
log.error(errMsg, e);
throw new RemoteProcessException(errMsg, e);
}
}