1 Reply Latest reply on Jul 11, 2014 1:39 PM by Anders Gronborg

    java.net.SocketException: bad argument for IP_MULTICAST_IF: address not bound to any interface

    Bhaskar Ethirajulu Newbie

      I tried to run JBOSS in standalone mode giving standalne-ha.xml file as input in JBOSS EAP 6.2. I am facing with the below mentioned error. Please provide some ideas to get rid of this issue.

       

      10:18:19,510 ERROR [org.jboss.msc.service.fail] (ServerService Thread Pool -- 64) MSC000001: Failed to start service jboss.infinispan.web.global-component-registry: org.jboss.msc.service.StartException in service jboss.infinispan.web.global-component-registry: org.infinispan.manager.EmbeddedCacheManagerStartupException: org.infinispan.CacheException: Unable to invoke method public void org.infinispan.remoting.transport.jgroups.JGroupsTransport.start() on object of type JGroupsTransport

              at org.jboss.as.clustering.msc.AsynchronousService$1.run(AsynchronousService.java:91)

              at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_60]

              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_60]

              at java.lang.Thread.run(Thread.java:745) [rt.jar:1.7.0_60]

              at org.jboss.threads.JBossThread.run(JBossThread.java:122)

      Caused by: org.infinispan.manager.EmbeddedCacheManagerStartupException: org.infinispan.CacheException: Unable to invoke method public void org.infinispan.remoting.transport.jgroups.JGroupsTransport.start() on object of type JGroupsTransport

              at org.infinispan.factories.GlobalComponentRegistry.start(GlobalComponentRegistry.java:247)

              at org.jboss.as.clustering.infinispan.subsystem.GlobalComponentRegistryService.start(GlobalComponentRegistryService.java:57)

              at org.jboss.as.clustering.msc.AsynchronousService$1.run(AsynchronousService.java:86)

              ... 4 more

      Caused by: org.infinispan.CacheException: Unable to invoke method public void org.infinispan.remoting.transport.jgroups.JGroupsTransport.start() on object of type JGroupsTransport

              at org.infinispan.util.ReflectionUtil.invokeAccessibly(ReflectionUtil.java:205)

              at org.infinispan.factories.AbstractComponentRegistry$PrioritizedMethod.invoke(AbstractComponentRegistry.java:886)

              at org.infinispan.factories.AbstractComponentRegistry.invokeStartMethods(AbstractComponentRegistry.java:657)

              at org.infinispan.factories.AbstractComponentRegistry.internalStart(AbstractComponentRegistry.java:646)

              at org.infinispan.factories.AbstractComponentRegistry.start(AbstractComponentRegistry.java:549)

              at org.infinispan.factories.GlobalComponentRegistry.start(GlobalComponentRegistry.java:225)

              ... 6 more

      Caused by: org.infinispan.CacheException: Unable to start JGroups Channel

              at org.infinispan.remoting.transport.jgroups.JGroupsTransport.startJGroupsChannelIfNeeded(JGroupsTransport.java:209)

              at org.infinispan.remoting.transport.jgroups.JGroupsTransport.start(JGroupsTransport.java:198)

              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.7.0_60]

              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) [rt.jar:1.7.0_60]

              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.7.0_60]

              at java.lang.reflect.Method.invoke(Method.java:606) [rt.jar:1.7.0_60]

        at org.infinispan.util.ReflectionUtil.invokeAccessibly(ReflectionUtil.java:203)

              ... 11 more

      Caused by: java.net.SocketException: bad argument for IP_MULTICAST_IF: address not bound to any interface

              at java.net.PlainDatagramSocketImpl.socketSetOption(Native Method) [rt.jar:1.7.0_60]

              at java.net.AbstractPlainDatagramSocketImpl.setOption(AbstractPlainDatagramSocketImpl.java:309) [rt.jar:1.7.0_60]

              at java.net.MulticastSocket.setInterface(MulticastSocket.java:467) [rt.jar:1.7.0_60]

              at org.jgroups.protocols.UDP.createSockets(UDP.java:385)

              at org.jgroups.protocols.UDP.start(UDP.java:225)

              at org.jgroups.stack.ProtocolStack.startStack(ProtocolStack.java:948)

              at org.jgroups.JChannel.startStack(JChannel.java:827)

              at org.jgroups.JChannel._preConnect(JChannel.java:525)

              at org.jgroups.JChannel.connect(JChannel.java:277)

              at org.jgroups.JChannel.connect(JChannel.java:268)

              at org.infinispan.remoting.transport.jgroups.JGroupsTransport.startJGroupsChannelIfNeeded(JGroupsTransport.java:207)

              ... 17 more

       

      - Bhaskar

        • 1. Re: java.net.SocketException: bad argument for IP_MULTICAST_IF: address not bound to any interface
          Anders Gronborg Newbie

          Hi Bhaskar

           

          This is likely caused because of missing address definition in standalone.xml in the interface section.

          You should add some like:


              <interfaces>

                  <interface name="management">

                      <inet-address value="${jboss.bind.address.management:127.0.0.1}"/>

                  </interface>

                  <interface name="public">

                      <inet-address value="${jboss.bind.address:127.0.0.1}"/>

                  </interface>

                  <interface name="unsecure">

                      <inet-address value="${jboss.bind.address.unsecure:127.0.0.1}"/>

                  </interface>

              </interfaces>


          Bgrds

          Anders