This is a good catch. Could you file an issue in the Shoal issue tracker ?
Thanks a lot.
Shreedhar
Daniel H. Cavalcanti wrote:
> Yes, i did notice the exception when I run the app from the same
> machine. However, when I run the app from different machines (one in
> each machine), I don't see any exceptions*.
>
>
> * Except for another scenario. I click on join to join the group.
> Then, click on shutdown to leave the group, and then click on join
> again. When I do that, I get an exception:
>
> Jan 19, 2010 3:43:58 PM
> com.sun.enterprise.ee.cms.impl.common.GroupManagementServiceImpl
> reportJoinedAndReadyState
> INFO: GMS:Reporting Joined and Ready state to group LMI
> Jan 19, 2010 3:43:58 PM com.sun.enterprise.ee.cms.impl.jxta.ViewWindow
> getMemberTokens
> INFO: GMS View Change Received for group LMI : Members in view for
> MASTER_CHANGE_EVENT(before change analysis) are :
> 1: MemberId: papagaio.isxinc.com, MemberType: CORE, Address:
> urn:jxta:uuid-59616261646162614A787461503250334E888D237E60470A8F22D217A5C5CBE803
>
>
> Jan 19, 2010 3:43:58 PM com.sun.enterprise.ee.cms.impl.jxta.ViewWindow
> newViewObserved
> INFO: Analyzing new membership snapshot received as part of event :
> MASTER_CHANGE_EVENT for Member: papagaio.isxinc.com of Group: LMI
> Jan 19, 2010 3:43:58 PM com.sun.enterprise.ee.cms.impl.jxta.ViewWindow
> addGroupLeadershipNotificationSignal
> INFO: adding GroupLeadershipNotification signal leaderMember:
> papagaio.isxinc.com of group: LMI
> [LMI,papagaio.isxinc.com,class
> com.sun.enterprise.ee.cms.impl.common.GroupLeadershipNotificationSignalImpl]
>
> [papagaio.isxinc.com]
> Jan 19, 2010 3:44:03 PM com.sun.enterprise.jxtamgmt.ClusterViewManager
> addToView
> WARNING: no changes from previous view, skipping notification of
> listeners for cluster view event MASTER_CHANGE_EVENT from member:
> papagaio.isxinc.com group: LMI
> Jan 19, 2010 3:44:03 PM com.sun.enterprise.jxtamgmt.MasterNode
> appointMasterNode
> INFO: Assuming Master Node designation member:papagaio.isxinc.com for
> group:LMI
> Jan 19, 2010 3:44:03 PM com.sun.enterprise.jxtamgmt.HealthMonitor
> reportJoinedAndReadyState
> INFO: Calling reportMyState() with READY...
> Jan 19, 2010 3:44:03 PM com.sun.enterprise.ee.cms.impl.jxta.ViewWindow
> getMemberTokens
> INFO: GMS View Change Received for group LMI : Members in view for
> JOINED_AND_READY_EVENT(before change analysis) are :
> 1: MemberId: papagaio.isxinc.com, MemberType: CORE, Address:
> urn:jxta:uuid-59616261646162614A787461503250334E888D237E60470A8F22D217A5C5CBE803
>
>
> Jan 19, 2010 3:44:03 PM com.sun.enterprise.ee.cms.impl.jxta.ViewWindow
> newViewObserved
> INFO: Analyzing new membership snapshot received as part of event :
> JOINED_AND_READY_EVENT for Member: papagaio.isxinc.com of Group: LMI
> Jan 19, 2010 3:44:03 PM com.sun.enterprise.ee.cms.impl.jxta.ViewWindow
> addReadyMembers
> INFO: Adding Joined And Ready member : papagaio.isxinc.com Group: :LMI
> StartupState:INSTANCE_STARTUP
> [LMI,papagaio.isxinc.com,class
> com.sun.enterprise.ee.cms.impl.common.JoinedAndReadyNotificationSignalImpl]
>
> Jan 19, 2010 3:44:06 PM com.sun.enterprise.ee.cms.impl.jxta.GMSContext
> leave
> INFO: Leaving GMS group LMI with shutdown type set to InstanceShutdown
> Exception in thread "MessageWindowThread:LMI"
> java.lang.NullPointerException
> at
> com.sun.enterprise.ee.cms.impl.jxta.MessageWindow.run(MessageWindow.java:86)
>
> at java.lang.Thread.run(Thread.java:619)
> Jan 19, 2010 3:44:08 PM
> com.sun.enterprise.ee.cms.impl.common.GroupManagementServiceImpl
> reportJoinedAndReadyState
> INFO: GMS:Reporting Joined and Ready state to group LMI
> java.lang.NullPointerException
> at
> com.sun.enterprise.ee.cms.impl.common.GroupManagementServiceImpl.reportJoinedAndReadyState(GroupManagementServiceImpl.java:433)
>
> at
> com.localmatters.shoal.ShoalSample$4.doInBackground(ShoalSample.java:135)
> at javax.swing.SwingWorker$1.call(SwingWorker.java:274)
> at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
> at java.util.concurrent.FutureTask.run(FutureTask.java:138)
> at javax.swing.SwingWorker.run(SwingWorker.java:313)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
>
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
>
> at java.lang.Thread.run(Thread.java:619)
> Jan 19, 2010 3:44:08 PM com.sun.enterprise.ee.cms.impl.jxta.ViewWindow
> getMemberTokens
> INFO: GMS View Change Received for group LMI : Members in view for
> MASTER_CHANGE_EVENT(before change analysis) are :
> 1: MemberId: papagaio.isxinc.com, MemberType: CORE, Address:
> urn:jxta:uuid-59616261646162614A787461503250334E888D237E60470A8F22D217A5C5CBE803
>
>
> Jan 19, 2010 3:44:08 PM com.sun.enterprise.ee.cms.impl.jxta.ViewWindow
> newViewObserved
> INFO: Analyzing new membership snapshot received as part of event :
> MASTER_CHANGE_EVENT for Member: papagaio.isxinc.com of Group: LMI
> Jan 19, 2010 3:44:08 PM com.sun.enterprise.ee.cms.impl.jxta.ViewWindow
> addGroupLeadershipNotificationSignal
> INFO: adding GroupLeadershipNotification signal leaderMember:
> papagaio.isxinc.com of group: LMI
> Jan 19, 2010 3:44:13 PM com.sun.enterprise.jxtamgmt.ClusterViewManager
> addToView
> WARNING: no changes from previous view, skipping notification of
> listeners for cluster view event MASTER_CHANGE_EVENT from member:
> papagaio.isxinc.com group: LMI
> Jan 19, 2010 3:44:13 PM com.sun.enterprise.jxtamgmt.MasterNode
> appointMasterNode
> INFO: Assuming Master Node designation member:papagaio.isxinc.com for
> group:LMI
>
>
> Shreedhar Ganapathy wrote:
>> Daniel
>> Do you see any Exceptions in your log when the message is sent ?
>> I see an NPE when running two processes in a single machine (after
>> appending System.currenTimeMillis() to help make the two process's
>> server names unique.
>> We will look into the NPE - just wanted to be sure you see the same
>> issue as well or any others.
>>
>> Thanks
>> Shreedhar
>>
>> Daniel H. Cavalcanti wrote:
>>> Hi Shreedhar,
>>>
>>> I can share the sample code I wrote. It's a very simple app that
>>> starts a gui, Then I have buttons that triggers events to join a
>>> group, send messages, and the shutdown/leave the group.
>>>
>>> I attached it here but don't know if it gets posted in the list.
>>>
>>> I actually start the app on two different machines, and from the log
>>> I see that the group sees the two nodes in the group.
>>>
>>> Ganapathy wrote:
>>>> Hi Daniel
>>>> Sorry for the delayed response.
>>>> From the posted thread, it appears you are starting only one
>>>> member in your group.
>>>> Could you verify if that member has added the MessageActionFactory
>>>> before messages are sent?
>>>> Also, to receive messages sent by self, you need to add a property
>>>> to the Properties object when you call GMSFactory.startGMSModule(...)
>>>>
>>>> The property is called "LOOPBACK" with value set to true.
>>>> By default, messages sent by a member are not received by that same
>>>> member unless the above property set to true.
>>>>
>>>> Could you also try running two instances of your app and verify
>>>> your messaging sample?
>>>>
>>>> hth
>>>> Shreedhar
>>>>
>>>>
>>>> Daniel H. Cavalcanti wrote:
>>>>> Hi, I posted an inquiry in the shoal mailing list and just don't
>>>>> get any responses. Maybe someone here could help out.
>>>>>
>>>>> Here is the link on the entry I posted:
>>>>> https://shoal.dev.java.net/servlets/ReadMsg?list=users&msgNo=490
>>>>>
>>>>> Basically, I can't get shoal to deliver messages to the peer group.
>>>>> Can someone help?
>>>>>
>>>>> thanks,
>>>>> Daniel.
>>>>>
>>>>> ---------------------------------------------------------------------
>>>>> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
>>>>> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
>>>> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>>>>
>>> ------------------------------------------------------------------------
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
>>> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>