我在我的应用程序中使用HazelCast,运行良好。由于系统维护,我不得不取消部署和重新部署应用程序。现在,当我尝试启动应用程序时,我不断在我的hazelcast中收到此错误。有人可以帮我弄这个吗?我没有更改我的申请。它只是一个Windows升级,需要服务器重启。
Aug 10, 2017 4:30:49 AM com.hazelcast.core.LifecycleService
INFO: HazelcastClient[hz.client_0_dev] is STARTING
Aug 10, 2017 4:30:49 AM com.hazelcast.core.LifecycleService
INFO: HazelcastClient[hz.client_0_dev] is STARTED
Aug 10, 2017 4:30:49 AM com.hazelcast.client.spi.ClientClusterService
INFO:
Members [1] {
Member [172.31.21.118]:8444
}
Aug 10, 2017 4:30:49 AM com.hazelcast.nio.SocketAcceptor
INFO: [172.31.21.118]:8444 [dev] Accepting socket connection from /127.0.0.1:59834
Aug 10, 2017 4:30:49 AM com.hazelcast.nio.TcpIpConnectionManager
INFO: [172.31.21.118]:8444 [dev] 8444 accepted socket connection from /127.0.0.1:59834
Aug 10, 2017 4:30:49 AM com.hazelcast.client.AuthenticationRequest
INFO: [172.31.21.118]:8444 [dev] Received auth from Connection [/127.0.0.1:59834 -> null] live=true, client=true, type=JAVA_CLIENT, successfully authenticated
Aug 10, 2017 4:30:49 AM com.hazelcast.nio.SocketAcceptor
INFO: [172.31.21.118]:8444 [dev] Accepting socket connection from /172.31.21.118:60986
Aug 10, 2017 4:30:49 AM com.hazelcast.nio.TcpIpConnectionManager
INFO: [172.31.21.118]:8444 [dev] 8444 accepted socket connection from /172.31.21.118:60986
Aug 10, 2017 4:30:49 AM com.hazelcast.client.AuthenticationRequest
INFO: [172.31.21.118]:8444 [dev] Received auth from Connection [/172.31.21.118:60986 -> null] live=true, client=true, type=JAVA_CLIENT, successfully authenticated
Aug 10, 2017 4:30:50 AM com.hazelcast.nio.TcpIpConnection
INFO: [172.31.21.118]:8444 [dev] Connection [Address[172.31.21.118]:60986] lost. Reason: java.io.EOFException[Remote socket closed!]
Aug 10, 2017 4:30:50 AM com.hazelcast.client.ClientEngine
INFO: [172.31.21.118]:8444 [dev] Destroying ClientEndpoint{conn=Connection [/172.31.21.118:60986 -> Address[172.31.21.118]:60986] live=false, client=true, type=JAVA_CLIENT, uuid='9795307d-0af4-4f18-aaf2-67b15239ccb0', firstConnection=false, authenticated=true}
Aug 10, 2017 4:30:50 AM com.hazelcast.nio.TcpIpConnection
INFO: [172.31.21.118]:8444 [dev] Connection [Address[127.0.0.1]:59834] lost. Reason: java.io.EOFException[Remote socket closed!]
Aug 10, 2017 4:30:50 AM com.hazelcast.client.ClientEngine
INFO: [172.31.21.118]:8444 [dev] Destroying ClientEndpoint{conn=Connection [/127.0.0.1:59834 -> Address[127.0.0.1]:59834] live=false, client=true, type=JAVA_CLIENT, uuid='9795307d-0af4-4f18-aaf2-67b15239ccb0', firstConnection=true, authenticated=true}
Aug 10, 2017 4:30:50 AM com.hazelcast.nio.ReadHandler
WARNING: [172.31.21.118]:8444 [dev] hz._hzInstance_1_dev.IO.thread-in-0 Closing socket to endpoint Address[172.31.21.118]:60986, Cause:java.io.EOFException: Remote socket closed!
Aug 10, 2017 4:30:50 AM com.hazelcast.nio.ReadHandler
WARNING: [172.31.21.118]:8444 [dev] hz._hzInstance_1_dev.IO.thread-in-2 Closing socket to endpoint Address[127.0.0.1]:59834, Cause:java.io.EOFException: Remote socket closed!
Exception in thread "hz._hzInstance_1_dev.cached.thread-42" java.lang.NoClassDefFoundError: com/hazelcast/cluster/MulticastJoiner$1
at com.hazelcast.cluster.MulticastJoiner.searchForOtherClusters(MulticastJoiner.java:93)
at com.hazelcast.cluster.SplitBrainHandler.searchForOtherClusters(SplitBrainHandler.java:46)
at com.hazelcast.cluster.SplitBrainHandler.run(SplitBrainHandler.java:36)
at com.hazelcast.util.executor.ManagedExecutorService$Worker.run(ManagedExecutorService.java:166)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
at com.hazelcast.util.executor.PoolExecutorThreadFactory$ManagedThread.run(PoolExecutorThreadFactory.java:59)
Caused by: java.lang.ClassNotFoundException: com.hazelcast.cluster.MulticastJoiner$1
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
... 8 more
Aug 10, 2017 4:32:22 AM com.hazelcast.nio.SocketAcceptor
INFO: [172.31.21.118]:8444 [dev] Accepting socket connection from /127.0.0.1:59888
Aug 10, 2017 4:32:22 AM com.hazelcast.nio.TcpIpConnectionManager
INFO: [172.31.21.118]:8444 [dev] 8444 accepted socket connection from /127.0.0.1:59888
Aug 10, 2017 4:32:22 AM com.hazelcast.client.AuthenticationRequest
INFO: [172.31.21.118]:8444 [dev] Received auth from Connection [/127.0.0.1:59888 -> null] live=true, client=true, type=JAVA_CLIENT, successfully authenticated
Aug 10, 2017 4:32:23 AM com.hazelcast.nio.SocketAcceptor
INFO: [172.31.21.118]:8444 [dev] Accepting socket connection from /172.31.21.118:32808
Aug 10, 2017 4:32:23 AM com.hazelcast.nio.TcpIpConnectionManager
INFO: [172.31.21.118]:8444 [dev] 8444 accepted socket connection from /172.31.21.118:32808
Aug 10, 2017 4:32:23 AM com.hazelcast.client.AuthenticationRequest
INFO: [172.31.21.118]:8444 [dev] Received auth from Connection [/172.31.21.118:32808 -> null] live=true, client=true, type=JAVA_CLIENT, successfully authenticated
Aug 10, 2017 4:32:23 AM com.hazelcast.client.ClientEngine
SEVERE: [172.31.21.118]:8444 [dev] java.lang.NoClassDefFoundError: com/hazelcast/map/client/MapClearRequest
com.hazelcast.nio.serialization.HazelcastSerializationException: java.lang.NoClassDefFoundError: com/hazelcast/map/client/MapClearRequest
at com.hazelcast.nio.serialization.SerializationServiceImpl.handleException(SerializationServiceImpl.java:290)
at com.hazelcast.nio.serialization.SerializationServiceImpl.toObject(SerializationServiceImpl.java:219)
at com.hazelcast.client.ClientEngineImpl$ClientPacketProcessor.run(ClientEngineImpl.java:346)
at com.hazelcast.util.executor.ManagedExecutorService$Worker.run(ManagedExecutorService.java:166)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
at com.hazelcast.util.executor.PoolExecutorThreadFactory$ManagedThread.run(PoolExecutorThreadFactory.java:59)
Caused by: java.lang.NoClassDefFoundError: com/hazelcast/map/client/MapClearRequest
at com.hazelcast.map.MapPortableHook$1$30.createNew(MapPortableHook.java:256)
at com.hazelcast.map.MapPortableHook$1$30.createNew(MapPortableHook.java:254)
at com.hazelcast.map.MapPortableHook$1.create(MapPortableHook.java:307)
at com.hazelcast.nio.serialization.PortableSerializer.read(PortableSerializer.java:77)
at com.hazelcast.nio.serialization.PortableSerializer.read(PortableSerializer.java:29)
at com.hazelcast.nio.serialization.StreamSerializerAdapter.read(StreamSerializerAdapter.java:59)
at com.hazelcast.nio.serialization.SerializationServiceImpl.toObject(SerializationServiceImpl.java:213)
... 6 more
Exception in thread "hz._hzInstance_1_dev.cached.thread-4" java.lang.NoClassDefFoundError: com/hazelcast/client/ClientEndpoint$3
at com.hazelcast.client.ClientEndpoint.getClientType(ClientEndpoint.java:104)
at com.hazelcast.client.ClientEngineImpl.sendResponse(ClientEngineImpl.java:135)
at com.hazelcast.client.ClientEngineImpl$ClientPacketProcessor.run(ClientEngineImpl.java:392)
at com.hazelcast.util.executor.ManagedExecutorService$Worker.run(ManagedExecutorService.java:166)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
at com.hazelcast.util.executor.PoolExecutorThreadFactory$ManagedThread.run(PoolExecutorThreadFactory.java:59)
Aug 10, 2017 4:32:33 AM com.hazelcast.nio.SocketAcceptor
INFO: [172.31.21.118]:8444 [dev] Accepting socket connection from /172.31.21.118:32810
Aug 10, 2017 4:32:33 AM com.hazelcast.nio.TcpIpConnectionManager
INFO: [172.31.21.118]:8444 [dev] 8444 accepted socket connection from /172.31.21.118:32810
Aug 10, 2017 4:32:33 AM com.hazelcast.client.AuthenticationRequest
INFO: [172.31.21.118]:8444 [dev] Received auth from Connection [/172.31.21.118:32810 -> null] live=true, client=true, type=JAVA_CLIENT, successfully authenticated
Exception in thread "hz._hzInstance_1_dev.cached.thread-7" java.lang.NoClassDefFoundError: com/hazelcast/cluster/MulticastJoiner$1
at com.hazelcast.cluster.MulticastJoiner.searchForOtherClusters(MulticastJoiner.java:93)
at com.hazelcast.cluster.SplitBrainHandler.searchForOtherClusters(SplitBrainHandler.java:46)
at com.hazelcast.cluster.SplitBrainHandler.run(SplitBrainHandler.java:36)
at com.hazelcast.util.executor.ManagedExecutorService$Worker.run(ManagedExecutorService.java:166)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
at com.hazelcast.util.executor.PoolExecutorThreadFactory$ManagedThread.run(PoolExecutorThreadFactory.java:59)
答案 0 :(得分:1)
我猜你可能在你的类路径中有多个版本的Hazelcast的JAR。由于类路径通常是随机顺序,因此您可能会获得一个JAR A类和一个JAR B类,依此类推。请查看您是否有干净的类路径。只应该有一个Hazelcast版本。
答案 1 :(得分:1)
它与Java类加载有关...
它与Hazelcast本身无关,但与您的环境无关。 您正在运行JEE服务器,并且在您的有效类路径中肯定有多个Hazelcast副本。 它们相互干扰(可能是每个由不同的类加载器加载的地方)。
OR
如果您重新启动或热部署了应用程序,也会发生这种情况。