Hi,
On 6.8.2013 06:22, Tuyen The Nguyen wrote:
Hi all, I'm working on issue GTNPORTAL-2258.
I configure Gatein cluster mode follow by document of gatein
(
https://docs.jboss.org/author/display/GTNPORTAL35/Clustering+configuration).
When i start gatein with command:
$ ./bin/standalone.sh --server-config=standalone-ha.xml
-Djboss.node.name <
http://Djboss.node.name>=node1 -b 192.168.210.101
-u 2.439.232.2 -Djboss.bind.address.management=192.168.210.101
I can't understand param "-u 239.23.42.2", i see that's multicast IP,
but how can i get this ip in my network.
GateIn/JBoss clustering is using JGroups
library for cluster
communication, which is by default using UDP protocol with multicast. So
you just need to have support for multicast in your OS and network. See
for example
http://en.wikipedia.org/wiki/Multicast_address for more
info. For parameter "-u" you need to use multicast IP address (something
from 224.0.0.0 to 239.255.255.255). I am seeing that you have invalid
address 2.439.232.2 in your first command. Address 239.23.42.2 should be
ok. Could you double-check and test again?
When i remove this param and use default of jbossAS and it work with
gatein 3.5.x But in 3.6.x and master branch, i always meet exception.
I recommend
to always specify "-u" address and choose some 'random'
address from the range when you test clustering. When you use default
230.0.0.4, you have quite big chance that your cluster will communicate
with someone else on same network who is also testing clustering. And
this is usually something, which you don't want and second person as
well:-)
Marek
*/Is there anybody know how to fix this bug?/*
*Exception:*
ERROR [org.jgroups.protocols.UDP] (Timer-2,127.0.0.1:56200
<
http://127.0.0.1:56200>) failed sending message to null (66 bytes):
java.lang.Exception: dest=/230.0.0.4:45588 <
http://230.0.0.4:45588>
(69 bytes)
at org.jgroups.protocols.UDP._send(UDP.java:374)
at org.jgroups.protocols.UDP.sendToAllMembers(UDP.java:302)
at org.jgroups.protocols.TP.doSend(TP.java:1478)
at org.jgroups.protocols.TP.send(TP.java:1468)
at org.jgroups.protocols.TP.down(TP.java:1186)
at org.jgroups.protocols.TP
<
http://org.jgroups.protocols.TP>$ProtocolAdapter.down(TP.java:2308)
at org.jgroups.protocols.PING.sendMcastDiscoveryRequest(PING.java:278)
at org.jgroups.protocols.PING.sendGetMembersRequest(PING.java:259)
at
org.jgroups.protocols.Discovery$PingSenderTask$1.run(Discovery.java:407)
at
org.jgroups.util.TimeScheduler$RobustRunnable.run(TimeScheduler.java:196)
at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:439)
[rt.jar:1.6.0_45]
at
java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
[rt.jar:1.6.0_45]
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
[rt.jar:1.6.0_45]
at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
[rt.jar:1.6.0_45]
at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
[rt.jar:1.6.0_45]
at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
[rt.jar:1.6.0_45]
at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
[rt.jar:1.6.0_45]
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
[rt.jar:1.6.0_45]
at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_45]
Caused by: java.io.IOException: Invalid argument
at java.net.PlainDatagramSocketImpl.send(Native Method) [rt.jar:1.6.0_45]
at java.net.DatagramSocket.send(DatagramSocket.java:625) [rt.jar:1.6.0_45]
at org.jgroups.protocols.UDP._send(UDP.java:358)
... 18 more
_______________________________________________
gatein-dev mailing list
gatein-dev(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/gatein-dev