【发布时间】:2021-08-21 13:40:42
【问题描述】:
在开始时,它工作正常,但在一定时间(1-2 小时)后,它崩溃,并在服务器日志中出现以下异常。
ERROR 1 --- [-ignite-server%] : JVM 将因故障立即停止:[failureCtx=FailureContext [type=CRITICAL_ERROR, err=class oaiiIgniteDeploymentCheckedException: 未能获得类的部署:com. event.audit.AuditEventListener$$Lambda$1484/0x0000000800a7ec40]]
public static void remoteListener(Ignite ignite) {
// This optional local callback is called for each event notification
// that passed remote predicate listener.
IgniteBiPredicate<UUID, CacheEvent> locLsnr = new IgniteBiPredicate<UUID, CacheEvent>() {
@Override public boolean apply(UUID nodeId, CacheEvent evt) {
System.out.println("Listener caught an event");
//--- My custom code to persists the event in another cache
};
IgnitePredicate<CacheEvent> remoteListener = cacheEvent -> {
return true;
};
// Register event listeners on all nodes to listen for task events.
UUID lsnrId = ignite.events(ignite.cluster()).remoteListen(locLsnr, remoteListener, EVT_CACHE_OBJECT_PUT, EVT_CACHE_OBJECT_REMOVED);
}
}
【问题讨论】:
-
日志中是否有任何线程转储或堆栈跟踪?
标签: spring-boot docker docker-compose ignite