我们使用嵌入在 Springboot(1.2.3.RELEASE)中的 hazelcast版本3.7.4 ,其中2个实例作为服务器端群集,并具有4个客户端连接器。部署在Windows服务器上
有时在服务器端,当我们要更新某些地图时会遇到此问题:
原因:java.io.IOException:无法设置所有者连接! com.hazelcast.core.HazelcastInstanceNotActiveException:Hazelcast实例未激活!
也许升级到新版本可以解决此问题?
完整跟踪:
原因:java.io.IOException:无法设置所有者连接! 在com.hazelcast.client.spi.impl.ClientSmartInvocationServiceImpl.ensureOwnerConnectionAvailable(ClientSmartInvocationServiceImpl.java:112)〜[hazelcast-all-3.7.4.jar:3.7.4] 在com.hazelcast.client.spi.impl.ClientSmartInvocationServiceImpl.getOrTriggerConnect(ClientSmartInvocationServiceImpl.java:84)〜[hazelcast-all-3.7.4.jar:3.7.4] 在com.hazelcast.client.spi.impl.ClientSmartInvocationServiceImpl.invokeOnPartitionOwner(ClientSmartInvocationServiceImpl.java:46)〜[hazelcast-all-3.7.4.jar:3.7.4] 在com.hazelcast.client.spi.impl.ClientInvocation.invokeOnSelection(ClientInvocation.java:142)〜[hazelcast-all-3.7.4.jar:3.7.4] 在com.hazelcast.client.spi.impl.ClientInvocation.invoke(ClientInvocation.java:122)〜[hazelcast-all-3.7.4.jar:3.7.4] 在com.hazelcast.client.spi.impl.ClientInvocation.run(ClientInvocation.java:153)〜[hazelcast-all-3.7.4.jar:3.7.4] 在java.util.concurrent.Executors $ RunnableAdapter.call(Executors.java:511)〜[na:1.8.0_162] 在java.util.concurrent.FutureTask.run(FutureTask.java:266)〜[na:1.8.0_162] 在java.util.concurrent.ScheduledThreadPoolExecutor $ ScheduledFutureTask.access $ 201(ScheduledThreadPoolExecutor.java:180)〜[na:1.8.0_162] 在java.util.concurrent.ScheduledThreadPoolExecutor $ ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)〜[na:1.8.0_162] 在java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)[na:1.8.0_162] 在java.util.concurrent.ThreadPoolExecutor $ Worker.run(ThreadPoolExecutor.java:624)[na:1.8.0_162] 在java.lang.Thread.run(Thread.java:748)[na:1.8.0_162] 在com.hazelcast.util.executor.HazelcastManagedThread.executeRun(HazelcastManagedThread.java:76)〜[hazelcast-all-3.7.4.jar:3.7.4] 在com.hazelcast.util.executor.HazelcastManagedThread.run(HazelcastManagedThread.java:92)〜[hazelcast-all-3.7.4.jar:3.7.4] 2019-07-12 07:25:07.0999 |错误| [com.sagemcom.vsdc.fe.plc.service.statistic.PlcStatisticsServiceImpl:256] | updatePullFailStats发生错误 com.hazelcast.core.HazelcastInstanceNotActiveException:Hazelcast实例未激活! 在com.hazelcast.client.impl.HazelcastClientProxy.getClient(HazelcastClientProxy.java:282)〜[hazelcast-all-3.7.4.jar:3.7.4] 在com.hazelcast.client.impl.HazelcastClientProxy.getMap(HazelcastClientProxy.java:115)〜[hazelcast-all-3.7.4.jar:3.7.4]