9 Replies Latest reply: Oct 18, 2010 9:43 AM by Marek Goldmann RSS

Problem when configuring GossipRouter

Younes Yahyaoui Novice

Hello,

 

i have tried to start a GossipRouter on a server1. Then i have tried to start a JBoss AS on another server. The GossipRouter don't react when strating the JBoss AS. An Error was throwed saying:

 

 

2010-10-14 22:21:30,018 ERROR [org.jgroups.stack.GossipClient] exception connecting to host xxx.xxx.xxx.91:5555
2010-10-14 22:21:30,018 ERROR [org.jgroups.protocols.TCPGOSSIP] [FIND_INITIAL_MBRS]: gossip client found no members

 

I use SOA-P 4.3.0 (JBoss AS 4.4)

 

  • Support GossipRouter  an automatic discovery of Cluster members or only static (all members muss be present in the config of cluster.xml)?

 

Any suggestions please?

 

--Regards

 

Younes

  • 1. Re: Problem when configuring GossipRouter
    Marek Goldmann Master

    What stack you use? TCP or UDP? Besides this you don't have configured GossipRouter correctly. See documentation.

     

    --Marek

  • 2. Re: Problem when configuring GossipRouter
    Younes Yahyaoui Novice

    thanks Marek,

     

    i use TCP Stack. Support GossipRouter an automatic discovery of cluster memebrs?

     

    --Regards

     

    Younes

  • 3. Re: Problem when configuring GossipRouter
    Marek Goldmann Master

    Of course, but it needs to be properly configured.

     

    --Marek

  • 4. Re: Problem when configuring GossipRouter
    Younes Yahyaoui Novice

    Thanks Marek for your answer,

     

    i have tried to do what is writing in the documentation, but unfortunately without succes. I have started a GossipRouter under younes.cit.tu-berlin.de like this:

     

    younes@younes:/$ java org.jgroups.stack.GossipRouter -port 5555 -bindaddress younes.cit.tu-berlin.de
    GossipRouter is starting...
    log4j:WARN No appenders could be found for logger (org.jgroups.conf.ClassConfigurator).
    log4j:WARN Please initialize the log4j system properly.
    GossipRouter started at Sat Oct 16 13:09:56 CEST 2010
    Listening on port 5555 bound on address younes.cit.tu-berlin.de/130.149.3.91
    
    
    younes@younes:/$ clear
    younes@younes:/$ java org.jgroups.stack.GossipRouter -port 5555 -bindaddress younes.cit.tu-berlin.de
    GossipRouter is starting...
    log4j:WARN No appenders could be found for logger (org.jgroups.conf.ClassConfigurator).
    log4j:WARN Please initialize the log4j system properly.
    GossipRouter started at Sat Oct 16 13:09:56 CEST 2010
    Listening on port 5555 bound on address younes.cit.tu-berlin.de/130.149.3.91

     

    Then i have started a JBoss AS under another Node in the same network like using:

     

     

    younes@younes2:~/ESBCluster/jboss-soa-p.4.3.0/jboss-as/bin$ ./run.sh -b younes2.cit.tu-berlin.de -c all -Djboss.messaging.ServerPeerID=4 -Djboss.default.jgroups.stcak=tcp -g ClusterESB
    

     

    I have recieved an error by node 2 saying:
    13:16:20,220 ERROR [GossipClient] exception connecting to host 130.149.3.91:5555
    

    I give additionnaly log.txt and cluster.xml (configuration for node2).
    Please help me. (can you please give me an example of how to configure GossipRouter in cluster.xml)
    I use Soa-p-4.3.0
    Thanks in advance
    Younes
  • 5. Re: Problem when configuring GossipRouter
    Bela Ban Master
    -Djboss.default.jgroups.stcak=tcp is misspelled, it needs to be
    -Djboss.default.jgroups.stack=tcp

    Did you change the "tcp" entry in  jgroups-channelfactory-stacks.xml to use TCP:TCPGOSSIP ?

  • 6. Re: Problem when configuring GossipRouter
    Younes Yahyaoui Novice

    Thanks Bela,

     

    i change the tcp entry in cluster.xml  ( i use JBoss AS 4.4: there is no jgroups-channelfactory-stacks.xml) to use:

     

     

     

     
    <PING gossip_host="younesmysql.dyndns.org" gossip_port="5555" gossip_refresh="15000"
                              timeout="2000" num_initial_members="3"/>     
    
    <PING gossip_host="younesmysql.dyndns.org" gossip_port="5555" gossip_refresh="15000"

     

                             timeout="2000" num_initial_members="3"/><PING gossip_host="younesmysql.dyndns.org" gossip_port="5555" gossip_refresh="15000"                           timeout="2000" num_initial_members="3"/>

     

     

    The GossipRouter has reacted but unfortunately through an Exception saying:

     

     

    18.10.2010 12:49:02 org.jgroups.stack.GossipRouter mainLoop
    SCHWERWIEGEND: failure handling a client request
    java.io.EOFException
            at java.io.DataInputStream.readFully(Unknown Source)
            at org.jgroups.stack.IpAddress.readFrom(IpAddress.java:274)
            at org.jgroups.util.Util.readAddress(Util.java:493)
            at org.jgroups.stack.GossipData.readFrom(GossipData.java:70)
            at org.jgroups.stack.GossipRouter.mainLoop(GossipRouter.java:354)
            at org.jgroups.stack.GossipRouter.access$000(GossipRouter.java:42)
            at org.jgroups.stack.GossipRouter$1.run(GossipRouter.java:243)
            at java.lang.Thread.run(Unknown Source)
    

     

    I use JGroups-2.5.0.bin

     

    any idea please?

     

    • muss the GossipRouter work under port 5555 or can i use other port (e.g 8080)?

     

    Thanks

     

    younes

  • 7. Re: Problem when configuring GossipRouter
    Bela Ban Master

    You need to use the same version of JGroups for the GossipRouter and the cluster nodes.

     

    GossipRouter can run under any open port

  • 8. Re: Problem when configuring GossipRouter
    Younes Yahyaoui Novice

    Bela Ban schrieb:

     

    -Djboss.default.jgroups.stcak=tcp is misspelled, it needs to be
    -Djboss.default.jgroups.stack=tcp


     

    what is the difference between the two expressions??

     

    --Regards

     

    Younes

  • 9. Re: Problem when configuring GossipRouter
    Marek Goldmann Master

    jboss.default.jgroups.stcak vs jboss.default.jgroups.stack

     

    --Marek