Skip to main content

Jxta in a nutshell example

2 replies [Last post]
marie82
Offline
Joined: 2006-12-05
Points: 0

Hi everyone,
I'm a French student, who is trying to gain some experience about JXTA. Reading the book JXTA in a nutshell I tried the example of the RestoNet PeerGroupService, but I cannot make it load the module of the new peergroup service. I modified the example to get rid of those method that changed name from the book publishing date.
The RestoPeer application outputs this log (WARN level):
Setting Log4J priority to [warn] based on the user's configuration
1 out of 3 files were not closed during close.
1 out of 3 files were not closed during close.
1 out of 3 files were not closed during close.
1 out of 3 files were not closed during close.
Failed to get RouteControl object. Resolver will not set route hints.
1 out of 3 files were not closed during close.
Setting Log4J priority to [warn] based on the user's configuration
1 out of 3 files were not closed during close.
1 out of 3 files were not closed during close.
1 out of 3 files were not closed during close.
1 out of 3 files were not closed during close.
1 out of 3 files were not closed during close.
1 out of 3 files were not closed during close.
1 out of 3 files were not closed during close.
1 out of 3 files were not closed during close.
1 out of 3 files were not closed during close.
1 out of 3 files were not closed during close.
1 out of 3 files were not closed during close.
1 out of 3 files were not closed during close.
1 out of 3 files were not closed during close.
1 out of 3 files were not closed during close.
1 out of 3 files were not closed during close.
1 out of 3 files were not closed during close.
Attempting to Discover the RestoNet PeerGroup
1 out of 3 files were not closed during close.
Could not find the RestoNet peergroup; creating one
Published new Peergroup ModulImpl advertisement for : RestoNet
1 out of 3 files were not closed during close.
1 out of 3 files were not closed during close.
1 out of 3 files were not closed during close.
1 out of 3 files were not closed during close.
Published the new PeerGroup advertisement for :RestoNet
1 out of 3 files were not closed during close.
1 out of 3 files were not closed during close.
Incompatible Module : urn:jxta:uuid-737D1ED776B043E7A8718B102B62055A05
Could not load module for class ID urn:jxta:uuid-737D1ED776B043E7A8718B102B62055A05
net.jxta.exception.ProtocolNotSupportedException: Incompatible Module : urn:jxta:uuid-737D1ED776B043E7A8718B102B62055A05
at net.jxta.impl.peergroup.GenericPeerGroup.loadModule(GenericPeerGroup.java:704)
at net.jxta.impl.peergroup.StdPeerGroup.loadAllModules(StdPeerGroup.java:299)
at net.jxta.impl.peergroup.StdPeerGroup.initFirst(StdPeerGroup.java:554)
at net.jxta.impl.peergroup.GenericPeerGroup.init(GenericPeerGroup.java:910)
at net.jxta.impl.peergroup.GenericPeerGroup.loadModule(GenericPeerGroup.java:727)
at net.jxta.impl.peergroup.GenericPeerGroup.loadModule(GenericPeerGroup.java:823)
at net.jxta.impl.peergroup.GenericPeerGroup.newGroup(GenericPeerGroup.java:1348)
at net.jxta.impl.peergroup.PeerGroupInterface.newGroup(PeerGroupInterface.java:323)
at RestoPeer.createPeerGroup(RestoPeer.java:353)
at RestoPeer.createRestoPeerGroup(RestoPeer.java:282)
at RestoPeer.joinRestoNet(RestoPeer.java:147)
at RestoPeer.startJxta(RestoPeer.java:80)
at RestoPeer.main(RestoPeer.java:62)
Will be missing from peer group: RestoPeer Service Module Implementation (Incompatible Module : urn:jxta:uuid-737D1ED776B043E7A8718B102B62055A05).
1 out of 3 files were not closed during close.
1 out of 3 files were not closed during close.
1 out of 3 files were not closed during close.
1 out of 3 files were not closed during close.
1 out of 3 files were not closed during close.
1 out of 3 files were not closed during close.
Instantiated the new PeerGroup RestoNet
RestoNet Restaurant (Chez JXTA) is on-line
1 out of 3 files were not closed during close.

While the HungryPeer application outputs this log:
Setting Log4J priority to [warn] based on the user's configuration
1 out of 3 files were not closed during close.
1 out of 3 files were not closed during close.
1 out of 3 files were not closed during close.
1 out of 3 files were not closed during close.
Failed to get RouteControl object. Resolver will not set route hints.
1 out of 3 files were not closed during close.
Setting Log4J priority to [warn] based on the user's configuration
1 out of 3 files were not closed during close.
1 out of 3 files were not closed during close.
1 out of 3 files were not closed during close.
1 out of 3 files were not closed during close.
1 out of 3 files were not closed during close.
1 out of 3 files were not closed during close.
resolver has not started yet, query discarded.
1 out of 3 files were not closed during close.
1 out of 3 files were not closed during close.
getMessenger: could not get messenger for tcp://192.18.37.36:9701/EndpointService:jxta-NetGroup/uuid-DEADBEEFDEAFB... refused
1 out of 3 files were not closed during close.
Ping (http://209.128.126.120:9700/) -> failed
Failed to connect to http://209.128.126.120:9700/EndpointService:jxta-NetGroup/uuid-DEADBEEFD... : Connection refused
1 out of 3 files were not closed during close.
1 out of 3 files were not closed during close.
1 out of 3 files were not closed during close.
1 out of 3 files were not closed during close.
1 out of 3 files were not closed during close.
Attempting to discover the RestoNet Peergroup
1 out of 3 files were not closed during close.
1 out of 3 files were not closed during close.
1 out of 3 files were not closed during close.
1 out of 3 files were not closed during close.
Found the RestoNet PeerGroup Advertisement
1 out of 3 files were not closed during close.
1 out of 3 files were not closed during close.
Incompatible Module : urn:jxta:uuid-737D1ED776B043E7A8718B102B62055A05
Could not load module for class ID urn:jxta:uuid-737D1ED776B043E7A8718B102B62055A05
net.jxta.exception.ProtocolNotSupportedException: Incompatible Module : urn:jxta:uuid-737D1ED776B043E7A8718B102B62055A05
at net.jxta.impl.peergroup.GenericPeerGroup.loadModule(GenericPeerGroup.java:704)
at net.jxta.impl.peergroup.StdPeerGroup.loadAllModules(StdPeerGroup.java:299)
at net.jxta.impl.peergroup.StdPeerGroup.initFirst(StdPeerGroup.java:554)
at net.jxta.impl.peergroup.GenericPeerGroup.init(GenericPeerGroup.java:910)
at net.jxta.impl.peergroup.GenericPeerGroup.loadModule(GenericPeerGroup.java:727)
at net.jxta.impl.peergroup.GenericPeerGroup.loadModule(GenericPeerGroup.java:823)
at net.jxta.impl.peergroup.GenericPeerGroup.newGroup(GenericPeerGroup.java:1348)
at net.jxta.impl.peergroup.PeerGroupInterface.newGroup(PeerGroupInterface.java:323)
at HungryPeer.joinRestoNet(HungryPeer.java:166)
at HungryPeer.startJxta(HungryPeer.java:82)
at HungryPeer.main(HungryPeer.java:61)
Will be missing from peer group: RestoPeer Service Module Implementation (Incompatible Module : urn:jxta:uuid-737D1ED776B043E7A8718B102B62055A05).
1 out of 3 files were not closed during close.
1 out of 3 files were not closed during close.
1 out of 3 files were not closed during close.
1 out of 3 files were not closed during close.
1 out of 3 files were not closed during close.
1 out of 3 files were not closed during close.
1 out of 3 files were not closed during close.
1 out of 3 files were not closed during close.
1 out of 3 files were not closed during close.
The HungryPeer joined the restoNet PeerGroup
1 out of 3 files were not closed during close.
Locating RestoPeers in the RestoNet Peergroup

Could anyone give me an hint?

Thanks to everyone.

Marie

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
tra
Offline
Joined: 2003-06-16
Points: 0

> Hi everyone,
>
> GenericPeerGroup::loadModule:701> Incompatible Module
> : urn:jxta:uuid-737D1ED776B043E7A8718B102B62055A05
> > StdPeerGroup::loadAllModules:318> Could not load
> module for class ID
The module advertisement compatibility field has changed in the latest JXTA release. This is why you cannot
correctly the service.

B.

> urn:jxta:uuid-737D1ED776B043E7A8718B102B62055A05
> net.jxta.exception.ProtocolNotSupportedException:
> Incompatible Module :
> urn:jxta:uuid-737D1ED776B043E7A8718B102B62055A05
> at
> at
> at
> at
> net.jxta.impl.peergroup.GenericPeerGroup.loadModule(Ge
> nericPeerGroup.java:704)
> at
> at
> at
> at
> net.jxta.impl.peergroup.StdPeerGroup.loadAllModules(St
> dPeerGroup.java:299)
> at
> at
> at
> at
> net.jxta.impl.peergroup.StdPeerGroup.initFirst(StdPeer
> Group.java:554)
> at
> at
> at
> at
> net.jxta.impl.peergroup.GenericPeerGroup.init(GenericP
> eerGroup.java:910)
> at
> at
> at
> at
> net.jxta.impl.peergroup.GenericPeerGroup.loadModule(Ge
> nericPeerGroup.java:727)
> at
> at
> at
> at
> net.jxta.impl.peergroup.GenericPeerGroup.loadModule(Ge
> nericPeerGroup.java:823)
> at
> at
> at
> at
> net.jxta.impl.peergroup.GenericPeerGroup.newGroup(Gene
> ricPeerGroup.java:1348)
> at
> at
> at
> at
> net.jxta.impl.peergroup.PeerGroupInterface.newGroup(Pe
> erGroupInterface.java:323)
> at
> at
> at RestoPeer.createPeerGroup(RestoPeer.java:353)
> at
> at
> at
> at
> RestoPeer.createRestoPeerGroup(RestoPeer.java:282)
> at
> at RestoPeer.joinRestoNet(RestoPeer.java:147)
> at RestoPeer.startJxta(RestoPeer.java:80)
> at RestoPeer.main(RestoPeer.java:62)
> > StdPeerGroup::loadAllModules:326> Will be missing
> from peer group: RestoPeer Service Module
> Implementation (Incompatible Module :
> urn:jxta:uuid-737D1ED776B043E7A8718B102B62055A05).
> 1
> out of 3 files were not closed during close.
> 1
> out of 3 files were not closed during close.
> 1
> out of 3 files were not closed during close.
> 1
> out of 3 files were not closed during close.
> 1
> out of 3 files were not closed during close.
> 1
> out of 3 files were not closed during close.
> Instantiated the new PeerGroup RestoNet
> RestoNet Restaurant (Chez JXTA) is on-line
> 1
> out of 3 files were not closed during close.
>
> While the HungryPeer application outputs this log:
> > NullConfigurator::adjustLog4JPriority:322> Setting
> Log4J priority to [warn] based on the user's
> configuration
> 1
> out of 3 files were not closed during close.
> 1
> out of 3 files were not closed during close.
> 1
> out of 3 files were not closed during close.
> 1
> out of 3 files were not closed during close.
> > ResolverServiceImpl::startApp:382> Failed to get
> RouteControl object. Resolver will not set route
> hints.
> 1
> out of 3 files were not closed during close.
> > NullConfigurator::adjustLog4JPriority:322> Setting
> Log4J priority to [warn] based on the user's
> configuration
> 1
> out of 3 files were not closed during close.
> 1
> out of 3 files were not closed during close.
> 1
> out of 3 files were not closed during close.
> 1
> out of 3 files were not closed during close.
> 1
> out of 3 files were not closed during close.
> 1
> out of 3 files were not closed during close.
> > DiscoveryServiceImpl::getRemoteAdvertisements:324>
> resolver has not started yet, query discarded.
> 1
> out of 3 files were not closed during close.
> 1
> out of 3 files were not closed during close.
> > TcpTransport::getMessenger:945> getMessenger: could
> not get messenger for
> tcp://192.18.37.36:9701/EndpointService:jxta-NetGroup/
> uuid-DEADBEEFDEAFBABAFEEDBABE0000000F05/connect,360000
> 0,keep,true/Connection refused
> 1
> out of 3 files were not closed during close.
> > HttpClientMessenger::retreiveLogicalDestinationAddress
> :416> Ping (http://209.128.126.120:9700/) -> failed
> > HttpMessageSender::getMessenger:219> Failed to
> connect to
> http://209.128.126.120:9700/EndpointService:jxta-NetGr
> oup/uuid-DEADBEEFDEAFBABAFEEDBABE0000000F05/connect,36
> 00000,keep,true : Connection refused
> 1
> out of 3 files were not closed during close.
> 1
> out of 3 files were not closed during close.
> 1
> out of 3 files were not closed during close.
> 1
> out of 3 files were not closed during close.
> 1
> out of 3 files were not closed during close.
> Attempting to discover the RestoNet Peergroup
> 1
> out of 3 files were not closed during close.
> 1
> out of 3 files were not closed during close.
> 1
> out of 3 files were not closed during close.
> 1
> out of 3 files were not closed during close.
> Found the RestoNet PeerGroup Advertisement
> 1
> out of 3 files were not closed during close.
> 1
> out of 3 files were not closed during close.
> > GenericPeerGroup::loadModule:701> Incompatible Module
> : urn:jxta:uuid-737D1ED776B043E7A8718B102B62055A05
> > StdPeerGroup::loadAllModules:318> Could not load
> module for class ID
> urn:jxta:uuid-737D1ED776B043E7A8718B102B62055A05
> net.jxta.exception.ProtocolNotSupportedException:
> Incompatible Module :
> urn:jxta:uuid-737D1ED776B043E7A8718B102B62055A05
> at
> t
> net.jxta.impl.peergroup.GenericPeerGroup.loadModule(Ge
> nericPeerGroup.java:704)
> at
> t
> net.jxta.impl.peergroup.StdPeerGroup.loadAllModules(St
> dPeerGroup.java:299)
> at
> t
> net.jxta.impl.peergroup.StdPeerGroup.initFirst(StdPeer
> Group.java:554)
> at
> t
> net.jxta.impl.peergroup.GenericPeerGroup.init(GenericP
> eerGroup.java:910)
> at
> t
> net.jxta.impl.peergroup.GenericPeerGroup.loadModule(Ge
> nericPeerGroup.java:727)
> at
> t
> net.jxta.impl.peergroup.GenericPeerGroup.loadModule(Ge
> nericPeerGroup.java:823)
> at
> t
> net.jxta.impl.peergroup.GenericPeerGroup.newGroup(Gene
> ricPeerGroup.java:1348)
> at
> t
> net.jxta.impl.peergroup.PeerGroupInterface.newGroup(Pe
> erGroupInterface.java:323)
> at HungryPeer.joinRestoNet(HungryPeer.java:166)
> at HungryPeer.startJxta(HungryPeer.java:82)
> at HungryPeer.main(HungryPeer.java:61)
> > StdPeerGroup::loadAllModules:326> Will be missing
> from peer group: RestoPeer Service Module
> Implementation (Incompatible Module :
> urn:jxta:uuid-737D1ED776B043E7A8718B102B62055A05).
> 1
> out of 3 files were not closed during close.
> 1
> out of 3 files were not closed during close.
> 1
> out of 3 files were not closed during close.
> 1
> out of 3 files were not closed during close.
> 1
> out of 3 files were not closed during close.
> 1
> out of 3 files were not closed during close.
> 1
> out of 3 files were not closed during close.
> 1
> out of 3 files were not closed during close.
> 1
> out of 3 files were not closed during close.
> The HungryPeer joined the restoNet PeerGroup
> 1
> out of 3 files were not closed during close.
> Locating RestoPeers in the RestoNet Peergroup
>
> Could anyone give me an hint?
>
> Thanks to everyone.
>
> Marie

marie82
Offline
Joined: 2006-12-05
Points: 0

Hi,
Thanks for your fast reply!
I have tried to modify the example, setting compatibility to these values (that are those I found in StdPeerGroup.java in jxta 2.4.1 release):
Format: "Efmt" -> "JDK1.4.1"
Binding: "Bind" -> "V2.0 Ref Impl"

But I'm getting that load error, anyway...

Does anybody know if there was a peergroup service code example on the Net, which works with jxta 2.4.1 release?

And, if not, could anybody please hint me about what to read within jxta code library to learn the basics to get a simple peergroup service loaded and running (I tried to analyze DiscoveryService, but it was a little too complicated to be a starting point...).

Thanks for paying me attention, and sorry for bothering :)

Greetings,

Marie