我有一个带有8.1.0版本的gemfire集群,运行着两个服务器,还有一个locator.Using脉冲UI应用程序,我可以看到集群正在启动和运行。
从我的笔记本电脑,我可以平ip的RHEL unix盒,其中的集群正在运行。
此外,我还可以使用我的笔记本电脑中的gfsh命令成功地连接到集群:
gfsh>connect --定位器=定位器-ip15101`
但是,我尝试从一个客户机spring应用程序(使用spring 1.5.0.RELEASE)连接到集群,该应用程序运行在我的膝上型计算机上,使用以下spring数据gemfire缓存xml:
客户端缓存xml如下所示:
<gfe:pool id="gemfire-pool" subscription-enabled="true" >
<gfe:locator host="locator-ip" port="locator-port"/>
</gfe:pool>但我不例外:
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)一个简单的问题已经发表了。
Gemfire client server topology throws NoAvailableLocatorsException
但在ConnectionManagerImpl类中,上述错误是在另一种方法中出现的。
编辑:缓存xml具有以下客户端缓存声明:
<util:properties id="gemfire-props">
<prop key="log-level">error</prop>
</util:properties>
<gfe:client-cache id="gemfireCache" pool-name="gemfire-pool" properties-ref="gemfire-props">
<gfe:client-region id="skuInfoRegionBean" pool-name="gemfire-pool"
name="SKU_INFO" shortcut="CACHING_PROXY">
</gfe:client-region>发布于 2015-10-05 14:36:11
这是一个网络issue.It工作时,我尝试从办公室,但不工作从家里通过vpn。
发布于 2015-09-28 19:03:30
您正在运行什么版本的Spring、GemFire和GemFire?此外,如果您能够共享您的Spring配置,配置连接到运行RHEL服务器的集群的GemFire ClientCache (& Pool),那将是有帮助的。
我的理解是,您的集群运行在“远程”RHEL UNIX机器上,而您的客户端是从您的笔记本电脑上运行的,对吗?
根据Gfsh connect命令语法,您的Spring需要看起来类似于.
<gfe:pool ...>
<gfe:locator host="locator-ip" port="15101"/>
</gfe:pool>
<gfe:client-cache/>
...NoAvailableLocatorsException的信息似乎很奇怪..。“无法连接到列表中的任何定位器[定位器-主机:15101,locator-ip/locator-ip:15101__]”且不完全正确“。
https://stackoverflow.com/questions/32828608
复制相似问题