Why Coherence Cache Server Throws Mulitcast Error java.net.SocketException: The socket name is not available on this system? (Doc ID 1156635.1)

Last updated on JULY 18, 2017

Applies to:

Oracle Coherence - Version 3.3.0 to 3.5.3
Information in this document applies to any platform.
***Checked for relevance on 07-Feb-2013***

Goal

The below error got thrown when use was try to bring the cluster with multicast address configured.

Below is the detailed stack trace:

Exception in thread "main" (Wrapped: MulticastUdpSocket{State=STATE_INITIAL, address:port=224.0.0.87:8087, InterfaceAddress=128.14.45.5, TimeToLive=4}) java.net.SocketException: The socket name is not available on this system.
at com.tangosol.coherence.component.net.Cluster.onStart(Cluster.CDB:108)
at com.tangosol.coherence.component.net.Cluster.start(Cluster.CDB:11)
at com.tangosol.coherence.component.util.SafeCluster.startCluster(SafeCluster.CDB:3)
at com.tangosol.coherence.component.util.SafeCluster.restartCluster(SafeCluster.CDB:7)
at com.tangosol.coherence.component.util.SafeCluster.ensureRunningCluster(SafeCluster.CDB:27)
at com.tangosol.coherence.component.util.SafeCluster.start(SafeCluster.CDB:2)
at com.tangosol.net.CacheFactory.ensureCluster(CacheFactory.java:998)
at com.tangosol.net.DefaultConfigurableCacheFactory.ensureService(DefaultConfigurableCacheFactory.java:915)
at com.tangosol.net.DefaultCacheServer.start(DefaultCacheServer.java:139)
at com.tangosol.net.DefaultCacheServer.main(DefaultCacheServer.java:60)
Caused by: java.net.SocketException: The socket name is not available on this system.
at java.net.PlainDatagramSocketImpl.socketSetOption(Native Method)
at java.net.PlainDatagramSocketImpl.setOption(PlainDatagramSocketImpl.java:398)
at java.net.MulticastSocket.setInterface(MulticastSocket.java:432)
at com.tangosol.coherence.component.net.socket.udpSocket.MulticastUdpSocket.instantiateDatagramSocket(MulticastUdpSocket.CDB:31)
at com.tangosol.coherence.component.net.socket.UdpSocket.open(UdpSocket.CDB:8)
at com.tangosol.coherence.component.net.Cluster$SocketManager$MulticastUdpSocket.open(Cluster.CDB:6)
at com.tangosol.coherence.component.net.Cluster.onStart(Cluster.CDB:104)
... 9 more

Solution

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms