title: Pivotal Gemfire NoAvailableLocatorsException
body: <p>I have a gemfire cluster  with version 8.1.0 running with two servers and a locator.Using Pulse UI Application I can see the cluster is up and running.</p>
  
  <p>From my laptop I am able to ping the ip of the RHEL unix box where the cluster is running. </p>
  
  <p>Also I am able to successfully connect to the cluster using gfsh command from my laptop:</p>
  
  <p><strong>gfsh>connect --locator=locator-ip[15101]`</strong></p>
  
  <p>But I try to connect to the cluster from a client spring application(using spring data gemfire 1.5.0.RELEASE) running in my laptop  using below spring data gemfire cache xml:</p>
  
  <p>The client cache xml is as below:</p>
  
  <pre><code>&lt;gfe:pool id="gemfire-pool" subscription-enabled="true" &gt;
          &lt;gfe:locator host="locator-ip" port="locator-port"/&gt;
  &lt;/gfe:pool&gt;
  </code></pre>
  
  <p>But I am getting below exception:</p>
  
  <pre><code>com.gemstone.gemfire.cache.client.NoAvailableLocatorsException: Unable to connect to any locators in the list [locator-host:15101, locator-ip/locator-ip:15101]
      at com.gemstone.gemfire.cache.client.internal.AutoConnectionSourceImpl.findServer(AutoConnectionSourceImpl.java:136)
      at com.gemstone.gemfire.cache.client.internal.ConnectionFactoryImpl.createClientToServerConnection(ConnectionFactoryImpl.java:206)
      at com.gemstone.gemfire.cache.client.internal.pooling.ConnectionManagerImpl.borrowConnection(ConnectionManagerImpl.java:214)
  </code></pre>
  
  <p>A simillar question has been posted</p>
  
  <p><a href="https://stackoverflow.com/questions/27441315/gemfire-client-server-topology-throws-noavailablelocatorsexception">Gemfire client server topology throws NoAvailableLocatorsException</a> </p>
  
  <p>But the above  error is in a different method in ConnectionManagerImpl class.</p>
  
  <p>EDIT:
  The cache xml has below client-cache declaration:</p>
  
  <pre><code>&lt;util:properties id="gemfire-props"&gt;
          &lt;prop key="log-level"&gt;error&lt;/prop&gt;
  &lt;/util:properties&gt;
  
  &lt;gfe:client-cache id="gemfireCache" pool-name="gemfire-pool" properties-ref="gemfire-props"&gt;
  
  &lt;gfe:client-region id="skuInfoRegionBean" pool-name="gemfire-pool"
          name="SKU_INFO" shortcut="CACHING_PROXY"&gt;
  &lt;/gfe:client-region&gt;
  </code></pre>