java.net.SocketException

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.

  • 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
    via by Jake Visser,
  • [QUESTION]open ports or other sockets
    via by Unknown author,
  • GitHub comment 2#127634998
    via GitHub by alisle
    ,
  • :startJenkins tasks hanging
    via GitHub by willis7
    ,
    • 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)

    Users with the same issue

    davidvanlaatumdavidvanlaatum
    916 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    8 more bugmates