Hi David
This issue has been fixed in the cvs tip. Could you build shoal sources
and use the resulting libs from there ? You will find shoal-gms.jar
under shoal/gms/dist dir, and under shoal/gms/lib you will find jxta.jar
More below:
Thanks
Shreedhar
David Taylor wrote:
> Hi!
>
> When I run SimpleGMSSample under NetBeans I see an NPE. (see below)
>
> I am doing what I think is the obvious thing.
>
> 1. Set SimpleGMSSample as the main class
>
That is correct.
> 2. Give no arguments since they do not seem to be used directly.
>
Yes the sample creates a unique member name per process, and a static
group name
> 3. Are there environment variables to be set?
>
Nope.
> 4. I notice that some of the tests seem to run the main() in
> com.sun.enterprise.jxtamgmt.ClusterManager. If this is the case, how does
> the ClusterManager find the "real" main.
>
We have some tests that directly test the Jxta based service provider to
isolate issues in the GMS API impl code versus the provider impl code.
That should not come into play with your exercise.
> Is any of this documented anywhere?
>
Have not found the need to document this. Should we? Let us know.
> Thanks,
>
> David
> --
> David W. Taylor
> Developer | SL Corporation | http://www.sl.com
> david.taylor_at_sl.com | Tel: +1.415.927.8555 | Fax: +1.415.927.8401
> ________________________________
>
> Email communication may contain privileged or confidential information
> proprietary to SL Corporation. If you have received this communication in
> error, we ask that you advise the sender by reply e-mail and immediately
> delete the message and any attachments without copying or disclosing the
> contents.
>
> init:
> deps-jar:
> compile:
> run:
> Jun 27, 2008 2:59:38 PM SimpleGMSSample runSimpleSample
> INFO: Starting SimpleGMSSample....
> Jun 27, 2008 2:59:38 PM SimpleGMSSample initializeGMS
> INFO: Initializing Shoal for member: server1214603978093 group:Group1
> Jun 27, 2008 2:59:38 PM SimpleGMSSample registerForGroupEvents
> INFO: Registering for group event notifications
> Jun 27, 2008 2:59:38 PM SimpleGMSSample joinGMSGroup
> INFO: Joining Group Group1
> Exception in thread "main" java.lang.NullPointerException
> at
> com.sun.enterprise.jxtamgmt.ClusterManager.<init>(ClusterManager.java:162)
> at
> com.sun.enterprise.ee.cms.impl.jxta.GroupCommunicationProviderImpl.initializ
> eGroupCommunicationProvider(GroupCommunicationProviderImpl.java:138)
> at
> com.sun.enterprise.ee.cms.impl.jxta.GMSContext.join(GMSContext.java:122)
> at
> com.sun.enterprise.ee.cms.impl.common.GroupManagementServiceImpl.join(GroupM
> anagementServiceImpl.java:331)
> at SimpleGMSSample.joinGMSGroup(SimpleGMSSample.java:76)
> at SimpleGMSSample.runSimpleSample(SimpleGMSSample.java:46)
> at SimpleGMSSample.main(SimpleGMSSample.java:25)
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_shoal.dev.java.net
> For additional commands, e-mail: users-help_at_shoal.dev.java.net
>
>