users@shoal.java.net

SimpleGMSSample instructions...

From: David Taylor <dtaylor_at_sl.com>
Date: Fri, 27 Jun 2008 15:03:14 -0700

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
2. Give no arguments since they do not seem to be used directly.
3. Are there environment variables to be set?
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.

Is any of this documented anywhere?

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)