Hazelcast instance is not active!

1,251 views
Skip to first unread message

azhao...@gmail.com

unread,
Oct 29, 2013, 2:59:58 PM10/29/13
to haze...@googlegroups.com
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.

Mehmet Dogan

unread,
Oct 29, 2013, 3:24:28 PM10/29/13
to haze...@googlegroups.com
Hazelcast also has a shutdown hook registered by default. You can disable it by setting property ‘hazelcast.shutdownhook.enabled’ to false.

@mmdogan

--
You received this message because you are subscribed to the Google Groups "Hazelcast" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hazelcast+...@googlegroups.com.
To post to this group, send email to haze...@googlegroups.com.
Visit this group at http://groups.google.com/group/hazelcast.
For more options, visit https://groups.google.com/groups/opt_out.

azhao...@gmail.com

unread,
Oct 29, 2013, 4:10:59 PM10/29/13
to haze...@googlegroups.com, azhao...@gmail.com
Thank you so much, Mehmet, that is really helpful.
Reply all
Reply to author
Forward
0 new messages