2014-01-08 45 views
1

我有一个Coherence cluster在我的本地机器上运行,并且有一个C#应用程序试图连接到它。我得到的错误:无法连接到本地Coherence群集

Could not establish a connection to one of the following addresses: XXXX. Make sure the remote addresses element contains the IP address and port of a running TcpAcceptor.

这里是我的客户端配置的远程地址段:

<socket-address> 
    <address>localhost</address> 
    <port>9099</port> 
</socket-address> 

我无法连接到该地址或本公司任何其他的环境,这是工作的其他现有的代码。我确认群集正在使用Coherence控制台节点运行。除明显不正确的IP地址外,还有哪些可能的原因?还有什么可以出错?

是否可以确认我的机器上有"running TcpAcceptor"

在我添加配置文件之前,它抛出一个异常,说它缺少cache-config.xml。我们所有的其他代码都使用coherence-cache-config.xml。这很重要吗?

回答

0

检查代理节点中的local-config.xml是否正确定义。

<tcp-acceptor> 
     <local-address> 
     <address>localhost</address>    
     <port>9099</port> 
     </local-address> 
     <suspect-buffer-size>1000000000</suspect-buffer-size> 
    </tcp-acceptor>  
1

问题已解决。问题:虽然我在项目中使用了coherence.xml和cache-config.xml,并且正在使用它们,但我错过了POF配置。我在app.config中添加了一个连贯性部分,明确引用这些文件并且它工作正常。