PROGRAM
=========
package JXSE;
import net.jxta.platform.NetworkManager;
import java.text.MessageFormat;
public class HelloWorld {
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(12000);
System.out.println(MessageFormat.format("Connected :{0}", connected));
System.out.println("Stopping JXTA");
manager.stopNetwork();
}
}
LOG FILE
=======
Starting JXTA
12 nov. 2007 18:02:16 net.jxta.platform.NetworkManager configure
INFO: Loading existing configuration. mode = EDGE
12 nov. 2007 18:02:16 net.jxta.platform.NetworkManager startNetwork
INFO: Starting JXTA Network! MODE = EDGE, HOME = file:/C:/WorkspaceEclipse/GTRP2P/.jxta/
12 nov. 2007 18:02:17 net.jxta.impl.loader.RefJxtaLoader findModuleImplAdvertisement
ATTENTION: 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.<clinit>(StdPeerGroup.java:143)
at net.jxta.peergroup.WorldPeerGroupFactory.getDefaultWorldPeerGroupClass(WorldPeerGroupFactory.java:237)
at net.jxta.peergroup.WorldPeerGroupFactory.<init>(WorldPeerGroupFactory.java:178)
at net.jxta.peergroup.NetPeerGroupFactory.<init>(NetPeerGroupFactory.java:205)
at net.jxta.platform.NetworkManager.startNetwork(NetworkManager.java:410)
at JXSE.HelloWorld.main(HelloWorld.java:14)
12 nov. 2007 18:02:17 net.jxta.peergroup.WorldPeerGroupFactory newWorldPeerGroup
INFO: Making a new World Peer Group instance using : net.jxta.impl.peergroup.Platform
12 nov. 2007 18:02:17 net.jxta.impl.cm.SrdiIndex clearSrdi
INFO: Clearing SRDI for null
12 nov. 2007 18:02:17 net.jxta.impl.peergroup.GenericPeerGroup loadModule
INFO: Loaded privileged module : Always Access Service (net.jxta.impl.access.always.AlwaysAccessService)
12 nov. 2007 18:02:17 net.jxta.impl.endpoint.tcp.IncomingUnicastServer openServerSocket
INFO: Server will accept connections at /0.0.0.0:9701
12 nov. 2007 18:02:17 net.jxta.impl.peergroup.GenericPeerGroup loadModule
INFO: Loaded privileged module : Reference Implementation of the TCP Message Transport (net.jxta.impl.endpoint.tcp.TcpTransport)
12 nov. 2007 18:02:17 net.jxta.impl.peergroup.GenericPeerGroup loadModule
INFO: Loaded privileged module : Reference Implementation of the Rendezvous Service (net.jxta.impl.rendezvous.RendezVousServiceImpl)
12 nov. 2007 18:02:17 net.jxta.impl.peergroup.GenericPeerGroup loadModule
INFO: Loaded privileged module : Reference Implementation of the Peerinfo Service (net.jxta.impl.peer.PeerInfoServiceImpl)
12 nov. 2007 18:02:17 net.jxta.impl.peergroup.GenericPeerGroup loadModule
INFO: Loaded privileged module : Reference Implementation of the Endpoint service (net.jxta.impl.endpoint.EndpointServiceImpl)
12 nov. 2007 18:02:17 net.jxta.impl.peergroup.GenericPeerGroup loadModule
INFO: Loaded privileged module : Reference Implementation of the HTTP Message Transport (net.jxta.impl.endpoint.servlethttp.ServletHttpTransport)
12 nov. 2007 18:02:17 net.jxta.impl.peergroup.GenericPeerGroup loadModule
INFO: Loaded privileged module : None Membership Service (net.jxta.impl.membership.none.NoneMembershipService)
12 nov. 2007 18:02:17 net.jxta.impl.peergroup.GenericPeerGroup loadModule
INFO: Loaded privileged module : Reference Implementation of the Resolver service (net.jxta.impl.resolver.ResolverServiceImpl)
12 nov. 2007 18:02:17 net.jxta.impl.peergroup.GenericPeerGroup loadModule
INFO: Loaded privileged module : Reference Implementation of the Discovery service (net.jxta.impl.discovery.DiscoveryServiceImpl)
12 nov. 2007 18:02:17 net.jxta.impl.peergroup.GenericPeerGroup loadModule
INFO: Loaded privileged module : Reference Implementation of the IP Multicast Message Transport (net.jxta.impl.endpoint.mcast.McastTransport)
12 nov. 2007 18:02:17 net.jxta.impl.endpoint.tcp.TcpTransport startApp
ATTENTION: Stalled until there is an endpoint service
12 nov. 2007 18:02:17 net.jxta.impl.rendezvous.RendezVousServiceImpl startApp
ATTENTION: Stalled until there is an endpoint service
12 nov. 2007 18:02:17 net.jxta.impl.peer.PeerInfoServiceImpl startApp
ATTENTION: Stalled until there is a resolver service
12 nov. 2007 18:02:17 net.jxta.impl.endpoint.EndpointServiceImpl startApp
INFO: Endpoint Service started.
12 nov. 2007 18:02:17 net.jxta.impl.endpoint.servlethttp.HttpMessageSender start
INFO: HTTP Client Transport started.
12 nov. 2007 18:02:17 net.jxta.impl.discovery.DiscoveryServiceImpl startApp
ATTENTION: Stalled until there is a rendezvous service
12 nov. 2007 18:02:17 net.jxta.impl.endpoint.mcast.McastTransport startApp
INFO: IP Multicast Message Transport started.
12 nov. 2007 18:02:17 net.jxta.impl.endpoint.tcp.TcpTransport startApp
INFO: TCP Message Transport started.
12 nov. 2007 18:02:17 net.jxta.impl.endpoint.tcp.TcpTransport$MessengerSelectorThread run
INFO: MessengerSelectorThread polling started
12 nov. 2007 18:02:17 net.jxta.impl.endpoint.tcp.IncomingUnicastServer run
INFO: Server is ready to accept connections
12 nov. 2007 18:02:17 net.jxta.impl.rendezvous.adhoc.AdhocPeerRdvService <init>
INFO: RendezVous Service is initialized for urn:jxta:jxta-WorldGroup as an ad hoc peer.
12 nov. 2007 18:02:17 net.jxta.impl.rendezvous.RendezVousServiceImpl startApp
INFO: Rendezvous Serivce started
12 nov. 2007 18:02:17 net.jxta.impl.discovery.DiscoveryServiceImpl beEdge
INFO: Switched to a Edge peer role.
12 nov. 2007 18:02:17 net.jxta.impl.discovery.DiscoveryServiceImpl startApp
INFO: Discovery service started
12 nov. 2007 18:02:17 net.jxta.impl.peergroup.GenericPeerGroup getInterface
INFO: [urn:jxta:jxta-WorldGroup] GROUP REF COUNT INCREMENTED TO: 1 by
net.jxta.peergroup.NetPeerGroupFactory.<init>(NetPeerGroupFactory.java:206)
12 nov. 2007 18:02:17 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
12 nov. 2007 18:02:17 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)
12 nov. 2007 18:02:17 net.jxta.impl.cm.SrdiIndex clearSrdi
INFO: Clearing SRDI for NetPeerGroup
12 nov. 2007 18:02:17 net.jxta.impl.peergroup.GenericPeerGroup loadModule
INFO: Loaded privileged module : Reference Implementation of the JXME Proxy Service (net.jxta.impl.proxy.ProxyService)
12 nov. 2007 18:02:17 net.jxta.impl.peergroup.GenericPeerGroup loadModule
INFO: Loaded privileged module : Reference Implementation of the Relay Message Transport (net.jxta.impl.endpoint.relay.RelayTransport)
12 nov. 2007 18:02:17 net.jxta.impl.peergroup.GenericPeerGroup loadModule
INFO: Loaded privileged module : PSE Membership Service (net.jxta.impl.membership.pse.PSEMembershipService)
12 nov. 2007 18:02:17 net.jxta.impl.peergroup.GenericPeerGroup loadModule
INFO: Loaded privileged module : Reference Implementation of the Pipe Service (net.jxta.impl.pipe.PipeServiceImpl)
12 nov. 2007 18:02:17 net.jxta.impl.peergroup.GenericPeerGroup loadModule
INFO: Loaded privileged module : Reference Implementation of the Router Message Transport (net.jxta.impl.endpoint.router.EndpointRouter)
12 nov. 2007 18:02:17 net.jxta.impl.peergroup.GenericPeerGroup loadModule
INFO: Loaded privileged module : Always Access Service (net.jxta.impl.access.always.AlwaysAccessService)
12 nov. 2007 18:02:17 net.jxta.impl.peergroup.GenericPeerGroup loadModule
INFO: Loaded privileged module : Reference Implementation of the Rendezvous Service (net.jxta.impl.rendezvous.RendezVousServiceImpl)
12 nov. 2007 18:02:17 net.jxta.impl.peergroup.GenericPeerGroup loadModule
INFO: Loaded privileged module : Reference Implementation of the Endpoint service (net.jxta.impl.endpoint.EndpointServiceImpl)
12 nov. 2007 18:02:17 net.jxta.impl.peergroup.GenericPeerGroup loadModule
INFO: Loaded privileged module : Reference Implementation of the Peerinfo Service (net.jxta.impl.peer.PeerInfoServiceImpl)
12 nov. 2007 18:02: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)
12 nov. 2007 18:02:17 net.jxta.impl.peergroup.GenericPeerGroup loadModule
INFO: Loaded privileged module : Reference Implementation of the Resolver service (net.jxta.impl.resolver.ResolverServiceImpl)
12 nov. 2007 18:02:17 net.jxta.impl.endpoint.tls.TlsTransport <init>
INFO: Adjusting TLS connection idle timeout to 300000 millis.
12 nov. 2007 18:02:17 net.jxta.impl.endpoint.tls.TlsTransport <init>
INFO: Adjusting TLS min reconnection idle to 60000 millis.
12 nov. 2007 18:02:17 net.jxta.impl.endpoint.tls.TlsTransport <init>
INFO: Adjusting TLS maximum retry queue age to 120000 millis.
12 nov. 2007 18:02:17 net.jxta.impl.peergroup.GenericPeerGroup loadModule
INFO: Loaded privileged module : Reference Implementation of the TLS Message Transport (net.jxta.impl.endpoint.tls.TlsTransport)
12 nov. 2007 18:02:17 net.jxta.impl.peergroup.GenericPeerGroup loadModule
INFO: Loaded privileged module : Reference Implementation of the Discovery service (net.jxta.impl.discovery.DiscoveryServiceImpl)
12 nov. 2007 18:02:17 net.jxta.impl.proxy.ProxyService startApp
ATTENTION: Stalled until there is a endpoint service
12 nov. 2007 18:02:17 net.jxta.impl.endpoint.relay.RelayTransport startApp
ATTENTION: Stalled until there is an endpoint service
12 nov. 2007 18:02:17 net.jxta.impl.membership.pse.PSEMembershipService startApp
INFO: PSE Membmership Service started.
12 nov. 2007 18:02:17 net.jxta.impl.pipe.PipeServiceImpl startApp
ATTENTION: Stalled until there is an endpoint service
12 nov. 2007 18:02:17 net.jxta.impl.endpoint.router.EndpointRouter startApp
ATTENTION: Stalled until there is an endpoint service
12 nov. 2007 18:02:17 net.jxta.impl.rendezvous.RendezVousServiceImpl startApp
ATTENTION: Stalled until there is an endpoint service
12 nov. 2007 18:02:17 net.jxta.impl.endpoint.EndpointServiceImpl startApp
INFO: Endpoint Service started.
12 nov. 2007 18:02:17 net.jxta.impl.peer.PeerInfoServiceImpl startApp
ATTENTION: Stalled until there is a resolver service
12 nov. 2007 18:02:17 net.jxta.impl.endpoint.cbjx.CbJxTransport startApp
INFO: CbJxTransport started
12 nov. 2007 18:02:17 net.jxta.impl.discovery.DiscoveryServiceImpl startApp
ATTENTION: Stalled until there is a rendezvous service
12 nov. 2007 18:02:17 net.jxta.impl.proxy.ProxyService startApp
ATTENTION: Stalled until there is a discovery service
12 nov. 2007 18:02:17 net.jxta.impl.endpoint.relay.RelayTransport startApp
ATTENTION: Stalled until there is a discovery service
12 nov. 2007 18:02:17 net.jxta.impl.pipe.PipeServiceImpl startApp
ATTENTION: Stalled until there is a rendezvous service
12 nov. 2007 18:02:17 net.jxta.impl.endpoint.router.EndpointRouter startApp
ATTENTION: Endpoint Router start stalled until rendezvous service available
12 nov. 2007 18:02:17 net.jxta.impl.rendezvous.edge.EdgePeerRdvService <init>
INFO: RendezVous Service is initialized for urn:jxta:jxta-NetGroup as an Edge peer.
12 nov. 2007 18:02:17 net.jxta.impl.rendezvous.edge.EdgePeerRdvService$MonitorTask run
ATTENTION: Rendezvous connection stalled until router is started!
12 nov. 2007 18:02:17 net.jxta.impl.rendezvous.RendezVousServiceImpl startApp
INFO: Rendezvous Serivce started
12 nov. 2007 18:02:17 net.jxta.impl.discovery.DiscoveryServiceImpl beEdge
INFO: Switched to a Edge peer role.
12 nov. 2007 18:02:17 net.jxta.impl.discovery.DiscoveryServiceImpl startApp
INFO: Discovery service started
12 nov. 2007 18:02:17 net.jxta.impl.proxy.ProxyService startApp
ATTENTION: Stalled until there is a pipe service
12 nov. 2007 18:02:17 net.jxta.impl.endpoint.relay.RelayTransport startApp
ATTENTION: Stalled until there is a pipe service
12 nov. 2007 18:02:17 net.jxta.impl.cm.SrdiIndex <init>
INFO: [urn:jxta:jxta-NetGroup "NetPeerGroup"[0] / urn:jxta:jxta-WorldGroup "World PeerGroup"[2]] : Initialized pipeResolverSrdi
12 nov. 2007 18:02: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
12 nov. 2007 18:02:17 net.jxta.impl.cm.SrdiIndex <init>
INFO: [urn:jxta:jxta-NetGroup "NetPeerGroup"[0] / urn:jxta:jxta-WorldGroup "World PeerGroup"[2]] : Initialized routerSrdi
12 nov. 2007 18:02: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.
12 nov. 2007 18:02:17 net.jxta.impl.proxy.ProxyService startApp
INFO: JXME Proxy Service started.
12 nov. 2007 18:02:17 net.jxta.impl.endpoint.relay.RelayClient startClient
INFO: Started client : relay://uuid-59616261646162614E504720503250331761CF13E39D4A5BBA74C30226CE34E303
12 nov. 2007 18:02:17 net.jxta.impl.endpoint.relay.RelayTransport startApp
INFO: Relay Message Transport started
12 nov. 2007 18:02:17 net.jxta.impl.peergroup.GenericPeerGroup loadModule
INFO: Loaded module : Default Network PeerGroup reference implementation (net.jxta.impl.peergroup.ShadowPeerGroup)
JXTA Started
Waiting for a rendezvous connection
12 nov. 2007 18:02:17 net.jxta.impl.peergroup.GenericPeerGroup decRefCount
INFO: [urn:jxta:jxta-WorldGroup] GROUP REF COUNT DECCREMENTED TO: 1 by
net.jxta.peergroup.NetPeerGroupFactory.<init>(NetPeerGroupFactory.java:220)
12 nov. 2007 18:02: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)
12 nov. 2007 18:02:17 net.jxta.impl.endpoint.relay.RelayClient run
INFO: Start relay client thread
12 nov. 2007 18:02:17 net.jxta.platform.NetworkManager startNetwork
INFO: Started JXTA Network!
Connected :false
Stopping JXTA
12 nov. 2007 18:02:29 net.jxta.platform.NetworkManager stopNetwork
INFO: Stopping JXTA Network!
12 nov. 2007 18:02:29 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)
12 nov. 2007 18:02:29 net.jxta.impl.peergroup.GenericPeerGroup decRefCount
INFO: [urn:jxta:jxta-NetGroup] STOPPING UNREFERENCED GROUP
12 nov. 2007 18:02:29 net.jxta.impl.endpoint.relay.RelayClient stopClient
INFO: Stopped client : relay://uuid-59616261646162614E504720503250331761CF13E39D4A5BBA74C30226CE34E303
12 nov. 2007 18:02:29 net.jxta.impl.endpoint.relay.RelayClient run
INFO: stop client thread
12 nov. 2007 18:02:29 net.jxta.impl.endpoint.relay.RelayTransport stopApp
INFO: Relay Message Transport stopped
12 nov. 2007 18:02:29 net.jxta.impl.proxy.ProxyService stopApp
INFO: JXME Proxy Service stopped.
12 nov. 2007 18:02:29 net.jxta.impl.cm.Indexer close
INFO: Closing Indexer
12 nov. 2007 18:02:29 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.
12 nov. 2007 18:02:29 net.jxta.impl.cm.Indexer close
INFO: Closing Indexer
12 nov. 2007 18:02:29 net.jxta.impl.discovery.DiscoveryServiceImpl stopApp
INFO: Discovery service stopped.
12 nov. 2007 18:02:29 net.jxta.impl.rendezvous.RendezVousServiceImpl stopApp
INFO: Rendezvous Serivce stopped
12 nov. 2007 18:02:29 net.jxta.impl.endpoint.tls.TlsManager close
INFO: Shutting down all connections
12 nov. 2007 18:02:29 net.jxta.impl.endpoint.cbjx.CbJxTransport stopApp
INFO: CbJxTransport stopped
12 nov. 2007 18:02:29 net.jxta.impl.endpoint.EndpointServiceImpl stopApp
INFO: Endpoint Service stopped.
12 nov. 2007 18:02:29 net.jxta.impl.membership.pse.PSEMembershipService stopApp
INFO: PSE Membmership Service stopped.
12 nov. 2007 18:02:29 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)
12 nov. 2007 18:02:29 net.jxta.impl.peergroup.GenericPeerGroup decRefCount
INFO: [urn:jxta:jxta-WorldGroup] STOPPING UNREFERENCED GROUP
12 nov. 2007 18:02:29 net.jxta.impl.discovery.DiscoveryServiceImpl stopApp
INFO: Discovery service stopped.
12 nov. 2007 18:02:29 net.jxta.impl.rendezvous.RendezVousServiceImpl stopApp
INFO: Rendezvous Serivce stopped
12 nov. 2007 18:02:29 net.jxta.impl.endpoint.tcp.IncomingUnicastServer run
INFO: Server has been shut down.
12 nov. 2007 18:02:29 net.jxta.impl.endpoint.tcp.TcpTransport stopApp
INFO: Total bytes sent : 0
12 nov. 2007 18:02:29 net.jxta.impl.endpoint.tcp.TcpTransport stopApp
INFO: Total Messages sent : 0
12 nov. 2007 18:02:29 net.jxta.impl.endpoint.tcp.TcpTransport stopApp
INFO: Total bytes received : 0
12 nov. 2007 18:02:29 net.jxta.impl.endpoint.tcp.TcpTransport stopApp
INFO: Total Messages received : 0
12 nov. 2007 18:02:29 net.jxta.impl.endpoint.tcp.TcpTransport stopApp
INFO: Total connections accepted : 0
12 nov. 2007 18:02:29 net.jxta.impl.endpoint.tcp.TcpTransport stopApp
INFO: TCP Message Transport shut down.
12 nov. 2007 18:02:29 net.jxta.impl.endpoint.servlethttp.HttpMessageSender stop
INFO: HTTP Client Transport stopped.
12 nov. 2007 18:02:29 net.jxta.impl.endpoint.EndpointServiceImpl stopApp
INFO: Endpoint Service stopped.
12 nov. 2007 18:02:29 net.jxta.impl.cm.Indexer close
INFO: Closing Indexer
12 nov. 2007 18:02:29 net.jxta.impl.cm.Indexer close
INFO: Closing Indexer
12 nov. 2007 18:02:29 net.jxta.platform.NetworkManager stopNetwork
INFO: Stopped JXTA Network!
Partager