Hi,
We are facing an issue while fetching the data(stored in IMap) from hazel cast server.
Issue is coming in production environment. Process is running on daily basis but the issue occurs weekly once.
First time when client tries to get the data it throws an exception mentioned below if the process restarted, it executes successfully.
I am hoping that I will get a solution.
May 25, 2016 5:51:27 AM com.hazelcast.client.connection.nio.ClientConnection
WARNING: Connection [/127.0.0.1:5701] lost. Reason: Socket explicitly closed
May 25, 2016 5:51:27 AM com.hazelcast.core.LifecycleService
INFO: HazelcastClient[hz.client_0_dev][3.5.2] is CLIENT_DISCONNECTED
May 25, 2016 5:51:27 AM com.hazelcast.client.spi.ClientPartitionService
SEVERE: Error while fetching cluster partition table!
java.util.concurrent.ExecutionException: com.hazelcast.spi.exception.TargetDisconnectedException
at com.hazelcast.client.spi.impl.ClientInvocationFuture.resolveException(ClientInvocationFuture.java:188)
at com.hazelcast.client.spi.impl.ClientInvocationFuture.resolveResponse(ClientInvocationFuture.java:160)
at com.hazelcast.client.spi.impl.ClientInvocationFuture.get(ClientInvocationFuture.java:127)
at com.hazelcast.client.spi.impl.ClientInvocationFuture.get(ClientInvocationFuture.java:102)
at com.hazelcast.client.spi.impl.ClientPartitionServiceImpl.getPartitionsFrom(ClientPartitionServiceImpl.java:109)
at com.hazelcast.client.spi.impl.ClientPartitionServiceImpl.getPartitions(ClientPartitionServiceImpl.java:94)
at com.hazelcast.client.spi.impl.ClientPartitionServiceImpl.access$400(ClientPartitionServiceImpl.java:44)
at com.hazelcast.client.spi.impl.ClientPartitionServiceImpl$RefreshTask.run(ClientPartitionServiceImpl.java:212)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
at com.hazelcast.util.executor.HazelcastManagedThread.executeRun(HazelcastManagedThread.java:76)
at com.hazelcast.util.executor.HazelcastManagedThread.run(HazelcastManagedThread.java:92)
Caused by: com.hazelcast.spi.exception.TargetDisconnectedException
at com.hazelcast.client.spi.impl.ClientInvocationFuture.get(ClientInvocationFuture.java:121)
at com.hazelcast.client.spi.impl.ClientInvocationFuture.get(ClientInvocationFuture.java:102)
at com.hazelcast.client.spi.impl.ClientPartitionServiceImpl.getPartitionsFrom(ClientPartitionServiceImpl.java:109)
at com.hazelcast.client.spi.impl.ClientPartitionServiceImpl.getPartitions(ClientPartitionServiceImpl.java:94)
at com.hazelcast.client.spi.impl.ClientPartitionServiceImpl.access$400(ClientPartitionServiceImpl.java:44)
at com.hazelcast.client.spi.impl.ClientPartitionServiceImpl$RefreshTask.run(ClientPartitionServiceImpl.java:212)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
at com.hazelcast.util.executor.HazelcastManagedThread.executeRun(HazelcastManagedThread.java:76)
at com.hazelcast.util.executor.HazelcastManagedThread.run(HazelcastManagedThread.java:92)
at ------ End remote and begin local stack-trace ------.(Unknown Source)
at com.hazelcast.client.spi.impl.ClientInvocationFuture.resolveException(ClientInvocationFuture.java:175)
... 12 more
May 25, 2016 5:51:32 AM com.hazelcast.client.spi.ClientInvocationService
WARNING: There are packets which are not processed 1
May 25, 2016 5:51:33 AM com.hazelcast.client.spi.impl.ClientInvocationFuture
WARNING: The Future.set() method can only be called once. Request: com.hazelcast.partition.client.GetPartitionsRequest@1f44b572, current response: com.hazelcast.spi.exception.TargetDisconnectedException, new response: com.hazelcast.spi.exception.TargetDisconnectedException: Target[Address[127.0.0.1]:5701] disconnected.
May 25, 2016 5:52:00 AM com.hazelcast.client.spi.impl.ClientInvocationFuture
WARNING: The Future.set() method can only be called once. Request: com.hazelcast.map.impl.client.MapGetAllRequest@3744cc2c, current response: java.io.IOException: Not able to setup owner connection!, new response: java.io.IOException: Not able to setup owner connection!
May 25, 2016 5:52:00 AM com.hazelcast.client.spi.impl.ClientInvocationFuture
WARNING: The Future.set() method can only be called once. Request: com.hazelcast.map.impl.client.MapGetAllRequest@3744cc2c, current response: java.io.IOException: Not able to setup owner connection!, new response: java.io.IOException: Not able to setup owner connection!
May 25, 2016 5:52:00 AM com.hazelcast.client.spi.impl.ClientInvocationFuture
WARNING: The Future.set() method can only be called once. Request: com.hazelcast.map.impl.client.MapGetAllRequest@3744cc2c, current response: java.io.IOException: Not able to setup owner connection!, new response: java.io.IOException: Not able to setup owner connection!
May 25, 2016 5:52:00 AM com.hazelcast.client.spi.impl.ClientInvocationFuture
WARNING: The Future.set() method can only be called once. Request: com.hazelcast.map.impl.client.MapGetAllRequest@3744cc2c, current response: java.io.IOException: Not able to setup owner connection!, new response: java.io.IOException: Not able to setup owner connection!
com.hazelcast.core.HazelcastException: java.io.IOException: Not able to setup owner connection!
at com.hazelcast.util.ExceptionUtil.rethrow(ExceptionUtil.java:67)
at com.hazelcast.util.ExceptionUtil.rethrow(ExceptionUtil.java:62)
at com.hazelcast.client.spi.ClientProxy.invoke(ClientProxy.java:164)
at com.hazelcast.client.proxy.ClientMapProxy.getAll(ClientMapProxy.java:726)
Thanks for your help in advance
Anu