2

我正在尝试某种方式来集群化我的 grails 应用程序,我发现 Hazelcast 非常有趣。

我做了一个小测试应用程序来尝试与 grails 的集成。

我按照网站上的文档进行了会话复制。

我发现当我停止一个节点时,它开始抛出很多这样的异常:

INFO: Illegal access: this web application instance has been stopped already.  Could not load com.hazelcast.cluster.AddOrRemoveConnection.  The eventual following stack trace is caused by an error thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access, and has no functional impact.
java.lang.IllegalStateException
    at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1597)
    at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1556)
    at com.hazelcast.nio.NodeIOService.removeEndpoint(NodeIOService.java:108)
    at com.hazelcast.nio.ConnectionMonitor.onError(ConnectionMonitor.java:59)
    at com.hazelcast.nio.ConnectionManager.failedConnection(ConnectionManager.java:255)
    at com.hazelcast.nio.SocketConnector.run(SocketConnector.java:66)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:909)
    at java.lang.Thread.run(Thread.java:662)
Exception in thread "pool-11-thread-18" java.lang.NoClassDefFoundError: com/hazelcast/cluster/AddOrRemoveConnection
    at com.hazelcast.nio.NodeIOService.removeEndpoint(NodeIOService.java:108)
    at com.hazelcast.nio.ConnectionMonitor.onError(ConnectionMonitor.java:59)
    at com.hazelcast.nio.ConnectionManager.failedConnection(ConnectionManager.java:254)
    at com.hazelcast.nio.SocketConnector.run(SocketConnector.java:66)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
    at java.lang.Thread.run(Thread.java:662)

谁能解释我为什么会发生以及如何解决它?
谢谢

4

0 回答 0