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

Apache's JIRA Issue Tracker | Jake Visser | 2 years ago
  1. 0

    [NIFI-155] Test Failure: MulticastProtocolListenerTest and ClusterServiceDiscoveryTest - ASF JIRA

    apache.org | 1 year ago
    java.net.SocketException: Can't assign requested address
  2. 0

    The following is the output of a test failure on OS X. Nifi still builds and operates fine - however I have not tested clustering. At the time of testing I am connected to wifi - and not running in a privileged mode. Is elevated privileges required? Ill look into the code and debug further over the next few days. Running org.apache.nifi.cluster.protocol.impl.ClusterServiceDiscoveryTest Tests run: 3, Failures: 0, Errors: 2, Skipped: 1, Time elapsed: 0.013 sec <<< FAILURE! - in org.apache.nifi.cluster.protocol.impl.ClusterServiceDiscoveryTest testBadBroadcastMessage(org.apache.nifi.cluster.protocol.impl.ClusterServiceDiscoveryTest) Time elapsed: 0.011 sec <<< ERROR! java.net.SocketException: Can't assign requested address at java.net.PlainDatagramSocketImpl.join(Native Method) at java.net.AbstractPlainDatagramSocketImpl.join(AbstractPlainDatagramSocketImpl.java:179) at java.net.MulticastSocket.joinGroup(MulticastSocket.java:319) at org.apache.nifi.io.socket.multicast.MulticastListener.start(MulticastListener.java:95) at org.apache.nifi.cluster.protocol.impl.MulticastProtocolListener.start(MulticastProtocolListener.java:96) at org.apache.nifi.cluster.protocol.impl.ClusterServiceDiscovery.start(ClusterServiceDiscovery.java:125) at org.apache.nifi.cluster.protocol.impl.ClusterServiceDiscoveryTest.setup(ClusterServiceDiscoveryTest.java:67) testGetAddressOnStartup(org.apache.nifi.cluster.protocol.impl.ClusterServiceDiscoveryTest) Time elapsed: 0.001 sec <<< ERROR! java.net.SocketException: Can't assign requested address at java.net.PlainDatagramSocketImpl.join(Native Method) at java.net.AbstractPlainDatagramSocketImpl.join(AbstractPlainDatagramSocketImpl.java:179) at java.net.MulticastSocket.joinGroup(MulticastSocket.java:319) at org.apache.nifi.io.socket.multicast.MulticastListener.start(MulticastListener.java:95) at org.apache.nifi.cluster.protocol.impl.MulticastProtocolListener.start(MulticastProtocolListener.java:96) at org.apache.nifi.cluster.protocol.impl.ClusterServiceDiscovery.start(ClusterServiceDiscovery.java:125) at org.apache.nifi.cluster.protocol.impl.ClusterServiceDiscoveryTest.setup(ClusterServiceDiscoveryTest.java:67) Running org.apache.nifi.cluster.protocol.impl.ClusterServiceLocatorTest Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 4.026 sec - in org.apache.nifi.cluster.protocol.impl.ClusterServiceLocatorTest Running org.apache.nifi.cluster.protocol.impl.ClusterServicesBroadcasterTest Tests run: 1, Failures: 0, Errors: 0, Skipped: 1, Time elapsed: 0 sec - in org.apache.nifi.cluster.protocol.impl.ClusterServicesBroadcasterTest Running org.apache.nifi.cluster.protocol.impl.MulticastProtocolListenerTest Tests run: 2, Failures: 0, Errors: 1, Skipped: 1, Time elapsed: 0.002 sec <<< FAILURE! - in org.apache.nifi.cluster.protocol.impl.MulticastProtocolListenerTest testBadRequest(org.apache.nifi.cluster.protocol.impl.MulticastProtocolListenerTest) Time elapsed: 0.001 sec <<< ERROR! java.net.SocketException: Can't assign requested address at java.net.PlainDatagramSocketImpl.join(Native Method) at java.net.AbstractPlainDatagramSocketImpl.join(AbstractPlainDatagramSocketImpl.java:179) at java.net.MulticastSocket.joinGroup(MulticastSocket.java:319) at org.apache.nifi.io.socket.multicast.MulticastListener.start(MulticastListener.java:95) at org.apache.nifi.cluster.protocol.impl.MulticastProtocolListener.start(MulticastProtocolListener.java:96) at org.apache.nifi.cluster.protocol.impl.MulticastProtocolListenerTest.setup(MulticastProtocolListenerTest.java:68) Running org.apache.nifi.cluster.protocol.impl.NodeProtocolSenderImplTest Tests run: 1, Failures: 0, Errors: 0, Skipped: 1, Time elapsed: 0 sec - in org.apache.nifi.cluster.protocol.impl.NodeProtocolSenderImplTest Results : Tests in error: ClusterServiceDiscoveryTest.setup:67 » Socket Can't assign requested address ClusterServiceDiscoveryTest.setup:67 » Socket Can't assign requested address MulticastProtocolListenerTest.setup:68 » Socket Can't assign requested address

    Apache's JIRA Issue Tracker | 2 years ago | Jake Visser
    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

  5. 0

    Getting error "Can't assign requested address" while trying to run the peer protocol example in ch 4

    manning.com | 8 months ago
    java.net.SocketException: Can't assign requested address
  6. 0

    Multicast does not work on Mac OS Yosemite

    GitHub | 2 years ago | bluestreak01
    com.nfsdb.journal.exceptions.JournalNetworkException: Cannot open multicast socket

  1. davidvanlaatum 916 times, last 4 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:179)
    3. java.net.MulticastSocket.joinGroup(MulticastSocket.java:319)
    3 frames
  3. org.apache.nifi
    MulticastProtocolListenerTest.setup
    1. org.apache.nifi.io.socket.multicast.MulticastListener.start(MulticastListener.java:95)
    2. org.apache.nifi.cluster.protocol.impl.MulticastProtocolListener.start(MulticastProtocolListener.java:96)
    3. org.apache.nifi.cluster.protocol.impl.MulticastProtocolListenerTest.setup(MulticastProtocolListenerTest.java:68)
    3 frames