ehcache 启动报错Error starting heartbeat

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/shulai123/article/details/79951000

 [ERROR] [distribution.MulticastRMICacheManagerPeerProvider:init:98] :: Error starting heartbeat. Error was: error setting options 
java.net.SocketException: error setting options 
at java.net.PlainDatagramSocketImpl.join(Native Method) 
at java.net.PlainDatagramSocketImpl.join(PlainDatagramSocketImpl.java:172) 
at java.net.MulticastSocket.joinGroup(MulticastSocket.java:277) 
at net.sf.ehcache.distribution.MulticastKeepaliveHeartbeatReceiver.init(MulticastKeepaliveHeartbeatReceiver.java:88) 
at net.sf.ehcache.distribution.MulticastRMICacheManagerPeerProvider.init(MulticastRMICacheManagerPeerProvider.java:95) 
at net.sf.ehcache.CacheManager.init(CacheManager.java:327) 

at net.sf.ehcache.CacheManager.<init>(CacheManager.java:253) 


解决方式:

<cacheManagerPeerProviderFactory 

class="net.sf.ehcache.distribution.RMICacheManagerPeerProviderFactory" 
properties="peerDiscovery=automatic, 
hostName=localhost
multicastGroupAddress=230.0.0.1, 
multicastGroupPort=4446, timeToLive=1"/> 
阅读更多
想对作者说点什么? 我来说一句
相关热词

没有更多推荐了,返回首页