I am getting the below error on client side while creating a cache object via ClientCacheFactory.
Caused by: java.lang.IllegalStateException: Since a cache already existed a pool should also exist.
at com.gemstone.gemfire.internal.cache.GemFireCacheImpl.determineDefaultPool(GemFireCacheImpl.java:2255)
at com.gemstone.gemfire.cache.client.ClientCacheFactory.basicCreate(ClientCacheFactory.java:194)
at com.gemstone.gemfire.cache.client.ClientCacheFactory.create(ClientCacheFactory.java:161)
Although the error goes away with a sequential restart of cache server and client.Please suggest how to avoid this.
Regards,