Re: getMembershipService() returns null

"Mark S. Petrovic" <[email protected]> Wed, 27 Dec 2006 06:26:53 -0800
Newsgroups gmane.comp.java.jxta.user
Message-ID <20061227142653.GC9244@false>
--AqsLC8rIMeq19msA
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

Other readers, especially JXME, I need help on this one... below.

I am reattaching the original log file Daniel sent for reference.

On Wed, Dec 27, 2006 at 10:02:07AM +0100, Daniel Evers wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Hello Mark,
> 
> Sorry for the late response, I went home for christmas :)

Always the right thing to do :)

> > one does not see a complete list of services for the newgroup.
> 
> Yes, you're right. I missed that ...

The message that indicates trouble in the log file (attached) "Module
disabled by configuration : ..." is generated, I believe, when a core
services is configured in PlatformConfig with <isOFF/> (such as is often
done with multicast).

See impl/src/net/jxta/impl/peergroup/StdPeerGroup.java, as the various
disabled modules are sensed and put on the disabled list.  In the JSE
version this happens in initFirst().  ConfigParams therein is essentially
your PlatformConfig file.

Can I trouble you to send your PlatformConfig for the JXME node?  I doubt it shows
a problem, but for completeness, it would be helpful.  

Mark

> > Is it possible for you to post the newgroup module implementation
> > advertisement?
> 
> Yes, I attached it. It contains an advertisement for the None-Membership
> service, so that's strange. The advertisement that I receive is
> identical to the one i publish, I compared them.
> What bothers me most is the fact that I can join the group using the
> JXTA shell. So this might be a problem with the jxme implementation
> since the shell uses the J2SE implementation (IIRC).
> 
> thx!
> Daniel
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.5 (MingW32)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
> 
> iD8DBQFFkjaOBHvLeozhC4kRAieJAKCAm5zlHPtH/4XAoJr2OksWfp2iggCaA8tA
> niQkWbMxwF6cRNla6f1KGMA=
> =5iVj
> -----END PGP SIGNATURE-----

> <?xml version="1.0" encoding="UTF-8"?>
> <!DOCTYPE jxta:MIA>
> <jxta:MIA xmlns:jxta="http://jxta.org">
> 	<MSID>
> 		urn:jxta:uuid-DEADBEEFDEAFBABAFEEDBABE000000010306
> 	</MSID>
> 	<Comp>
> 		<Efmt>
> 			JDK1.4.1
> 		</Efmt>
> 		<Bind>
> 			V2.0 Ref Impl
> 		</Bind>
> 	</Comp>
> 	<Code>
> 		net.jxta.impl.peergroup.StdPeerGroup
> 	</Code>
> 	<PURI>
> 		http://www.jxta.org/download/jxta.jar
> 	</PURI>
> 	<Prov>
> 		sun.com
> 	</Prov>
> 	<Desc>
> 		General Purpose Peer Group Implementation
> 	</Desc>
> 	<Parm>
> 		<Svc>
> 			<jxta:MIA xmlns:jxta="http://jxta.org">
> 				<MSID>
> 					urn:jxta:uuid-DEADBEEFDEAFBABAFEEDBABE000000050106
> 				</MSID>
> 				<Desc>
> 					Reference Implementation of the None Membership service
> 				</Desc>
> 				<Comp>
> 					<Efmt>
> 						JDK1.4.1
> 					</Efmt>
> 					<Bind>
> 						V2.0 Ref Impl
> 					</Bind>
> 				</Comp>
> 				<Code>
> 					net.jxta.impl.membership.none.NoneMembershipService
> 				</Code>
> 				<PURI>
> 					http://www.jxta.org/download/jxta.jar
> 				</PURI>
> 				<Prov>
> 					sun.com
> 				</Prov>
> 			</jxta:MIA>
> 		</Svc>
> 		<Svc>
> 			<jxta:MIA xmlns:jxta="http://jxta.org">
> 				<MSID>
> 					urn:jxta:uuid-DEADBEEFDEAFBABAFEEDBABE000000020106
> 				</MSID>
> 				<Desc>
> 					Reference Implementation of the Resolver service
> 				</Desc>
> 				<Comp>
> 					<Efmt>
> 						JDK1.4.1
> 					</Efmt>
> 					<Bind>
> 						V2.0 Ref Impl
> 					</Bind>
> 				</Comp>
> 				<Code>
> 					net.jxta.impl.resolver.ResolverServiceImpl
> 				</Code>
> 				<PURI>
> 					http://www.jxta.org/download/jxta.jar
> 				</PURI>
> 				<Prov>
> 					sun.com
> 				</Prov>
> 			</jxta:MIA>
> 		</Svc>
> 		<Svc>
> 			<jxta:MIA xmlns:jxta="http://jxta.org">
> 				<MSID>
> 					urn:jxta:uuid-DEADBEEFDEAFBABAFEEDBABE000000040106
> 				</MSID>
> 				<Desc>
> 					Reference Implementation of the Pipe service
> 				</Desc>
> 				<Comp>
> 					<Efmt>
> 						JDK1.4.1
> 					</Efmt>
> 					<Bind>
> 						V2.0 Ref Impl
> 					</Bind>
> 				</Comp>
> 				<Code>
> 					net.jxta.impl.pipe.PipeServiceImpl
> 				</Code>
> 				<PURI>
> 					http://www.jxta.org/download/jxta.jar
> 				</PURI>
> 				<Prov>
> 					sun.com
> 				</Prov>
> 			</jxta:MIA>
> 		</Svc>
> 		<Svc>
> 			<jxta:MIA xmlns:jxta="http://jxta.org">
> 				<MSID>
> 					urn:jxta:uuid-DEADBEEFDEAFBABAFEEDBABE000000030106
> 				</MSID>
> 				<Desc>
> 					Reference Implementation of the Discovery service
> 				</Desc>
> 				<Comp>
> 					<Efmt>
> 						JDK1.4.1
> 					</Efmt>
> 					<Bind>
> 						V2.0 Ref Impl
> 					</Bind>
> 				</Comp>
> 				<Code>
> 					net.jxta.impl.discovery.DiscoveryServiceImpl
> 				</Code>
> 				<PURI>
> 					http://www.jxta.org/download/jxta.jar
> 				</PURI>
> 				<Prov>
> 					sun.com
> 				</Prov>
> 			</jxta:MIA>
> 		</Svc>
> 		<Svc>
> 			<jxta:MIA xmlns:jxta="http://jxta.org">
> 				<MSID>
> 					urn:jxta:uuid-DEADBEEFDEAFBABAFEEDBABE000000060106
> 				</MSID>
> 				<Desc>
> 					Reference Implementation of the Rendezvous service
> 				</Desc>
> 				<Comp>
> 					<Efmt>
> 						JDK1.4.1
> 					</Efmt>
> 					<Bind>
> 						V2.0 Ref Impl
> 					</Bind>
> 				</Comp>
> 				<Code>
> 					net.jxta.impl.rendezvous.RendezVousServiceImpl
> 				</Code>
> 				<PURI>
> 					http://www.jxta.org/download/jxta.jar
> 				</PURI>
> 				<Prov>
> 					sun.com
> 				</Prov>
> 			</jxta:MIA>
> 		</Svc>
> 		<Svc>
> 			<jxta:MIA xmlns:jxta="http://jxta.org">
> 				<MSID>
> 					urn:jxta:uuid-DEADBEEFDEAFBABAFEEDBABE000000080106
> 				</MSID>
> 				<Desc>
> 					Reference Implementation of the Endpoint service
> 				</Desc>
> 				<Comp>
> 					<Efmt>
> 						JDK1.4.1
> 					</Efmt>
> 					<Bind>
> 						V2.0 Ref Impl
> 					</Bind>
> 				</Comp>
> 				<Code>
> 					net.jxta.impl.endpoint.EndpointServiceImpl
> 				</Code>
> 				<PURI>
> 					http://www.jxta.org/download/jxta.jar
> 				</PURI>
> 				<Prov>
> 					sun.com
> 				</Prov>
> 			</jxta:MIA>
> 		</Svc>
> 		<Svc>
> 			<jxta:MIA xmlns:jxta="http://jxta.org">
> 				<MSID>
> 					urn:jxta:uuid-DEADBEEFDEAFBABAFEEDBABE000000100106
> 				</MSID>
> 				<Desc>
> 					Reference Implementation of the Always Access service
> 				</Desc>
> 				<Comp>
> 					<Efmt>
> 						JDK1.4.1
> 					</Efmt>
> 					<Bind>
> 						V2.0 Ref Impl
> 					</Bind>
> 				</Comp>
> 				<Code>
> 					net.jxta.impl.access.always.AlwaysAccessService
> 				</Code>
> 				<PURI>
> 					http://www.jxta.org/download/jxta.jar
> 				</PURI>
> 				<Prov>
> 					sun.com
> 				</Prov>
> 			</jxta:MIA>
> 		</Svc>
> 		<Svc>
> 			<jxta:MIA xmlns:jxta="http://jxta.org">
> 				<MSID>
> 					urn:jxta:uuid-DEADBEEFDEAFBABAFEEDBABE000000070106
> 				</MSID>
> 				<Desc>
> 					Reference Implementation of the Peerinfo service
> 				</Desc>
> 				<Comp>
> 					<Efmt>
> 						JDK1.4.1
> 					</Efmt>
> 					<Bind>
> 						V2.0 Ref Impl
> 					</Bind>
> 				</Comp>
> 				<Code>
> 					net.jxta.impl.peer.PeerInfoServiceImpl
> 				</Code>
> 				<PURI>
> 					http://www.jxta.org/download/jxta.jar
> 				</PURI>
> 				<Prov>
> 					sun.com
> 				</Prov>
> 			</jxta:MIA>
> 		</Svc>
> 		<App>
> 			<jxta:MIA xmlns:jxta="http://jxta.org">
> 				<MSID>
> 					urn:jxta:uuid-DEADBEEFDEAFBABAFEEDBABE0000000C0206
> 				</MSID>
> 				<Desc>
> 					JXTA Shell Reference Implementation
> 				</Desc>
> 				<Comp>
> 					<Efmt>
> 						JDK1.4.1
> 					</Efmt>
> 					<Bind>
> 						V2.0 Ref Impl
> 					</Bind>
> 				</Comp>
> 				<Code>
> 					net.jxta.impl.shell.bin.Shell.Shell
> 				</Code>
> 				<PURI>
> 					http://www.jxta.org/download/jxta.jar
> 				</PURI>
> 				<Prov>
> 					sun.com
> 				</Prov>
> 			</jxta:MIA>
> 		</App>
> 	</Parm>
> </jxta:MIA>
> 

> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]

-- 
Mark S. Petrovic
Pasadena, CA 
http://www.petrovic.org

--AqsLC8rIMeq19msA
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="membership_null_1-short.log"

INFO  [QuotaListenerThread] (ehome.mobile.network.JXTADiscoveryListener.handleGroupResponse:102) - found an eHome group!
INFO  [QuotaListenerThread] (net.jxta.impl.peergroup.GenericPeerGroup.getInterface:570) - [urn:jxta:jxta-NetGroup] GROUP REF COUNT INCREMENTED TO: 2 by
	net.jxta.impl.peergroup.GenericPeerGroup.loadModule(GenericPeerGroup.java:1143)
INFO  [QuotaListenerThread] (net.jxta.impl.endpoint.EndpointServiceImpl.init:1184) - Configuring Endpoint Service : urn:jxta:uuid-DEADBEEFDEAFBABAFEEDBABE0000000805
	Implementation :
		Impl Description : Reference Implementation of the Endpoint service
		Impl URI : http://www.jxta.org/download/jxta.jar
		Impl Code : net.jxta.impl.endpoint.EndpointServiceImpl
	Group Params :
		Group : eHome group
		Group ID : urn:jxta:uuid-DD49DF822C88404DB73B922E79190D2402
		Peer ID : urn:jxta:uuid-59616261646162614E5047205032503350B183D13A5D4F14B6ABC215588550F003
	Configuration :
		Home Group : NetPeerGroup / urn:jxta:jxta-NetGroup
		Virtual Messenger Queue Size : 20
INFO  [QuotaListenerThread] (net.jxta.impl.peergroup.GenericPeerGroup.loadModule:1145) - Loaded privileged module : Reference Implementation of the Endpoint service (net.jxta.impl.endpoint.EndpointServiceImpl)
INFO  [QuotaListenerThread] (net.jxta.impl.peergroup.StdPeerGroup.loadAllModules:276) - Module disabled by configuration : Reference Implementation of the Always Access service
INFO  [QuotaListenerThread] (net.jxta.impl.rendezvous.RendezVousServiceImpl.init:940) - Configuring RendezVous Service : urn:jxta:uuid-DEADBEEFDEAFBABAFEEDBABE0000000605
	Implementation :
		Module Spec ID: urn:jxta:uuid-DEADBEEFDEAFBABAFEEDBABE000000060106
		Impl Description : Reference Implementation of the Rendezvous service
		Impl URI : http://www.jxta.org/download/jxta.jar
		Impl Code : net.jxta.impl.rendezvous.RendezVousServiceImpl
	Group Params :
		Group : eHome group
		Group ID : urn:jxta:uuid-DD49DF822C88404DB73B922E79190D2402
		Peer ID : urn:jxta:uuid-59616261646162614E5047205032503350B183D13A5D4F14B6ABC215588550F003
	Configuration :
		Advertising group : NetPeerGroup [urn:jxta:jxta-NetGroup]
		RendezVous : EDGE
		Auto RendezVous : false
INFO  [QuotaListenerThread] (net.jxta.impl.peergroup.GenericPeerGroup.loadModule:1145) - Loaded privileged module : Reference Implementation of the Rendezvous service (net.jxta.impl.rendezvous.RendezVousServiceImpl)
INFO  [QuotaListenerThread] (net.jxta.impl.discovery.DiscoveryServiceImpl.init:409) - Configuring Discovery Service : urn:jxta:uuid-DEADBEEFDEAFBABAFEEDBABE0000000305
	Implementation :
		Module Spec ID: urn:jxta:uuid-DEADBEEFDEAFBABAFEEDBABE000000030106
		Impl Description : Reference Implementation of the Discovery service
		Impl URI : http://www.jxta.org/download/jxta.jar
		Impl Code : net.jxta.impl.discovery.DiscoveryServiceImpl
	Group Params :
		Group : eHome group
		Group ID : urn:jxta:uuid-DD49DF822C88404DB73B922E79190D2402
		Peer ID : urn:jxta:uuid-59616261646162614E5047205032503350B183D13A5D4F14B6ABC215588550F003
	Configuration :
		Always Use ReplicaPeer : false
INFO  [QuotaListenerThread] (net.jxta.impl.peergroup.GenericPeerGroup.loadModule:1145) - Loaded privileged module : Reference Implementation of the Discovery service (net.jxta.impl.discovery.DiscoveryServiceImpl)
INFO  [QuotaListenerThread] (net.jxta.impl.peergroup.StdPeerGroup.loadAllModules:276) - Module disabled by configuration : Reference Implementation of the None Membership service
INFO  [QuotaListenerThread] (net.jxta.impl.peergroup.StdPeerGroup.loadAllModules:276) - Module disabled by configuration : Reference Implementation of the Peerinfo service
INFO  [QuotaListenerThread] (net.jxta.impl.pipe.PipeServiceImpl.init:419) - Configuring Pipe Service : urn:jxta:uuid-DEADBEEFDEAFBABAFEEDBABE0000000405
	Implementation :
		Module Spec ID: urn:jxta:uuid-DEADBEEFDEAFBABAFEEDBABE000000040106
		Impl Description : Reference Implementation of the Pipe service
		Impl URI : http://www.jxta.org/download/jxta.jar
		Impl Code : net.jxta.impl.pipe.PipeServiceImpl
	Group Params :
		Group : eHome group
		Group ID : urn:jxta:uuid-DD49DF822C88404DB73B922E79190D2402
		Peer ID : urn:jxta:uuid-59616261646162614E5047205032503350B183D13A5D4F14B6ABC215588550F003
	Configuration :
		Verify Interval : 1200000ms
INFO  [QuotaListenerThread] (net.jxta.impl.peergroup.GenericPeerGroup.loadModule:1145) - Loaded privileged module : Reference Implementation of the Pipe service (net.jxta.impl.pipe.PipeServiceImpl)
INFO  [QuotaListenerThread] (net.jxta.impl.resolver.ResolverServiceImpl.init:226) - Configuring Resolver Service : urn:jxta:uuid-DEADBEEFDEAFBABAFEEDBABE0000000205
	Implementation:
		Impl Description: Reference Implementation of the Resolver service
		Impl URI : http://www.jxta.org/download/jxta.jar
		Impl Code : net.jxta.impl.resolver.ResolverServiceImpl
	Group Params:
		Group: eHome group
		Group ID: urn:jxta:uuid-DD49DF822C88404DB73B922E79190D2402
		Peer ID: urn:jxta:uuid-59616261646162614E5047205032503350B183D13A5D4F14B6ABC215588550F003
	Configuration:
		In Queue name: uuid-DD49DF822C88404DB73B922E79190D2402ORes
		Out Queue name: uuid-DD49DF822C88404DB73B922E79190D2402IRes
		SRDI Queue name: uuid-DD49DF822C88404DB73B922E79190D2402Srdi
INFO  [QuotaListenerThread] (net.jxta.impl.peergroup.GenericPeerGroup.loadModule:1145) - Loaded privileged module : Reference Implementation of the Resolver service (net.jxta.impl.resolver.ResolverServiceImpl)
INFO  [QuotaListenerThread] (net.jxta.impl.peergroup.StdPeerGroup.initFirst:634) - Module started : net.jxta.impl.resolver.ResolverServiceImpl@583b1797
INFO  [QuotaListenerThread] (net.jxta.impl.peergroup.StdPeerGroup.initFirst:634) - Module started : net.jxta.impl.pipe.PipeServiceImpl@3ad41799
INFO  [QuotaListenerThread] (net.jxta.impl.discovery.DiscoveryServiceImpl.beEdge:1276) - Switched to a Edge peer role.
INFO  [QuotaListenerThread] (net.jxta.impl.discovery.DiscoveryServiceImpl.startApp:479) - Discovery service started
INFO  [QuotaListenerThread] (net.jxta.impl.peergroup.StdPeerGroup.initFirst:634) - Module started : net.jxta.impl.discovery.DiscoveryServiceImpl@1baed799
INFO  [QuotaListenerThread] (net.jxta.impl.rendezvous.PeerView.<init>:497) - PeerView created for group "eHome group" [urn:jxta:uuid-DD49DF822C88404DB73B922E79190D2402] name "urn:jxta:uuid-DEADBEEFDEAFBABAFEEDBABE0000000605uuid-DD49DF822C88404DB73B922E79190D2402"
INFO  [QuotaListenerThread] (net.jxta.impl.pipe.NonBlockingWireOutputPipe.<init>:154) - Constructing for urn:jxta:uuid-59616261646162614E504720503250335065657256694577B575A9642D44443404
INFO  [QuotaListenerThread] (net.jxta.impl.rendezvous.PeerView.openWirePipes:1314) - Propagate Pipes opened.
INFO  [PeerView Timer for urn:jxta:uuid-DD49DF822C88404DB73B922E79190D2402] (net.jxta.impl.rendezvous.PeerView.seed:1880) - New Seeding...
INFO  [QuotaListenerThread] (net.jxta.impl.discovery.DiscoveryServiceImpl.beEdge:1252) - Already an Edge peer -- No Switch is needed.
INFO  [QuotaListenerThread] (net.jxta.impl.rendezvous.RendezVousServiceImpl.startApp:1785) - Rendezvous Serivce started
INFO  [QuotaListenerThread] (net.jxta.impl.peergroup.StdPeerGroup.initFirst:634) - Module started : net.jxta.impl.rendezvous.RendezVousServiceImpl@73dad796
INFO  [QuotaListenerThread] (net.jxta.impl.peergroup.StdPeerGroup.initFirst:634) - Module started : net.jxta.impl.endpoint.EndpointServiceImpl@5e005796
INFO  [QuotaListenerThread] (net.jxta.impl.peergroup.GenericPeerGroup.initLast:1055) - Configuring Group : urn:jxta:uuid-DD49DF822C88404DB73B922E79190D2402
	Implementation :
		Module Spec ID: urn:jxta:uuid-DEADBEEFDEAFBABAFEEDBABE000000010306
		Impl Description : General Purpose Peer Group Implementation
		Impl URI : http://www.jxta.org/download/jxta.jar
		Impl Code : net.jxta.impl.peergroup.StdPeerGroup
	Group Params :
		Module Spec ID : urn:jxta:uuid-DEADBEEFDEAFBABAFEEDBABE000000010306
		Peer Group ID : urn:jxta:uuid-DD49DF822C88404DB73B922E79190D2402
		Group Name : eHome group
		Peer ID in Group : urn:jxta:uuid-59616261646162614E5047205032503350B183D13A5D4F14B6ABC215588550F003
	Configuration :
		Home Group : "NetPeerGroup" / urn:jxta:jxta-NetGroup
		Services :
			urn:jxta:uuid-DEADBEEFDEAFBABAFEEDBABE0000000605	Reference Implementation of the Rendezvous service
			urn:jxta:uuid-DEADBEEFDEAFBABAFEEDBABE0000000305	Reference Implementation of the Discovery service
			urn:jxta:uuid-DEADBEEFDEAFBABAFEEDBABE0000000805	Reference Implementation of the Endpoint service
			urn:jxta:uuid-DEADBEEFDEAFBABAFEEDBABE0000000205	Reference Implementation of the Resolver service
			urn:jxta:uuid-DEADBEEFDEAFBABAFEEDBABE0000000405	Reference Implementation of the Pipe service
INFO  [QuotaListenerThread] (net.jxta.impl.peergroup.StdPeerGroup.initLast:796) - Configuring Group : urn:jxta:uuid-DD49DF822C88404DB73B922E79190D2402
	Configuration :
		Compatibility Statement :
			<?xml version="1.0" encoding="UTF-8"?>
			<!DOCTYPE Comp>
			<Comp>
				<Efmt>
					JDK1.4.1
				</Efmt>
				<Bind>
					V2.0 Ref Impl
				</Bind>
			</Comp>
		Applications :
			urn:jxta:uuid-DEADBEEFDEAFBABAFEEDBABE0000000C05	net.jxta.impl.shell.bin.Shell.Shell
INFO  [QuotaListenerThread] (net.jxta.impl.peergroup.GenericPeerGroup.loadModule:1145) - Loaded module : General Purpose Peer Group Implementation (net.jxta.impl.peergroup.StdPeerGroup)
INFO  [QuotaListenerThread] (net.jxta.impl.peergroup.GenericPeerGroup.getInterface:570) - [urn:jxta:uuid-DD49DF822C88404DB73B922E79190D2402] GROUP REF COUNT INCREMENTED TO: 1 by
	net.jxta.impl.peergroup.GenericPeerGroup.newGroup(GenericPeerGroup.java:1376)
DEBUG [QuotaListenerThread] (ehome.mobile.network.JXTADiscoveryListener.getPeerGroup:155) - using cached group urn:jxta:uuid-DD49DF822C88404DB73B922E79190D2402
ERROR [Thread-12] (ehome.mobile.network.EHomeGroupHandler.run:64) - cannot join eHome group
net.jxta.exception.PeerGroupException: membership == null
	at ehome.mobile.network.JXTAManager.joinGroup(JXTAManager.java:288)
	at ehome.mobile.network.EHomeGroupHandler.run(EHomeGroupHandler.java:61)

--AqsLC8rIMeq19msA
Content-Type: text/plain; charset=us-ascii

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
--AqsLC8rIMeq19msA--