A
A
alexrugik2015-11-01 12:42:31
Java
alexrugik, 2015-11-01 12:42:31

Java: JGroup: Error, how to resolve this error?

Good afternoon!
I get this error when using JGroup, does anyone know how to solve it? Apparently because of this error, I cannot receive messages by those who are in the cluster.
Unfortunately, I couldn't find a solution on Google.
Perhaps someone has come across a similar issue and can suggest in which direction to look for a solution?
Nov 01, 2015 11:38:20 AM org.jgroups.protocols.UDP setTimeToLive
SEVERE: failed setting ip_ttl
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke (Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.jgroups.protocols.UDP.setTimeToLive(UDP.java:339)
at org.jgroups.protocols.UDP.createSockets(UDP.java:368)
at org.jgroups.protocols.UDP.start(UDP.java:270 )
at org.jgroups.stack.ProtocolStack.startStack(ProtocolStack.java:965)
at org.jgroups.JChannel.startStack(JChannel.java:890)
at org.jgroups.JChannel._preConnect(JChannel.java:553)
at org .jgroups.JChannel.connect(JChannel.java:288)
at org.jgroups.JChannel.connect(JChannel.java:279)
at Sender.main(Sender.java:11)
Caused by: java.io.IOException: Method not implemented!
at java.net.DualStackPlainDatagramSocketImpl.setTimeToLive(Unknown Source)
... 13 more
Code example :
public class Sender {
JChannel c;
public static void main(String[] args) throws Exception {
JChannel c = new JChannel();
c.connect("1");
Message msg = new Message(null, null, "Hello from Sender");
c.send(msg);
c.close();
}
}

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question