"java.io.IOException: Invalid argument" in JBoss EAP server.log

Solution Verified - Updated -

Issue

  • Unable to add node to existing jboss cluster
  • When trying to add a node, it is unable to join the cluster and starts its own one-node cluster instead
  • The following error is logged:

    ERROR [org.jgroups.protocols.UDP] exception sending msg: java.lang.Exception: dest=/10.1.2.3:12345 (102 bytes)
    java.io.IOException: Invalid argument
        at java.net.PlainDatagramSocketImpl.send(Native Method)
        at java.net.DatagramSocket.send(DatagramSocket.java:612)
        at org.jgroups.protocols.UDP._send(UDP.java:345)
        at org.jgroups.protocols.UDP.sendToSingleMember(UDP.java:306)
        at org.jgroups.protocols.TP.doSend(TP.java:939)
        at org.jgroups.protocols.TP.access$2200(TP.java:47)
        at org.jgroups.protocols.TP$Bundler.bundleAndSend(TP.java:1651)
        at org.jgroups.protocols.TP$Bundler.access$2500(TP.java:1569)
        at org.jgroups.protocols.TP$Bundler$BundlingTimer.run(TP.java:1681)
        at java.util.TimerThread.mainLoop(Timer.java:512)
        at java.util.TimerThread.run(Timer.java:462)
    
  • The following messages appear repetitively in the log files.

2012-02-15 14:55:19,402 ERROR [org.jgroups.protocols.UDP] failed sending message to 127.0.0.4:55200 (95 bytes)
java.lang.Exception: dest=/127.0.0.4:55200 (98 bytes)
        at org.jgroups.protocols.UDP._send(UDP.java:374)
        at org.jgroups.protocols.UDP.sendToSingleMember(UDP.java:316)
        at org.jgroups.protocols.TP.doSend(TP.java:1481)
        at org.jgroups.protocols.TP.send(TP.java:1468)
        at org.jgroups.protocols.TP.down(TP.java:1186)
        at org.jgroups.protocols.TP$ProtocolAdapter.down(TP.java:2308)
        at org.jgroups.protocols.Discovery.down(Discovery.java:374)
        at org.jgroups.protocols.MERGE2.down(MERGE2.java:175)
        at org.jgroups.protocols.FD_SOCK.down(FD_SOCK.java:381)
        at org.jgroups.protocols.FD.down(FD.java:315)
        at org.jgroups.protocols.VERIFY_SUSPECT.down(VERIFY_SUSPECT.java:95)
        at org.jgroups.protocols.BARRIER.down(BARRIER.java:107)
        at org.jgroups.protocols.pbcast.NAKACK.down(NAKACK.java:675)
        at org.jgroups.protocols.UNICAST.sendAck(UNICAST.java:722)
        at org.jgroups.protocols.UNICAST.sendAckForMessage(UNICAST.java:735)
        at org.jgroups.protocols.UNICAST.handleDataReceived(UNICAST.java:593)
        at org.jgroups.protocols.UNICAST.up(UNICAST.java:309)
        at org.jgroups.protocols.pbcast.NAKACK.up(NAKACK.java:750)
        at org.jgroups.protocols.BARRIER.up(BARRIER.java:136)
        at org.jgroups.protocols.VERIFY_SUSPECT.up(VERIFY_SUSPECT.java:167)
        .. .. ..
Caused by: java.io.IOException: Invalid argument
        at java.net.PlainDatagramSocketImpl.send(Native Method)
        at java.net.DatagramSocket.send(DatagramSocket.java:625)
        at org.jgroups.protocols.UDP._send(UDP.java:370)
        ... 32 more
        .. .. ..        
2012-02-15 14:55:22,078 ERROR [org.jgroups.protocols.UDP] failed sending message to null (72 bytes)
java.lang.Exception: dest=/228.11.11.11:45688 (75 bytes)
        at org.jgroups.protocols.UDP._send(UDP.java:374)
        at org.jgroups.protocols.UDP.sendToAllMembers(UDP.java:302)
        at org.jgroups.protocols.TP.doSend(TP.java:1478)
        at org.jgroups.protocols.TP.send(TP.java:1468)
        at org.jgroups.protocols.TP.down(TP.java:1186)
        at org.jgroups.protocols.TP$ProtocolAdapter.down(TP.java:2308)
        at org.jgroups.protocols.PING.sendMcastDiscoveryRequest(PING.java:278)
        at org.jgroups.protocols.PING.sendGetMembersRequest(PING.java:259)
        at org.jgroups.protocols.Discovery$PingSenderTask$1.run(Discovery.java:407)
        .. .. ..
Caused by: java.io.IOException: Invalid argument
        at java.net.PlainDatagramSocketImpl.send(Native Method)
        at java.net.DatagramSocket.send(DatagramSocket.java:625)
        at org.jgroups.protocols.UDP._send(UDP.java:358)  

Environment

  • JBoss Enterprise Application Platform (EAP)
    • 5.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In