2 Replies Latest reply on Sep 20, 2005 4:36 PM by Bela Ban

    Unable to start JBoss in clustered environment

    Nitesh Varma Newbie


      This is the first time I'm trying out clustering with JBoss. I'm trying to start JBoss with only one node in a cluster just to figure out the configuration required.

      I'm getting the following error on starting JBoss with 'run -c all':

      12:42:42,178 INFO [DefaultPartition] Initializing
      12:42:42,238 ERROR [JChannel] exception: java.lang.Exception: exception caused b
      y UDP.start(): java.net.SocketException: Not a multicast address
      12:42:42,238 ERROR [ClusterPartition] Starting failed jboss:service=DefaultParti
      ChannelException: java.lang.Exception: exception caused by UDP.start(): java.net
      .SocketException: Not a multicast address
      at org.jgroups.JChannel.connect(JChannel.java:323)
      at org.jboss.ha.framework.server.ClusterPartition.startService(ClusterPa
      at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanS
      at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMB

      My cluster MBean descriptor in jboss-service.xml looks like this:

      <mbean code="org.jboss.ha.framework.server.ClusterPartition"
       <!-- Name of the partition being built -->
       <attribute name="PartitionName">DefaultPartition</attribute>
       <!-- The address used to determine the node name -->
       <attribute name="NodeAddress"></attribute>
       <!-- Determine if deadlock detection is enabled -->
       <attribute name="DeadlockDetection">False</attribute>
       <!-- Max time (in ms) to wait for state transfer to complete. Increase for large states -->
       <attribute name="StateTransferTimeout">30000</attribute>
       <!-- The JGroups protocol configuration -->
       <attribute name="PartitionConfig">
       The default UDP stack:
       - If you have a multihomed machine, set the UDP protocol's bind_addr attribute to the
       appropriate NIC IP address, e.g bind_addr="".
       - On Windows machines, because of the media sense feature being broken with multicast
       (even after disabling media sense) set the UDP protocol's loopback attribute to true
       <UDP mcast_addr="" mcast_port="45566"
       ip_ttl="8" ip_mcast="true"
       mcast_send_buf_size="800000" mcast_recv_buf_size="150000"
       ucast_send_buf_size="800000" ucast_recv_buf_size="150000"
       <PING timeout="2000" num_initial_members="3"
       up_thread="true" down_thread="true"/>
       <MERGE2 min_interval="10000" max_interval="20000"/>
       <FD shun="true" up_thread="true" down_thread="true"
       timeout="2500" max_tries="5"/>
       <VERIFY_SUSPECT timeout="3000" num_msgs="3"
       up_thread="true" down_thread="true"/>
       <pbcast.NAKACK gc_lag="50" retransmit_timeout="300,600,1200,2400,4800"
       up_thread="true" down_thread="true"/>
       <UNICAST timeout="300,600,1200,2400,4800" window_size="100" min_threshold="10"
       <pbcast.STABLE desired_avg_gossip="20000"
       up_thread="true" down_thread="true"/>
       <FRAG frag_size="8192"
       down_thread="true" up_thread="true"/>
       <pbcast.GMS join_timeout="5000" join_retry_timeout="2000"
       shun="true" print_local_addr="true"/>
       <pbcast.STATE_TRANSFER up_thread="true" down_thread="true"/>
       <!-- Alternate TCP stack: customize it for your environment, change bind_addr and initial_hosts -->

      I've checked in my host file and the hostname-ip address is correctly mapped.

      Any help will be highly appreciated.