Gails - 关于应用程序停止的Hazelcast IllegalStateException

时间:2012-09-10 16:18:57

标签: grails hazelcast session-replication

我正在尝试某种方式来集群化我的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)

任何人都可以解释为什么会发生这种情况以及如何解决它? 感谢

0 个答案:

没有答案