java.net.SocketException: Can't assign requested address

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • Machines where the IPv6 address is being supplied by "InetAddress.getLocalHost().getHostAddress()", won't be able to startup the BA or DI Servers (more systems may be affected). The error is with ehCache which is trying to open a port for RMI replication of cache between servers. Note: I don't know why ehCache is configured to enable this by default. The fix is to add the following the startup scripts: -Djava.net.preferIPv4Stack=true Reference: http://stackoverflow.com/questions/18747134/getting-cant-assign-requested-address-java-net-socketexception-using-ehcache StackTrace: 12:17:12,003 ERROR [MulticastRMICacheManagerPeerProvider] Error starting heartbeat. Error was: Can't assign requested address java.net.SocketException: Can't assign requested address at java.net.PlainDatagramSocketImpl.join(Native Method) at java.net.AbstractPlainDatagramSocketImpl.join(AbstractPlainDatagramSocketImpl.java:178) at java.net.MulticastSocket.joinGroup(MulticastSocket.java:319) 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.doInit(CacheManager.java:411) at net.sf.ehcache.CacheManager.init(CacheManager.java:357) at net.sf.ehcache.CacheManager.<init>(CacheManager.java:242) at net.sf.ehcache.CacheManager.create(CacheManager.java:853) at net.sf.ehcache.CacheManager.create(CacheManager.java:740)
    via by Nick Baker,
  • Machines where the IPv6 address is being supplied by "InetAddress.getLocalHost().getHostAddress()", won't be able to startup the BA or DI Servers (more systems may be affected). The error is with ehCache which is trying to open a port for RMI replication of cache between servers. Note: I don't know why ehCache is configured to enable this by default. The fix is to add the following the startup scripts: -Djava.net.preferIPv4Stack=true Reference: http://stackoverflow.com/questions/18747134/getting-cant-assign-requested-address-java-net-socketexception-using-ehcache StackTrace: 12:17:12,003 ERROR [MulticastRMICacheManagerPeerProvider] Error starting heartbeat. Error was: Can't assign requested address java.net.SocketException: Can't assign requested address at java.net.PlainDatagramSocketImpl.join(Native Method) at java.net.AbstractPlainDatagramSocketImpl.join(AbstractPlainDatagramSocketImpl.java:178) at java.net.MulticastSocket.joinGroup(MulticastSocket.java:319) 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.doInit(CacheManager.java:411) at net.sf.ehcache.CacheManager.init(CacheManager.java:357) at net.sf.ehcache.CacheManager.<init>(CacheManager.java:242) at net.sf.ehcache.CacheManager.create(CacheManager.java:853) at net.sf.ehcache.CacheManager.create(CacheManager.java:740)
    via by Nick Baker,
  • [QUESTION]open ports or other sockets
    via by Unknown author,
  • GitHub comment 2#127634998
    via GitHub by alisle
    ,
    • java.net.SocketException: Can't assign requested address at java.net.PlainDatagramSocketImpl.join(Native Method) at java.net.AbstractPlainDatagramSocketImpl.join(AbstractPlainDatagramSocketImpl.java:178) at java.net.MulticastSocket.joinGroup(MulticastSocket.java:319) 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.doInit(CacheManager.java:411) at net.sf.ehcache.CacheManager.init(CacheManager.java:357) at net.sf.ehcache.CacheManager.<init>(CacheManager.java:242) at net.sf.ehcache.CacheManager.create(CacheManager.java:853) at net.sf.ehcache.CacheManager.create(CacheManager.java:740)

    Users with the same issue

    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    davidvanlaatum
    davidvanlaatum916 times, last one,
    Unknown visitor1 times, last one,
    8 more bugmates