Tuesday, November 30, 2010

PROBLEM bad argument for IP_MULTICAST_IF: address not bound to any interface (SOLVED)

PROBLEM
 
Caused by: java.lang.RuntimeException: Cannot initialize the Channel needed for the RPCServiceImpl
at org.exoplatform.services.rpc.impl.RPCServiceImpl.start(RPCServiceImpl.java:714) ~[exo.kernel.component.common-2.3.0-CR1-SNAPSHOT.jar:2.3.0-CR1-SNAPSHOT]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.6.0_19]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) ~[na:1.6.0_19]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) ~[na:1.6.0_19]
at java.lang.reflect.Method.invoke(Method.java:597) ~[na:1.6.0_19]
at org.picocontainer.defaults.LifecycleVisitor.traverse(LifecycleVisitor.java:75) ~[picocontainer-1.1.jar:1.1]
... 35 common frames omitted
Caused by: org.jgroups.ChannelException: failed to start protocol stack
at org.jgroups.JChannel.startStack(JChannel.java:1617) ~[jgroups-2.6.13.GA.jar:2.6.13.GA]
at org.jgroups.JChannel.connect(JChannel.java:366) ~[jgroups-2.6.13.GA.jar:2.6.13.GA]
at org.exoplatform.services.rpc.impl.RPCServiceImpl$3.run(RPCServiceImpl.java:704) ~[exo.kernel.component.common-2.3.0-CR1-SNAPSHOT.jar:2.3.0-CR1-SNAPSHOT]
at org.exoplatform.services.rpc.impl.RPCServiceImpl$3.run(RPCServiceImpl.java:698) ~[exo.kernel.component.common-2.3.0-CR1-SNAPSHOT.jar:2.3.0-CR1-SNAPSHOT]
at java.security.AccessController.doPrivileged(Native Method) [na:1.6.0_19]
at org.exoplatform.services.rpc.impl.RPCServiceImpl.start(RPCServiceImpl.java:697) ~[exo.kernel.component.common-2.3.0-CR1-SNAPSHOT.jar:2.3.0-CR1-SNAPSHOT]
... 40 common frames omitted
Caused by: java.lang.Exception: problem creating sockets (bind_addr=alexey-i7-pc/127.0.1.1, mcast_addr=228.10.10.10:45588)
at org.jgroups.protocols.UDP.start(UDP.java:389) ~[jgroups-2.6.13.GA.jar:2.6.13.GA]
at org.jgroups.stack.Configurator.startProtocolStack(Configurator.java:121) ~[jgroups-2.6.13.GA.jar:2.6.13.GA]
at org.jgroups.stack.ProtocolStack.startStack(ProtocolStack.java:402) ~[jgroups-2.6.13.GA.jar:2.6.13.GA]
at org.jgroups.JChannel.startStack(JChannel.java:1614) ~[jgroups-2.6.13.GA.jar:2.6.13.GA]
... 45 common frames omitted
Caused by: java.net.SocketException: bad argument for IP_MULTICAST_IF: address not bound to any interface
at java.net.PlainDatagramSocketImpl.socketSetOption(Native Method) ~[na:1.6.0_19]
at java.net.PlainDatagramSocketImpl.setOption(PlainDatagramSocketImpl.java:299) ~[na:1.6.0_19]
at java.net.MulticastSocket.setInterface(MulticastSocket.java:424) ~[na:1.6.0_19]
at org.jgroups.protocols.UDP.createSockets(UDP.java:527) ~[jgroups-2.6.13.GA.jar:2.6.13.GA]
at org.jgroups.protocols.UDP.start(UDP.java:385) ~[jgroups-2.6.13.GA.jar:2.6.13.GA]
... 48 common frames omitted



SOLUTION
to add jgroups-*jar

No comments: