]
Balamurali L commented on JGRP-1516:
------------------------------------
-Djava.net.preferIPv4Stack=true -Djava.net.preferIPv6Addresses=false
-Djgroups.bind_addr=1.2.3.4 will solve this :)
JGroups not forming cluster between two linux machines
------------------------------------------------------
Key: JGRP-1516
URL:
https://issues.jboss.org/browse/JGRP-1516
Project: JGroups
Issue Type: Bug
Affects Versions: 3.0.14
Environment: Node 1 : Fedora release 14 (Laughlin) (32 bit) + java version
"1.6.0_33"
Node 2:- Red Hat Enterprise Linux Server release 6.0 (Santiago) (64 bit) + java version
"1.6.0_33"
Reporter: Balamurali L
Assignee: Bela Ban
Priority: Critical
Labels: worked
Between linux and windows the sample woks fine.
I used bind_addr for this also firwall disabled.
When new member join,viewAccepted() will be invoked.
In between two linux ,am also using this configuration ,but not forming cluster.(not
invoking viewAccepted()).Here also firwall disabled.
McastReceiverTest and McastSenderTest works fine also i tried -Djgroups.bind_port=8801
-Djava.net.preferIPv4Stack=true.But not forming cluster.
I am running two jgroup channel as below in two linux machines.
Node 1 :-
java -Djgroups.bind_addr=192.168.1.119 -cp ./jgroups-3.0.14.Final.jar:./$JAVA_HOME:
SimpleChat
public class SimpleChat extends ReceiverAdapter {
JChannel channel;
String user_name=System.getProperty("user.name", "n/a");
final List<String> state=new LinkedList<String>();
public void viewAccepted(View new_view) {
System.out.println("This is from @ADMIN@ ** view: " + new_view);
}
channel=new JChannel();
channel.setReceiver(this);
channel.connect("ChatCluster");
channel.getState(null, 10000);
Node 2 :-
java -Djgroups.bind_addr=192.168.1.119 -cp ./jgroups-3.0.14.Final.jar:./$JAVA_HOME:
SimpleChat1
channel=new JChannel();
channel.connect("ChatCluster");
in log :-
admin-PC-38687: dropped message 6 from root-57050 (sender not in table [admin-PC-38687,
localhost-53705]), view=[admin-PC-38687|1] [admin-PC-38687, localhost-53705]
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: