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"

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.0.0.M2
    • 1.0.1
    • 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

            costin Costin Leau
            rstoya05-aop Rossen Stoyanchev
            Archiver:
            tmarshall Trevor Marshall
            John Blum John Blum

            Dates

              Created:
              Updated:
              Resolved:
              Archived: