Getting `Can't assign requested address` java.net.SocketException using Ehcache multicast

前端 未结 4 733
长情又很酷
长情又很酷 2020-12-23 19:53

Getting java.net.SocketException when trying to start a multicast provider:

2013-09-11 11:45:44,204 [main] ERROR net.sf.ehcache.distribution.Mul         


        
4条回答
  •  情深已故
    2020-12-23 20:32

    In my case I had just began using a VPN to a network that required authentication. My app would start and could connect to its databases through the pipe fine but my configuration for distributed cache using the IP 230.0.0.1 in ehcach.xml was the cause. In production all was well, locally it would simply fail and rollback to a different strategy but via the VPN the multicast requests were met with an authentication challenge and this error was the result. I only required a short term fix so in these environments I disable the ehcache multicast configuration and things returned to normal.

    This was the offending line in ehcache.xml which was simply commented out

    
    

提交回复
热议问题