users@shoal.java.net

Re: [Shoal-Users] Problems with running Shoal example

From: Shreedhar Ganapathy <Shreedhar.Ganapathy_at_Sun.COM>
Date: Mon, 12 May 2008 09:17:15 -0700

Hi Farid
Thanks for posting here.
If a firewall (windows firewall or any other) is running, it may be
blocking multicast traffic which is preventing discovery of members.
(The view change log shows only one member (self) in each process and
not both).
If this is the case, can you try turning off the firewall and report back?

If there is no firewall running and you still see this problem, check if
multicast is enabled on your machine. You can download the resource kit
available here
<http://www.microsoft.com/downloads/details.aspx?familyid=9d467a69-57ff-4ae7-96ee-b18c4790cffd&displaylang=en>
and use the mcast.exe utility to see if multicast is indeed working on
your machine. Although the resource kit is for windows 2003, it should
also work for xp.

Lastly, check this FAQ entry in GlassFish Wiki :
http://wiki.glassfish.java.net/Wiki.jsp?page=FaqTroubleshootReplication

hth
Shreedhar

Farid Gawi wrote:
> Hi,
> According to 'Shreedhar' request to my post at his blog, here are the
> results:
>
> My IP config:
> -------------
> Windows IP Configuration
>
> Host Name . . . . . . . . . . . . : Ivory-Farid
> Primary Dns Suffix . . . . . . . :
> Node Type . . . . . . . . . . . . : Unknown
> IP Routing Enabled. . . . . . . . : No
> WINS Proxy Enabled. . . . . . . . : No
>
> Ethernet adapter Local Area Connection:
>
> Connection-specific DNS Suffix . :
> Description . . . . . . . . . . . : Intel(R) 82562V-2 10/100 Network
> Con
> nection
> Physical Address. . . . . . . . . : 00-1A-A0-8E-33-16
> Dhcp Enabled. . . . . . . . . . . : No
> IP Address. . . . . . . . . . . . : 190.144.45.19
> Subnet Mask . . . . . . . . . . . : 255.255.255.0
> Default Gateway . . . . . . . . . : 190.144.45.254
> DNS Servers . . . . . . . . . . . : 212.117.128.6
> 212.117.129.3
>
> Ethernet adapter scorpion:
>
> Connection-specific DNS Suffix . :
> Description . . . . . . . . . . . : 3Com EtherLink XL 10/100 PCI TX
> NIC
> (3C905B-TX)
> Physical Address. . . . . . . . . : 00-50-DA-C7-E4-3E
> Dhcp Enabled. . . . . . . . . . . : No
> IP Address. . . . . . . . . . . . : 21.5.0.12
> Subnet Mask . . . . . . . . . . . : 255.255.255.0
> Default Gateway . . . . . . . . . :
>
>
>
> The output of the 2 run instances (on the same machine):
> --------------------------------------------------------
> 1)
> 12/05/2008 10:49:57 test.Test runSimpleSample
> INFO: Starting SimpleGMSSample....
> 12/05/2008 10:49:57 test.Test initializeGMS
> INFO: Initializing Shoal for member: server1210578597078 group:Group1
> 12/05/2008 10:49:57 test.Test registerForGroupEvents
> INFO: Registering for group event notifications
> 12/05/2008 10:49:57 test.Test joinGMSGroup
> INFO: Joining Group Group1
> 12/05/2008 10:49:58 com.sun.enterprise.ee.cms.impl.jxta.ViewWindow
> getMemberTokens
> INFO: GMS View Change Received for group Group1 : Members in view for
> (before change analysis) are :
> 1: MemberId: server1210578597078, MemberType: CORE, Address:
> urn:jxta:uuid-139AFFFD47F1447FA71888B741B77CB3A1C00FD58917452CA532BF555F0150
> 2703
>
> 12/05/2008 10:49:58 test.Test sendMessages
> INFO: wait 5 secs to send 10 messages
> 12/05/2008 10:49:58 com.sun.enterprise.ee.cms.impl.jxta.ViewWindow
> newViewObserved
> INFO: Analyzing new membership snapshot received as part of event :
> MASTER_CHANGE_EVENT
> 12/05/2008 10:50:03 test.Test sendMessages
> INFO: Sending messages...
> 12/05/2008 10:50:03 test.Test waitForShutdown
> INFO: wait 20 secs to shutdown
> 12/05/2008 10:50:23 test.Test leaveGroupAndShutdown
> INFO: Shutting down instance server1210578597078
> 12/05/2008 10:50:23 com.sun.enterprise.ee.cms.impl.jxta.GMSContext leave
> INFO: Leaving GMS group Group1 with shutdown type set to InstanceShutdown
>
> 2)
> 12/05/2008 10:49:59 test.Test runSimpleSample
> INFO: Starting SimpleGMSSample....
> 12/05/2008 10:50:00 test.Test initializeGMS
> INFO: Initializing Shoal for member: server1210578600000 group:Group1
> 12/05/2008 10:50:00 test.Test registerForGroupEvents
> INFO: Registering for group event notifications
> 12/05/2008 10:50:00 test.Test joinGMSGroup
> INFO: Joining Group Group1
> 12/05/2008 10:50:01 com.sun.enterprise.ee.cms.impl.jxta.ViewWindow
> getMemberTokens
> INFO: GMS View Change Received for group Group1 : Members in view for
> (before change analysis) are :
> 1: MemberId: server1210578600000, MemberType: CORE, Address:
> urn:jxta:uuid-139AFFFD47F1447FA71888B741B77CB395386C4D928B44489B1697F65DEFBD
> 7D03
>
> 12/05/2008 10:50:01 com.sun.enterprise.ee.cms.impl.jxta.ViewWindow
> newViewObserved
> INFO: Analyzing new membership snapshot received as part of event :
> MASTER_CHANGE_EVENT
> 12/05/2008 10:50:01 test.Test sendMessages
> INFO: wait 5 secs to send 10 messages
> 12/05/2008 10:50:06 test.Test sendMessages
> INFO: Sending messages...
> 12/05/2008 10:50:06 test.Test waitForShutdown
> INFO: wait 20 secs to shutdown
> 12/05/2008 10:50:26 test.Test leaveGroupAndShutdown
> INFO: Shutting down instance server1210578600000
> 12/05/2008 10:50:26 com.sun.enterprise.ee.cms.impl.jxta.GMSContext leave
> INFO: Leaving GMS group Group1 with shutdown type set to InstanceShutdown
>
>
> My previous post:
> -----------------
>
> Hi,
> I'm trying to use Shoal..But I'm missing something in the concept maybe...
> I've used the example attached to this mail (which suggested as part of
> Shreedhar' s Weblog) but it didn't work for me..
> I'm running the example under jdk 1.6, by invoking 2 instances of the main
> class..and there is no messages transfer between the 2 instances!
> is it ok or something is totally wrong with what i'm doing ?
> can you please guide me to make this example run as expected?
> How Shaol is related to "Sun GlassFish Enterprise Server", if any?
>
>
> Tnanks in advance.
>
> Farid Ghawi
> ---------------------------
> Ivory Software Systems LTD.
> Tel: 03-5381-865
>
> ------------------------------------------------------------------------
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_shoal.dev.java.net
> For additional commands, e-mail: users-help_at_shoal.dev.java.net
>