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

Pentaho BI Platform Tracking | Nick Baker | 2 years ago
  1. 0

    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)

    Pentaho BI Platform Tracking | 2 years ago | Nick Baker
    java.net.SocketException: Can't assign requested address
  2. 0

    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)

    Pentaho BI Platform Tracking | 2 years ago | Nick Baker
    java.net.SocketException: Can't assign requested address
  3. 0

    [QUESTION]open ports or other sockets

    apache.org | 1 year ago
    java.net.SocketException: Can't assign requested address
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  1. davidvanlaatum 916 times, last 3 months ago
11 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.net.SocketException

    Can't assign requested address

    at java.net.PlainDatagramSocketImpl.join()
  2. Java RT
    MulticastSocket.joinGroup
    1. java.net.PlainDatagramSocketImpl.join(Native Method)
    2. java.net.AbstractPlainDatagramSocketImpl.join(AbstractPlainDatagramSocketImpl.java:178)
    3. java.net.MulticastSocket.joinGroup(MulticastSocket.java:319)
    3 frames
  3. Ehcache
    CacheManager.create
    1. net.sf.ehcache.distribution.MulticastKeepaliveHeartbeatReceiver.init(MulticastKeepaliveHeartbeatReceiver.java:88)
    2. net.sf.ehcache.distribution.MulticastRMICacheManagerPeerProvider.init(MulticastRMICacheManagerPeerProvider.java:95)
    3. net.sf.ehcache.CacheManager.doInit(CacheManager.java:411)
    4. net.sf.ehcache.CacheManager.init(CacheManager.java:357)
    5. net.sf.ehcache.CacheManager.<init>(CacheManager.java:242)
    6. net.sf.ehcache.CacheManager.create(CacheManager.java:853)
    7. net.sf.ehcache.CacheManager.create(CacheManager.java:740)
    7 frames