<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<body link="#355491" alink="#4262a1" vlink="#355491" style="background: #e2e2e2; margin: 0; padding: 20px;">

<div>
        <table cellpadding="0" bgcolor="#FFFFFF" border="0" cellspacing="0" style="border: 1px solid #dadada; margin-bottom: 30px; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                <tbody>
                        <tr>

                                <td>

                                        <table border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" style="border: solid 2px #ccc; background: #dadada; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                                                <tbody>
                                                        <tr>
                                                                <td bgcolor="#000000" valign="middle" height="58px" style="border-bottom: 1px solid #ccc; padding: 20px; -moz-border-radius-topleft: 3px; -moz-border-radius-topright: 3px; -webkit-border-top-right-radius: 5px; -webkit-border-top-left-radius: 5px;">
                                                                        <h1 style="color: #333333; font: bold 22px Arial, Helvetica, sans-serif; margin: 0; display: block !important;">
                                                                        <!-- To have a header image/logo replace the name below with your img tag -->
                                                                        <!-- Email clients will render the images when the message is read so any image -->
                                                                        <!-- must be made available on a public server, so that all recipients can load the image. -->
                                                                        <a href="http://community.jboss.org/index.jspa" style="text-decoration: none; color: #E1E1E1">JBoss Community</a></h1>
                                                                </td>

                                                        </tr>
                                                        <tr>
                                                                <td bgcolor="#FFFFFF" style="font: normal 12px Arial, Helvetica, sans-serif; color:#333333; padding: 20px;  -moz-border-radius-bottomleft: 4px; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 5px; -webkit-border-bottom-left-radius: 5px;"><h3 style="margin: 10px 0 5px; font-size: 17px; font-weight: normal;">
    JBoss Clustering 5.1 (Discovery Interrupt Failure)
</h3>
<span style="margin-bottom: 10px;">
    created by <a href="http://community.jboss.org/people/sri4jb4rel">Sridhar Iyer</a> in <i>Beginner's Corner</i> - <a href="http://community.jboss.org/message/645886#645886">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">

<div class="jive-rendered-content"><p>I am planning to do a set up of JBoss Clustering using the community version 5.1.0. Followed the instructions mentioned in the link <a class="jive-link-external-small" href="http://docs.jboss.org/jbossclustering/cluster_guide/5.1/html-single/index.html">http://docs.jboss.org/jbossclustering/cluster_guide/5.1/html-single/index.html</a>. But post deploying the 2 node cluster once in single machine and second try I did in two machines. In both the cases I am getting the below error continuously post the server are started. I am able to view the applications in stanalong httpURLs but due to the below error i m confused to understand if really my instances are part of the cluster</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Moreover i never find in the logs of the server that my custoem cluster has two nodes participated</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>My question remains</p><p>1) Has the cluster formed properly?</p><p>2) How to check if an instance is part of a customised cluster and its member nodes? Is there any way in JMX console</p><p>3) How to verify if Muticast is working properly or not?</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p><strong>Error in both server log is </strong></p><p> ##########################################################################################################################</p><p>2012-01-11 11:52:25,370 ERROR [org.jgroups.protocols.MPING] (Timer-2,10.185.254.80:7901) failed sending discovery request</p><p>java.io.InterruptedIOException: operation interrupted</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at java.net.PlainDatagramSocketImpl.send(Native Method)</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at java.net.DatagramSocket.send(DatagramSocket.java:625)</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.jgroups.protocols.MPING.sendMcastDiscoveryRequest(MPING.java:341)</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.jgroups.protocols.PING.sendGetMembersRequest(PING.java:259)</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.jgroups.protocols.Discovery$PingSenderTask$1.run(Discovery.java:407)</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:417)</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:280)</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:135)</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:65)</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:146)</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:170)</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:651)</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:676)</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at java.lang.Thread.run(Thread.java:637)</p><p>##########################################################################################################################</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p><strong>When verified what is port and IP combination i found its not related to my cluster. </strong>Please check the GSM below its of Messaging</p><p>##########################################################################################################################</p><p>---------------------------------------------------------</p><p>GMS: address is 10.185.254.80:7901 (cluster=MessagingPostOffice-DATA)</p><p>---------------------------------------------------------</p><p>2012-01-11 11:16:08,061 INFO&#160; [org.jboss.jms.server.connectionfactory.ConnectionFactory] (main) Connector bisocket://10.185.254.80:4557 has le</p><p>asing enabled, lease period 10000 milliseconds</p><p>2012-01-11 11:16:08,061 INFO&#160; [org.jboss.jms.server.connectionfactory.ConnectionFactory] (main) org.jboss.jms.server.connectionfactory.Connect</p><p><a class="" href="http://community.jboss.org/mailto:ionFactory@15d8350">ionFactory@15d8350</a> started</p><p>2012-01-11 11:16:08,072 INFO&#160; [org.jboss.jms.server.connectionfactory.ConnectionFactory] (main) Connector bisocket://10.185.254.80:4557 has le</p><p>asing enabled, lease period 10000 milliseconds</p><p>##########################################################################################################################</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p><strong>Wrt to my Cluster 'DEVCLUST' I dont find differnt nodes participating</strong>. Please find its Related Logs below</p><p>##########################################################################################################################</p><p>"2012-01-11 11:15:26,436 INFO&#160; [org.jboss.mail.MailService] (main) Mail Service bound to java:/Mail</p><p>2012-01-11 11:15:28,692 INFO&#160; [org.jboss.jmx.adaptor.snmp.agent.SnmpAgentService] (main) SNMP agent going active</p><p>2012-01-11 11:15:35,855 INFO&#160; [org.jboss.ha.framework.interfaces.HAPartition.DEVCLUST] (main) Initializing partition DEVCLUST</p><p>2012-01-11 11:15:35,966 INFO&#160; [STDOUT] (JBoss System Threads(1)-3)</p><p>---------------------------------------------------------</p><p>GMS: address is 10.185.254.80:58862 (cluster=DEVCLUST)</p><p>---------------------------------------------------------</p><p>2012-01-11 11:15:36,335 INFO&#160; [org.jboss.cache.jmx.PlatformMBeanServerRegistration] (main) JBossCache MBeans were successfully registered to t</p><p>he platform mbean server.</p><p>2012-01-11 11:15:36,502 INFO&#160; [STDOUT] (main)</p><p>---------------------------------------------------------</p><p>GMS: address is 10.185.254.80:58862 (cluster=DEVCLUST-HAPartitionCache)</p><p>---------------------------------------------------------</p><p>2012-01-11 11:15:38,065 INFO&#160; [org.jboss.ha.framework.interfaces.HAPartition.DEVCLUST] (JBoss System Threads(1)-3) Number of cluster members:</p><p>1</p><p>2012-01-11 11:15:38,065 INFO&#160; [org.jboss.ha.framework.interfaces.HAPartition.DEVCLUST] (JBoss System Threads(1)-3) Other members: 0</p><p>2012-01-11 11:15:38,513 INFO&#160; [org.jboss.cache.RPCManagerImpl] (main) Received new cluster view: [10.185.254.80:58862|0] [10.185.254.80:58862]</p><p>2012-01-11 11:15:38,521 INFO&#160; [org.jboss.cache.RPCManagerImpl] (main) Cache local address is 10.185.254.80:58862</p><p>2012-01-11 11:15:38,529 INFO&#160; [org.jboss.cache.RPCManagerImpl] (main) state was retrieved successfully (in 2.02 seconds)</p><p>2012-01-11 11:15:38,625 INFO&#160; [org.jboss.cache.factories.ComponentRegistry] (main) JBoss Cache version: JBossCache 'Cascabel' 3.1.0.GA</p><p>2012-01-11 11:15:38,529 INFO&#160; [org.jboss.cache.RPCManagerImpl] (main) state was retrieved successfully (in 2.02 seconds)</p><p>2012-01-11 11:15:38,625 INFO&#160; [org.jboss.cache.factories.ComponentRegistry] (main) JBoss Cache version: JBossCache 'Cascabel' 3.1.0.GA</p><p>2012-01-11 11:15:38,626 INFO&#160; [org.jboss.ha.framework.interfaces.HAPartition.DEVCLUST] (main) Fetching serviceState (will wait for 30000 milli</p><p>seconds):</p><p>2012-01-11 11:15:38,631 INFO&#160; [org.jboss.ha.framework.interfaces.HAPartition.DEVCLUST] (main) State could not be retrieved (we are the first m</p><p>ember in group)</p><p>2012-01-11 11:15:38,796 INFO&#160; [org.jboss.ha.jndi.HANamingService] (main) Started HAJNDI bootstrap; jnpPort=1200, backlog=50, bindAddress=/10.1</p><p>85.254.80</p><p>2012-01-11 11:15:38,816 INFO&#160; [org.jboss.ha.jndi.DetachedHANamingService$AutomaticDiscovery] (main) Listening on /10.185.254.80:1102, group=23</p><p>9.255.100.101, HA-JNDI address=10.185.254.80:1200</p><p>2012-01-11 11:15:42,220 INFO&#160; [org.jboss.invocation.unified.server.UnifiedInvokerHA] (main) Service name is jboss:service=invoker,type=unified</p><p>ha</p><p>2012-01-11 11:15:45,498 WARN&#160; [org.jboss.jms.server.jbosssx.JBossASSecurityMetadataStore] (main) WARNING! POTENTIAL SECURITY RISK. It has been</p><p> detected that the MessageSucker component which sucks messages from one node to another has not had its password changed from the installatio</p><p>n default. Please see the JBoss Messaging user guide for instructions on how to do this.</p><p>2012-01-11 11:15:45,575 WARN&#160; [org.jboss.annotation.factory.AnnotationCreator] (main) No ClassLoader provided, using TCCL: org.jboss.managed.a</p><p>pi.annotation.ManagementComponent</p><p>2012-01-11 11:15:46,041 WARN&#160; [org.jboss.annotation.factory.AnnotationCreator] (main) No ClassLoader provided, using TCCL: org.jboss.managed.a</p><p>pi.annotation.ManagementComponent</p><p>2012-01-11 11:15:46,246 INFO&#160; [com.arjuna.ats.jbossatx.jta.TransactionManagerService] (main) JBossTS Transaction Service (JTA version - tag:JB</p><p>OSSTS_4_6_1_GA) - JBoss Inc.</p><p>2012-01-11 11:15:46,247 INFO&#160; [com.arjuna.ats.jbossatx.jta.TransactionManagerService] (main) Setting up property manager MBean and JMX layer</p><p>2012-01-11 11:15:46,966 INFO&#160; [com.arjuna.ats.jbossatx.jta.TransactionManagerService] (main) Initializing recovery manager</p><p>2012-01-11 11:15:47,352 INFO&#160; [com.arjuna.ats.jbossatx.jta.TransactionManagerService] (main) Recovery manager configured</p><p>2012-01-11 11:15:47,353 INFO&#160; [com.arjuna.ats.jbossatx.jta.TransactionManagerService] (main) Binding TransactionManager JNDI Reference</p><p>2012-01-11 11:15:47,463 INFO&#160; [com.arjuna.ats.jbossatx.jta.TransactionManagerService] (main) Starting transaction recovery manager"</p><p>########################################################################################################################## </p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>This is how i started in single instance mode</p><p><p>./run_a.sh -c MYCLUSTER -g DEVCLUST -u 239.255.100.100 -b 10.185.254.80 -Djboss.messaging.ServerPeerID=1 -</p></p><p> Djboss.service.binding.set=ports-default &amp;</p><p>./run_b.sh -c MYCLUSTER2 -g DEVCLUST -u 239.255.100.101 -b 10.185.254.80 -Djboss.messaging.ServerPeerID=2 -Djboss.service.binding.set=ports-01</p><p> &amp;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>In different machine set up i avoided the -Djboss.service.binding.set attibutes.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p><strong>Configuration I Changed</strong></p><p>1) ../server/&lt;node1&gt;/deploy/messaging/messaging-service.xml</p><p>&#160;&#160;&#160;&#160; Set the ServerPeerID to what used in run.sh command line</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>2) ../server/&lt;node1&gt;/deploy/jbossweb.sar/service.xml</p><p>&#160;&#160;&#160;&#160; In the Engine XML element specified the jvmRoute="MYCLUSTER"</p></div>

<div style="background-color: #f4f4f4; padding: 10px; margin-top: 20px;">
    <p style="margin: 0;">Reply to this message by <a href="http://community.jboss.org/message/645886#645886">going to Community</a></p>
        <p style="margin: 0;">Start a new discussion in Beginner's Corner at <a href="http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2075">Community</a></p>
</div></td>
                        </tr>
                    </tbody>
                </table>


                </td>
            </tr>
        </tbody>
    </table>

</div>

</body>
</html>