Uploaded image for project: 'Spring Data GemFire'
  1. Spring Data GemFire
  2. SGF-28

Sample fails to run on Ubuntu with SocketException "bad argument for IP_MULTICAST_IF"

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.0.0.M2
    • Fix Version/s: 1.0.1
    • Labels:
      None

      Description

      This is the exception:

      Caused by: java.net.SocketException: bad argument for IP_MULTICAST_IF: address not bound to any interface
      at java.net.PlainDatagramSocketImpl.socketSetOption(Native Method)
      at java.net.PlainDatagramSocketImpl.setOption(PlainDatagramSocketImpl.java:299)
      at java.net.MulticastSocket.setInterface(MulticastSocket.java:420)
      at com.gemstone.org.jgroups.protocols.UDP.createSockets(UDP.java:669)
      at com.gemstone.org.jgroups.protocols.UDP.start(UDP.java:535)

      Gemfire needs a way to find the other caches in the network. Either multicast or a locator process can be used for that. Locator is the recommended approach so that would be the preferred solution.

      A quick workaround is to use "-Djava.net.preferIPv4Stack=true".

        Attachments

          Activity

            People

            • Assignee:
              costin Costin Leau
              Reporter:
              rstoya05-aop Rossen Stoyanchev
              Last updater:
              John Blum
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: