java 启动服务器获取不到ip

东方星痕 发布于 2014/07/08 12:43
阅读 324
收藏 0
2014-7-8 11:52:42 net.sf.ehcache.distribution.jgroups.JGroupsCacheManagerPeerPro
vider init
严重: Failed to connect to JGroups cluster 'testdemo', replication will not functio
n. JGroups properties:
UDP(mcast_addr=231.12.21.132;mcast_port=45566;):PING:MERGE2:FD_SOCK:VERIFY_SUSPE
CT:pbcast.NAKACK:UNICAST:pbcast.STABLE:FRAG:pbcast.GMS
java.lang.NullPointerException
        at java.net.NetworkInterface.getInterfaceAddresses(NetworkInterface.java
:133)
        at org.jgroups.stack.DiagnosticsHandler.bindToInterfaces(DiagnosticsHand
ler.java:213)
        at org.jgroups.stack.DiagnosticsHandler.start(DiagnosticsHandler.java:87
)
        at org.jgroups.protocols.TP.start(TP.java:1215)
        at org.jgroups.protocols.UDP.start(UDP.java:232)
        at org.jgroups.stack.ProtocolStack.startStack(ProtocolStack.java:952)
        at org.jgroups.JChannel.startStack(JChannel.java:864)
        at org.jgroups.JChannel._preConnect(JChannel.java:527)
        at org.jgroups.JChannel.connect(JChannel.java:284)
        at org.jgroups.JChannel.connect(JChannel.java:275)
        at net.sf.ehcache.distribution.jgroups.JGroupsCacheManagerPeerProvider.i
nit(JGroupsCacheManagerPeerProvider.java:154)
        at net.sf.ehcache.CacheManager.doInit(CacheManager.java:472)
        at net.sf.ehcache.CacheManager.init(CacheManager.java:388)
        at net.sf.ehcache.CacheManager.<init>(CacheManager.java:264)
        at net.sf.ehcache.CacheManager.newInstance(CacheManager.java:1079)
        at net.sf.ehcache.CacheManager.newInstance(CacheManager.java:975)


用JGroups和Ehcache做缓存服务器时,开发环境启动没事,

正式环境启动就获取不到ip了 这是怎么回事?

这是配置文件

    <cacheManagerPeerProviderFactory
            class="net.sf.ehcache.distribution.jgroups.JGroupsCacheManagerPeerProviderFactory"
            properties="connect=UDP(mcast_addr=231.12.21.132;mcast_port=45566;):PING:
            MERGE2:FD_SOCK:VERIFY_SUSPECT:pbcast.NAKACK:UNICAST:pbcast.STABLE:FRAG:pbcast.GMS"
            propertySeparator="::"
            />
加载中
返回顶部
顶部