Skip to main content

manager.waitForRendezvousConnection() returning false.

1 reply [Last post]
moshelyons
Offline
Joined: 2009-04-28

Hi all. I am pretty new to JXTA and it seems like I cannot get past point A. When I try the HelloWorld example, I can not get a rendezvous connection. I am sitting on my home pc, connected to the internet via a cable modem. Nothing fancy. If anyone can please help me out, it would be much appreciated.

Thanks,

Moshe.

Here is the code I am running...

public class HelloWorld {
/**
* Main method
*
* @param args none defined
*/
public static void main(String args[]) {
NetworkManager manager = null;
try {
manager = new NetworkManager(NetworkManager.ConfigMode.EDGE, "HelloWorld");
System.out.println("Starting JXTA");
manager.startNetwork();
System.out.println("JXTA Started");
} catch (Exception e) {
e.printStackTrace();
System.exit(-1);
}
System.out.println("Waiting for a rendezvous connection");
boolean connected = manager.waitForRendezvousConnection(120000); //ALWAYS returns false.
System.out.println(MessageFormat.format("Connected :{0}", connected));
System.out.println("Stopping JXTA");
manager.stopNetwork();
}
}
__________________________________________________________________
Not sure if this will be helpfull, but here is my output:

debug:
Starting JXTA
18/05/2009 08:11:15 net.jxta.platform.NetworkManager configure
INFO: Loading existing configuration. mode = EDGE
18/05/2009 08:11:15 net.jxta.platform.NetworkManager startNetwork
INFO: Starting JXTA Network! MODE = EDGE, HOME = file:/C:/Users/builds/Documents/NetBeansProjects/JXTATutorial2/.jxta/
18/05/2009 08:11:16 net.jxta.impl.loader.RefJxtaLoader findModuleImplAdvertisement
WARNING: Failed to find class for urn:jxta:uuid-DEADBEEFDEAFBABAFEEDBABE0000000C0206
java.lang.ClassNotFoundException: No matching class for : urn:jxta:uuid-DEADBEEFDEAFBABAFEEDBABE0000000C0206
at net.jxta.impl.loader.RefJxtaLoader.findClass(RefJxtaLoader.java:240)
at net.jxta.impl.loader.RefJxtaLoader.findModuleImplAdvertisement(RefJxtaLoader.java:350)
at net.jxta.impl.peergroup.StdPeerGroup.getDefaultModuleImplAdvertisement(StdPeerGroup.java:353)
at net.jxta.impl.peergroup.StdPeerGroup.(StdPeerGroup.java:143)
at net.jxta.peergroup.WorldPeerGroupFactory.getDefaultWorldPeerGroupClass(WorldPeerGroupFactory.java:237)
at net.jxta.peergroup.WorldPeerGroupFactory.(WorldPeerGroupFactory.java:178)
at net.jxta.peergroup.NetPeerGroupFactory.(NetPeerGroupFactory.java:205)
at net.jxta.platform.NetworkManager.startNetwork(NetworkManager.java:410)
at tutorial.helloworld.HelloWorld.main(HelloWorld.java:18)
18/05/2009 08:11:16 net.jxta.peergroup.WorldPeerGroupFactory newWorldPeerGroup
INFO: Making a new World Peer Group instance using : net.jxta.impl.peergroup.Platform
18/05/2009 08:11:16 net.jxta.impl.cm.SrdiIndex clearSrdi
INFO: Clearing SRDI for null
18/05/2009 08:11:16 net.jxta.impl.peergroup.GenericPeerGroup loadModule
INFO: Loaded privileged module : Always Access Service (net.jxta.impl.access.always.AlwaysAccessService)
18/05/2009 08:11:16 net.jxta.impl.endpoint.tcp.IncomingUnicastServer openServerSocket
INFO: Server will accept connections at /0.0.0.0:9701
18/05/2009 08:11:16 net.jxta.impl.peergroup.GenericPeerGroup loadModule
INFO: Loaded privileged module : Reference Implementation of the TCP Message Transport (net.jxta.impl.endpoint.tcp.TcpTransport)
18/05/2009 08:11:16 net.jxta.impl.peergroup.GenericPeerGroup loadModule
INFO: Loaded privileged module : Reference Implementation of the Rendezvous Service (net.jxta.impl.rendezvous.RendezVousServiceImpl)
18/05/2009 08:11:16 net.jxta.impl.peergroup.GenericPeerGroup loadModule
INFO: Loaded privileged module : Reference Implementation of the Peerinfo Service (net.jxta.impl.peer.PeerInfoServiceImpl)
18/05/2009 08:11:16 net.jxta.impl.peergroup.GenericPeerGroup loadModule
INFO: Loaded privileged module : Reference Implementation of the Endpoint service (net.jxta.impl.endpoint.EndpointServiceImpl)
18/05/2009 08:11:16 net.jxta.impl.peergroup.GenericPeerGroup loadModule
INFO: Loaded privileged module : Reference Implementation of the HTTP Message Transport (net.jxta.impl.endpoint.servlethttp.ServletHttpTransport)
18/05/2009 08:11:16 net.jxta.impl.peergroup.GenericPeerGroup loadModule
INFO: Loaded privileged module : None Membership Service (net.jxta.impl.membership.none.NoneMembershipService)
18/05/2009 08:11:16 net.jxta.impl.peergroup.GenericPeerGroup loadModule
INFO: Loaded privileged module : Reference Implementation of the Resolver service (net.jxta.impl.resolver.ResolverServiceImpl)
18/05/2009 08:11:16 net.jxta.impl.peergroup.GenericPeerGroup loadModule
INFO: Loaded privileged module : Reference Implementation of the Discovery service (net.jxta.impl.discovery.DiscoveryServiceImpl)
18/05/2009 08:11:16 net.jxta.impl.peergroup.GenericPeerGroup loadModule
INFO: Loaded privileged module : Reference Implementation of the IP Multicast Message Transport (net.jxta.impl.endpoint.mcast.McastTransport)
18/05/2009 08:11:16 net.jxta.impl.endpoint.tcp.TcpTransport startApp
WARNING: Stalled until there is an endpoint service
18/05/2009 08:11:16 net.jxta.impl.rendezvous.RendezVousServiceImpl startApp
WARNING: Stalled until there is an endpoint service
18/05/2009 08:11:16 net.jxta.impl.peer.PeerInfoServiceImpl startApp
WARNING: Stalled until there is a resolver service
18/05/2009 08:11:16 net.jxta.impl.endpoint.EndpointServiceImpl startApp
INFO: Endpoint Service started.
18/05/2009 08:11:16 net.jxta.impl.endpoint.servlethttp.HttpMessageSender start
INFO: HTTP Client Transport started.
18/05/2009 08:11:16 net.jxta.impl.discovery.DiscoveryServiceImpl startApp
WARNING: Stalled until there is a rendezvous service
18/05/2009 08:11:16 net.jxta.impl.endpoint.mcast.McastTransport startApp
INFO: IP Multicast Message Transport started.
18/05/2009 08:11:16 net.jxta.impl.endpoint.tcp.TcpTransport$MessengerSelectorThread run
INFO: MessengerSelectorThread polling started
18/05/2009 08:11:16 net.jxta.impl.endpoint.tcp.TcpTransport startApp
INFO: TCP Message Transport started.
18/05/2009 08:11:16 net.jxta.impl.endpoint.tcp.IncomingUnicastServer run
INFO: Server is ready to accept connections
18/05/2009 08:11:16 net.jxta.impl.rendezvous.adhoc.AdhocPeerRdvService
INFO: RendezVous Service is initialized for urn:jxta:jxta-WorldGroup as an ad hoc peer.
18/05/2009 08:11:16 net.jxta.impl.rendezvous.RendezVousServiceImpl startApp
INFO: Rendezvous Serivce started
18/05/2009 08:11:16 net.jxta.impl.discovery.DiscoveryServiceImpl beEdge
INFO: Switched to a Edge peer role.
18/05/2009 08:11:16 net.jxta.impl.discovery.DiscoveryServiceImpl startApp
INFO: Discovery service started
18/05/2009 08:11:16 net.jxta.impl.peergroup.GenericPeerGroup getInterface
INFO: [urn:jxta:jxta-WorldGroup] GROUP REF COUNT INCREMENTED TO: 1 by
net.jxta.peergroup.NetPeerGroupFactory.(NetPeerGroupFactory.java:206)
18/05/2009 08:11:16 net.jxta.peergroup.NetPeerGroupFactory newNetPeerGroup
INFO: Instantiating net peer group : urn:jxta:jxta-NetGroup
Parent : urn:jxta:jxta-WorldGroup "World PeerGroup"[1]
ID : urn:jxta:jxta-NetGroup
Name : NetPeerGroup
impl : null
18/05/2009 08:11:16 net.jxta.impl.peergroup.GenericPeerGroup getInterface
INFO: [urn:jxta:jxta-WorldGroup] GROUP REF COUNT INCREMENTED TO: 2 by
net.jxta.impl.peergroup.GenericPeerGroup.loadModule(GenericPeerGroup.java:652)
18/05/2009 08:11:17 net.jxta.impl.cm.SrdiIndex clearSrdi
INFO: Clearing SRDI for NetPeerGroup
18/05/2009 08:11:17 net.jxta.impl.peergroup.GenericPeerGroup loadModule
INFO: Loaded privileged module : Reference Implementation of the JXME Proxy Service (net.jxta.impl.proxy.ProxyService)
18/05/2009 08:11:17 net.jxta.impl.peergroup.GenericPeerGroup loadModule
INFO: Loaded privileged module : Reference Implementation of the Relay Message Transport (net.jxta.impl.endpoint.relay.RelayTransport)
18/05/2009 08:11:17 net.jxta.impl.peergroup.GenericPeerGroup loadModule
INFO: Loaded privileged module : PSE Membership Service (net.jxta.impl.membership.pse.PSEMembershipService)
18/05/2009 08:11:17 net.jxta.impl.peergroup.GenericPeerGroup loadModule
INFO: Loaded privileged module : Reference Implementation of the Pipe Service (net.jxta.impl.pipe.PipeServiceImpl)
18/05/2009 08:11:17 net.jxta.impl.peergroup.GenericPeerGroup loadModule
INFO: Loaded privileged module : Reference Implementation of the Router Message Transport (net.jxta.impl.endpoint.router.EndpointRouter)
18/05/2009 08:11:17 net.jxta.impl.peergroup.GenericPeerGroup loadModule
INFO: Loaded privileged module : Always Access Service (net.jxta.impl.access.always.AlwaysAccessService)
18/05/2009 08:11:17 net.jxta.impl.peergroup.GenericPeerGroup loadModule
INFO: Loaded privileged module : Reference Implementation of the Rendezvous Service (net.jxta.impl.rendezvous.RendezVousServiceImpl)
18/05/2009 08:11:17 net.jxta.impl.peergroup.GenericPeerGroup loadModule
INFO: Loaded privileged module : Reference Implementation of the Endpoint service (net.jxta.impl.endpoint.EndpointServiceImpl)
18/05/2009 08:11:17 net.jxta.impl.peergroup.GenericPeerGroup loadModule
INFO: Loaded privileged module : Reference Implementation of the Peerinfo Service (net.jxta.impl.peer.PeerInfoServiceImpl)
18/05/2009 08:11:17 net.jxta.impl.peergroup.GenericPeerGroup loadModule
INFO: Loaded privileged module : Reference Implementation of the Cryptobased-ID Message Transport (net.jxta.impl.endpoint.cbjx.CbJxTransport)
18/05/2009 08:11:17 net.jxta.impl.peergroup.GenericPeerGroup loadModule
INFO: Loaded privileged module : Reference Implementation of the Resolver service (net.jxta.impl.resolver.ResolverServiceImpl)
18/05/2009 08:11:17 net.jxta.impl.endpoint.tls.TlsTransport
INFO: Adjusting TLS connection idle timeout to 300000 millis.
18/05/2009 08:11:17 net.jxta.impl.endpoint.tls.TlsTransport
INFO: Adjusting TLS min reconnection idle to 60000 millis.
18/05/2009 08:11:17 net.jxta.impl.endpoint.tls.TlsTransport
INFO: Adjusting TLS maximum retry queue age to 120000 millis.
18/05/2009 08:11:17 net.jxta.impl.peergroup.GenericPeerGroup loadModule
INFO: Loaded privileged module : Reference Implementation of the TLS Message Transport (net.jxta.impl.endpoint.tls.TlsTransport)
18/05/2009 08:11:17 net.jxta.impl.peergroup.GenericPeerGroup loadModule
INFO: Loaded privileged module : Reference Implementation of the Discovery service (net.jxta.impl.discovery.DiscoveryServiceImpl)
18/05/2009 08:11:17 net.jxta.impl.proxy.ProxyService startApp
WARNING: Stalled until there is a endpoint service
18/05/2009 08:11:17 net.jxta.impl.endpoint.relay.RelayTransport startApp
WARNING: Stalled until there is an endpoint service
18/05/2009 08:11:17 net.jxta.impl.membership.pse.PSEMembershipService startApp
INFO: PSE Membmership Service started.
18/05/2009 08:11:17 net.jxta.impl.pipe.PipeServiceImpl startApp
WARNING: Stalled until there is an endpoint service
18/05/2009 08:11:17 net.jxta.impl.endpoint.router.EndpointRouter startApp
WARNING: Stalled until there is an endpoint service
18/05/2009 08:11:17 net.jxta.impl.rendezvous.RendezVousServiceImpl startApp
WARNING: Stalled until there is an endpoint service
18/05/2009 08:11:17 net.jxta.impl.endpoint.EndpointServiceImpl startApp
INFO: Endpoint Service started.
18/05/2009 08:11:17 net.jxta.impl.peer.PeerInfoServiceImpl startApp
WARNING: Stalled until there is a resolver service
18/05/2009 08:11:17 net.jxta.impl.endpoint.cbjx.CbJxTransport startApp
INFO: CbJxTransport started
18/05/2009 08:11:17 net.jxta.impl.discovery.DiscoveryServiceImpl startApp
WARNING: Stalled until there is a rendezvous service
18/05/2009 08:11:17 net.jxta.impl.proxy.ProxyService startApp
WARNING: Stalled until there is a discovery service
18/05/2009 08:11:17 net.jxta.impl.endpoint.relay.RelayTransport startApp
WARNING: Stalled until there is a discovery service
18/05/2009 08:11:17 net.jxta.impl.pipe.PipeServiceImpl startApp
WARNING: Stalled until there is a rendezvous service
18/05/2009 08:11:17 net.jxta.impl.endpoint.router.EndpointRouter startApp
WARNING: Endpoint Router start stalled until rendezvous service available
18/05/2009 08:11:17 net.jxta.impl.rendezvous.edge.EdgePeerRdvService
INFO: RendezVous Service is initialized for urn:jxta:jxta-NetGroup as an Edge peer.
18/05/2009 08:11:17 net.jxta.impl.rendezvous.RendezVousServiceImpl startApp
INFO: Rendezvous Serivce started
18/05/2009 08:11:17 net.jxta.impl.rendezvous.edge.EdgePeerRdvService$MonitorTask run
WARNING: Rendezvous connection stalled until router is started!
18/05/2009 08:11:17 net.jxta.impl.discovery.DiscoveryServiceImpl beEdge
INFO: Switched to a Edge peer role.
18/05/2009 08:11:17 net.jxta.impl.discovery.DiscoveryServiceImpl startApp
INFO: Discovery service started
18/05/2009 08:11:17 net.jxta.impl.proxy.ProxyService startApp
WARNING: Stalled until there is a pipe service
18/05/2009 08:11:17 net.jxta.impl.endpoint.relay.RelayTransport startApp
WARNING: Stalled until there is a pipe service
18/05/2009 08:11:17 net.jxta.impl.cm.SrdiIndex
INFO: [urn:jxta:jxta-NetGroup "NetPeerGroup"[0] / urn:jxta:jxta-WorldGroup "World PeerGroup"[2]] : Initialized pipeResolverSrdi
18/05/2009 08:11:17 net.jxta.impl.cm.SrdiIndex startGC
INFO: [urn:jxta:jxta-NetGroup "NetPeerGroup"[0] / urn:jxta:jxta-WorldGroup "World PeerGroup"[2]] : Starting SRDI GC Thread for pipeResolverSrdi
18/05/2009 08:11:17 net.jxta.impl.cm.SrdiIndex
INFO: [urn:jxta:jxta-NetGroup "NetPeerGroup"[0] / urn:jxta:jxta-WorldGroup "World PeerGroup"[2]] : Initialized routerSrdi
18/05/2009 08:11:17 net.jxta.impl.endpoint.router.EndpointRouter startApp
INFO: urn:jxta:jxta-NetGroup "NetPeerGroup"[0] / urn:jxta:jxta-WorldGroup "World PeerGroup"[2] : Router Message Transport started.
18/05/2009 08:11:17 net.jxta.impl.proxy.ProxyService startApp
INFO: JXME Proxy Service started.
18/05/2009 08:11:17 net.jxta.impl.endpoint.relay.RelayClient startClient
INFO: Started client : relay://uuid-59616261646162614E504720503250330C2488D892CD4C30826CDDB2146B201A03
18/05/2009 08:11:17 net.jxta.impl.endpoint.relay.RelayTransport startApp
INFO: Relay Message Transport started
18/05/2009 08:11:17 net.jxta.impl.endpoint.relay.RelayClient run
INFO: Start relay client thread
18/05/2009 08:11:17 net.jxta.impl.peergroup.GenericPeerGroup loadModule
INFO: Loaded module : Default Network PeerGroup reference implementation (net.jxta.impl.peergroup.ShadowPeerGroup)
18/05/2009 08:11:17 net.jxta.impl.peergroup.GenericPeerGroup decRefCount
INFO: [urn:jxta:jxta-WorldGroup] GROUP REF COUNT DECCREMENTED TO: 1 by
net.jxta.peergroup.NetPeerGroupFactory.(NetPeerGroupFactory.java:220)
18/05/2009 08:11:17 net.jxta.impl.peergroup.GenericPeerGroup getInterface
INFO: [urn:jxta:jxta-NetGroup] GROUP REF COUNT INCREMENTED TO: 1 by
net.jxta.platform.NetworkManager.startNetwork(NetworkManager.java:412)
18/05/2009 08:11:17 net.jxta.platform.NetworkManager startNetwork
INFO: Started JXTA Network!
JXTA Started
Waiting for a rendezvous connection
Connected :false
Stopping JXTA
18/05/2009 08:15:24 net.jxta.platform.NetworkManager stopNetwork
INFO: Stopping JXTA Network!
18/05/2009 08:15:24 net.jxta.impl.peergroup.GenericPeerGroup decRefCount
INFO: [urn:jxta:jxta-NetGroup] GROUP REF COUNT DECCREMENTED TO: 0 by
net.jxta.impl.peergroup.RefCountPeerGroupInterface.stopApp(RefCountPeerGroupInterface.java:140)
18/05/2009 08:15:24 net.jxta.impl.peergroup.GenericPeerGroup decRefCount
INFO: [urn:jxta:jxta-NetGroup] STOPPING UNREFERENCED GROUP
18/05/2009 08:15:24 net.jxta.impl.endpoint.relay.RelayClient stopClient
INFO: Stopped client : relay://uuid-59616261646162614E504720503250330C2488D892CD4C30826CDDB2146B201A03
18/05/2009 08:15:24 net.jxta.impl.endpoint.relay.RelayClient run
INFO: stop client thread
18/05/2009 08:15:24 net.jxta.impl.endpoint.relay.RelayTransport stopApp
INFO: Relay Message Transport stopped
18/05/2009 08:15:24 net.jxta.impl.proxy.ProxyService stopApp
INFO: JXME Proxy Service stopped.
18/05/2009 08:15:24 net.jxta.impl.cm.Indexer close
INFO: Closing Indexer
18/05/2009 08:15:24 net.jxta.impl.endpoint.router.EndpointRouter stopApp
INFO: urn:jxta:jxta-NetGroup "NetPeerGroup"[0] / urn:jxta:jxta-WorldGroup "World PeerGroup"[1] : Router Message Transport stopped.
18/05/2009 08:15:24 net.jxta.impl.cm.Indexer close
INFO: Closing Indexer
18/05/2009 08:15:24 net.jxta.impl.discovery.DiscoveryServiceImpl stopApp
INFO: Discovery service stopped.
18/05/2009 08:15:24 net.jxta.impl.rendezvous.RendezVousServiceImpl stopApp
INFO: Rendezvous Serivce stopped
18/05/2009 08:15:24 net.jxta.impl.endpoint.tls.TlsManager close
INFO: Shutting down all connections
18/05/2009 08:15:24 net.jxta.impl.endpoint.cbjx.CbJxTransport stopApp
INFO: CbJxTransport stopped
18/05/2009 08:15:24 net.jxta.impl.endpoint.EndpointServiceImpl stopApp
INFO: Endpoint Service stopped.
18/05/2009 08:15:24 net.jxta.impl.membership.pse.PSEMembershipService stopApp
INFO: PSE Membmership Service stopped.
18/05/2009 08:15:24 net.jxta.impl.peergroup.GenericPeerGroup decRefCount
INFO: [urn:jxta:jxta-WorldGroup] GROUP REF COUNT DECCREMENTED TO: 0 by
net.jxta.impl.peergroup.GenericPeerGroup.stopApp(GenericPeerGroup.java:1245)
18/05/2009 08:15:24 net.jxta.impl.peergroup.GenericPeerGroup decRefCount
INFO: [urn:jxta:jxta-WorldGroup] STOPPING UNREFERENCED GROUP
18/05/2009 08:15:24 net.jxta.impl.discovery.DiscoveryServiceImpl stopApp
INFO: Discovery service stopped.
18/05/2009 08:15:24 net.jxta.impl.rendezvous.RendezVousServiceImpl stopApp
INFO: Rendezvous Serivce stopped
18/05/2009 08:15:24 net.jxta.impl.endpoint.tcp.IncomingUnicastServer run
INFO: Server has been shut down.
18/05/2009 08:15:24 net.jxta.impl.endpoint.tcp.TcpTransport stopApp
INFO: Total bytes sent : 0
18/05/2009 08:15:24 net.jxta.impl.endpoint.tcp.TcpTransport stopApp
INFO: Total Messages sent : 0
18/05/2009 08:15:24 net.jxta.impl.endpoint.tcp.TcpTransport stopApp
INFO: Total bytes received : 0
18/05/2009 08:15:24 net.jxta.impl.endpoint.tcp.TcpTransport stopApp
INFO: Total Messages received : 0
18/05/2009 08:15:24 net.jxta.impl.endpoint.tcp.TcpTransport stopApp
INFO: Total connections accepted : 0
18/05/2009 08:15:24 net.jxta.impl.endpoint.tcp.TcpTransport stopApp
INFO: TCP Message Transport shut down.
18/05/2009 08:15:24 net.jxta.impl.endpoint.servlethttp.HttpMessageSender stop
INFO: HTTP Client Transport stopped.
18/05/2009 08:15:24 net.jxta.impl.endpoint.EndpointServiceImpl stopApp
INFO: Endpoint Service stopped.
18/05/2009 08:15:24 net.jxta.impl.cm.Indexer close
INFO: Closing Indexer
18/05/2009 08:15:24 net.jxta.impl.cm.Indexer close
INFO: Closing Indexer
18/05/2009 08:15:24 net.jxta.platform.NetworkManager stopNetwork
INFO: Stopped JXTA Network!
BUILD SUCCESSFUL (total time: 4 minutes 26 seconds)

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
hamada
Offline
Joined: 2003-06-12

At the very least you must specify a single rendezvous address.