HazelcastInstanceNotActiveException on hazelcast server and client when network goes down in cluster

219 views
Skip to first unread message

ajay12...@gmail.com

unread,
Aug 25, 2016, 2:35:22 AM8/25/16
to Hazelcast, aman...@adeptia.com

Hi,

 

We have two nodes in cluster and on each node, 2 JVM are running. On one JVM Hazelcast Server is running while on second JVM Hazelcast client. When both the node comes out of the network then we are getting (com.hazelcast.core.HazelcastInstanceNotActiveException: Hazelcast instance is not active! ) error at Server and Client both the end.

 

What could be the cause of these errors and how we can resolve them?

 

Configuration file is attached here, we are adding clustered nodes list programmatically. Below are the error details:

 

Error at Server side

com.hazelcast.core.HazelcastInstanceNotActiveException: Hazelcast instance is not active!

at com.hazelcast.spi.impl.proxyservice.impl.ProxyRegistry.getService(ProxyRegistry.java:65)

                at com.hazelcast.spi.impl.proxyservice.impl.ProxyRegistry.<init>(ProxyRegistry.java:53)

                at com.hazelcast.spi.impl.proxyservice.impl.ProxyServiceImpl$1.createNew(ProxyServiceImpl.java:74)

                at com.hazelcast.spi.impl.proxyservice.impl.ProxyServiceImpl$1.createNew(ProxyServiceImpl.java:72)

                at com.hazelcast.util.ConcurrencyUtil.getOrPutIfAbsent(ConcurrencyUtil.java:51)

                at com.hazelcast.spi.impl.proxyservice.impl.ProxyServiceImpl.getOrCreateRegistry(ProxyServiceImpl.java:110)

                at com.hazelcast.spi.impl.proxyservice.impl.ProxyServiceImpl.getDistributedObject(ProxyServiceImpl.java:118)

                at com.hazelcast.instance.HazelcastInstanceImpl.getDistributedObject(HazelcastInstanceImpl.java:390)

                at com.hazelcast.instance.HazelcastInstanceImpl.getMap(HazelcastInstanceImpl.java:192)

                at com.hazelcast.instance.HazelcastInstanceProxy.getMap(HazelcastInstanceProxy.java:75)

 

Error at client side:

                 com.hazelcast.core.HazelcastInstanceNotActiveException: Hazelcast instance is not active!

                at com.hazelcast.client.impl.HazelcastClientProxy.getClient(HazelcastClientProxy.java:280)

                at com.hazelcast.client.impl.HazelcastClientProxy.getMap(HazelcastClientProxy.java:113)

 

 

I'm running v3.5

 

 

 

hazelcast.xml

ih...@hazelcast.com

unread,
Aug 25, 2016, 3:43:41 AM8/25/16
to Hazelcast, aman...@adeptia.com, ajay12...@gmail.com
Hello,

It should be OK to receive this for the client but for the server side I do not expect it provided you have correct configuration. I checked your xml and you have this:

<tcp-ip enabled="true"></tcp-ip>

How come you have no interface or member definition inside this tag? This may be the reason for the server side.


As for the client, if the client can not connect to the server, it is OK for it to receive the exception.

Regards,
ihsan

ajay12...@gmail.com

unread,
Aug 25, 2016, 6:48:55 AM8/25/16
to Hazelcast, aman...@adeptia.com, ajay12...@gmail.com
Hi ihsan,

As I mentioned earlier, We are joining members programmatically in the cluster. So that should be fine.

NetworkConfig network = config.getNetworkConfig();
JoinConfig join = network.getJoin();
join.getTcpIpConfig().setMembers(xxxx, xxxx);

Thanks,
Ajay
Message has been deleted

ajay12...@gmail.com

unread,
Aug 26, 2016, 8:18:39 AM8/26/16
to Hazelcast
Attached are the Hazelcast related logs that we are getting at Server Side.

We are able to solve client side problem by setting smart-routing as false.

Thanks,
Ajay

On Thursday, 25 August 2016 16:22:31 UTC+5:30, İhsan Demir wrote:
Can you share server and client logs?

--
You received this message because you are subscribed to a topic in the Google Groups "Hazelcast" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/hazelcast/phwPb47Rqvw/unsubscribe.
To unsubscribe from this group and all its topics, send an email to hazelcast+...@googlegroups.com.
To post to this group, send email to haze...@googlegroups.com.
Visit this group at https://groups.google.com/group/hazelcast.
To view this discussion on the web visit https://groups.google.com/d/msgid/hazelcast/2eba0e99-c3e9-40fc-80c5-1fff21a190ae%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--

Ihsan Demir
Software Engineer, Clients Team
Mahir İz Cad. No:35, Altunizade, İstanbul 
ih...@hazelcast.com
skype: idemir
Hazelcast_server_error.log
Reply all
Reply to author
Forward
0 new messages