I have a shutdown hook added to the JVM runtime, which remove an entry from a Hazelcast map. The following exception was thrown when I close my application:
com.hazelcast.core.HazelcastInstanceNotActiveException: Hazelcast instance is not active!
at com.hazelcast.spi.AbstractDistributedObject.throwNotActiveException(AbstractDistributedObject.java:68)
at com.hazelcast.spi.AbstractDistributedObject.lifecycleCheck(AbstractDistributedObject.java:63)
at com.hazelcast.spi.AbstractDistributedObject.getNodeEngine(AbstractDistributedObject.java:57)
at com.hazelcast.map.proxy.MapProxySupport.invokeOperation(MapProxySupport.java:185)
at com.hazelcast.map.proxy.MapProxySupport.removeInternal(MapProxySupport.java:250)
at com.hazelcast.map.proxy.MapProxyImpl.remove(MapProxyImpl.java:171)
The exception means that the Hazelcast instance had been shutdown before the hook method got called. What could shutdown the instance since our application doesn't call Hazelcast shutdown?
Thank you so much for your advice and helps in advance.