Skip to main content

Error with HelloWorld Code of JXTA.

6 replies [Last post]
ankitj
Offline
Joined: 2009-09-07

1> Code
import net.jxta.platform.NetworkManager;
import java.text.MessageFormat;
/**
* A example of starting and stopping JXTA
*/
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();
}
}
Intended output
Starting JXTA
JXTA Started
Waiting for a rendezvous connection
Connected : true
Stopping JXTA
Output with error(Exception) i 'm recieving.
Starting JXTA
Sep 8, 2009 8:51:33 AM net.jxta.platform.NetworkManager configure
INFO: Loading existing configuration. mode = EDGE
Sep 8, 2009 8:51:33 AM net.jxta.platform.NetworkManager startNetwork
INFO: Starting JXTA Network! MODE = EDGE, HOME = file:/D:/Documents%20and%20Settings/ankit/My%20Documents/JCreator%20LE/MyProjects/jxtaExample/classes/.jxta/
Sep 8, 2009 8:51:34 AM 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 HelloWorld.main(HelloWorld.java:12)
Sep 8, 2009 8:51:34 AM net.jxta.peergroup.WorldPeerGroupFactory newWorldPeerGroup
INFO: Making a new World Peer Group instance using : net.jxta.impl.peergroup.Platform
Sep 8, 2009 8:51:34 AM net.jxta.impl.cm.SrdiIndex clearSrdi
INFO: Clearing SRDI for null
Sep 8, 2009 8:51:34 AM net.jxta.impl.peergroup.GenericPeerGroup loadModule
INFO: Loaded privileged module : Always Access Service (net.jxta.impl.access.always.AlwaysAccessService)
Sep 8, 2009 8:51:34 AM net.jxta.impl.endpoint.tcp.IncomingUnicastServer openServerSocket
INFO: Server will accept connections at /0.0.0.0:9701
Sep 8, 2009 8:51:34 AM net.jxta.impl.peergroup.GenericPeerGroup loadModule
INFO: Loaded privileged module : Reference Implementation of the TCP Message Transport (net.jxta.impl.endpoint.tcp.TcpTransport)
Sep 8, 2009 8:51:34 AM net.jxta.impl.peergroup.GenericPeerGroup loadModule
INFO: Loaded privileged module : Reference Implementation of the Rendezvous Service (net.jxta.impl.rendezvous.RendezVousServiceImpl)
Sep 8, 2009 8:51:34 AM net.jxta.impl.peergroup.GenericPeerGroup loadModule
INFO: Loaded privileged module : Reference Implementation of the Peerinfo Service (net.jxta.impl.peer.PeerInfoServiceImpl)
Sep 8, 2009 8:51:34 AM net.jxta.impl.peergroup.GenericPeerGroup loadModule
INFO: Loaded privileged module : Reference Implementation of the Endpoint service (net.jxta.impl.endpoint.EndpointServiceImpl)
Sep 8, 2009 8:51:34 AM net.jxta.impl.peergroup.GenericPeerGroup loadModule
INFO: Loaded privileged module : Reference Implementation of the HTTP Message Transport (net.jxta.impl.endpoint.servlethttp.ServletHttpTransport)
Sep 8, 2009 8:51:34 AM net.jxta.impl.peergroup.GenericPeerGroup loadModule
INFO: Loaded privileged module : None Membership Service (net.jxta.impl.membership.none.NoneMembershipService)
Sep 8, 2009 8:51:34 AM net.jxta.impl.peergroup.GenericPeerGroup loadModule
INFO: Loaded privileged module : Reference Implementation of the Resolver service (net.jxta.impl.resolver.ResolverServiceImpl)
Sep 8, 2009 8:51:34 AM net.jxta.impl.peergroup.GenericPeerGroup loadModule
INFO: Loaded privileged module : Reference Implementation of the Discovery service (net.jxta.impl.discovery.DiscoveryServiceImpl)
Sep 8, 2009 8:51:34 AM net.jxta.impl.peergroup.GenericPeerGroup loadModule
INFO: Loaded privileged module : Reference Implementation of the IP Multicast Message Transport (net.jxta.impl.endpoint.mcast.McastTransport)
Sep 8, 2009 8:51:34 AM net.jxta.impl.endpoint.tcp.TcpTransport startApp
WARNING: Stalled until there is an endpoint service
Sep 8, 2009 8:51:34 AM net.jxta.impl.rendezvous.RendezVousServiceImpl startApp
WARNING: Stalled until there is an endpoint service
Sep 8, 2009 8:51:34 AM net.jxta.impl.peer.PeerInfoServiceImpl startApp
WARNING: Stalled until there is a resolver service
Sep 8, 2009 8:51:34 AM net.jxta.impl.endpoint.EndpointServiceImpl startApp
INFO: Endpoint Service started.
Sep 8, 2009 8:51:34 AM net.jxta.impl.endpoint.servlethttp.HttpMessageSender start
INFO: HTTP Client Transport started.
Sep 8, 2009 8:51:34 AM net.jxta.impl.discovery.DiscoveryServiceImpl startApp
WARNING: Stalled until there is a rendezvous service
Sep 8, 2009 8:51:34 AM net.jxta.impl.endpoint.mcast.McastTransport startApp
INFO: IP Multicast Message Transport started.
Sep 8, 2009 8:51:34 AM net.jxta.impl.endpoint.tcp.TcpTransport startApp
INFO: TCP Message Transport started.
Sep 8, 2009 8:51:34 AM net.jxta.impl.endpoint.tcp.IncomingUnicastServer run
INFO: Server is ready to accept connections
Sep 8, 2009 8:51:34 AM net.jxta.impl.endpoint.tcp.TcpTransport$MessengerSelectorThread run
INFO: MessengerSelectorThread polling started
Sep 8, 2009 8:51:34 AM net.jxta.impl.rendezvous.adhoc.AdhocPeerRdvService
INFO: RendezVous Service is initialized for urn:jxta:jxta-WorldGroup as an ad hoc peer.
Sep 8, 2009 8:51:34 AM net.jxta.impl.rendezvous.RendezVousServiceImpl startApp
INFO: Rendezvous Serivce started
Sep 8, 2009 8:51:34 AM net.jxta.impl.discovery.DiscoveryServiceImpl beEdge
INFO: Switched to a Edge peer role.
Sep 8, 2009 8:51:34 AM net.jxta.impl.discovery.DiscoveryServiceImpl startApp
INFO: Discovery service started
Sep 8, 2009 8:51:34 AM 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)
Sep 8, 2009 8:51:34 AM 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
Sep 8, 2009 8:51:34 AM 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)
Sep 8, 2009 8:51:34 AM net.jxta.impl.cm.SrdiIndex clearSrdi
INFO: Clearing SRDI for NetPeerGroup
Sep 8, 2009 8:51:34 AM net.jxta.impl.peergroup.GenericPeerGroup loadModule
INFO: Loaded privileged module : Reference Implementation of the JXME Proxy Service (net.jxta.impl.proxy.ProxyService)
Sep 8, 2009 8:51:35 AM net.jxta.impl.peergroup.GenericPeerGroup loadModule
INFO: Loaded privileged module : Reference Implementation of the Relay Message Transport (net.jxta.impl.endpoint.relay.RelayTransport)
Sep 8, 2009 8:51:35 AM net.jxta.impl.peergroup.GenericPeerGroup loadModule
INFO: Loaded privileged module : PSE Membership Service (net.jxta.impl.membership.pse.PSEMembershipService)
Sep 8, 2009 8:51:35 AM net.jxta.impl.peergroup.GenericPeerGroup loadModule
INFO: Loaded privileged module : Reference Implementation of the Pipe Service (net.jxta.impl.pipe.PipeServiceImpl)
Sep 8, 2009 8:51:35 AM net.jxta.impl.peergroup.GenericPeerGroup loadModule
INFO: Loaded privileged module : Reference Implementation of the Router Message Transport (net.jxta.impl.endpoint.router.EndpointRouter)
Sep 8, 2009 8:51:35 AM net.jxta.impl.peergroup.GenericPeerGroup loadModule
INFO: Loaded privileged module : Always Access Service (net.jxta.impl.access.always.AlwaysAccessService)
Sep 8, 2009 8:51:35 AM net.jxta.impl.peergroup.GenericPeerGroup loadModule
INFO: Loaded privileged module : Reference Implementation of the Rendezvous Service (net.jxta.impl.rendezvous.RendezVousServiceImpl)
Sep 8, 2009 8:51:35 AM net.jxta.impl.peergroup.GenericPeerGroup loadModule
INFO: Loaded privileged module : Reference Implementation of the Endpoint service (net.jxta.impl.endpoint.EndpointServiceImpl)
Sep 8, 2009 8:51:35 AM net.jxta.impl.peergroup.GenericPeerGroup loadModule
INFO: Loaded privileged module : Reference Implementation of the Peerinfo Service (net.jxta.impl.peer.PeerInfoServiceImpl)
Sep 8, 2009 8:51:35 AM net.jxta.impl.peergroup.GenericPeerGroup loadModule
INFO: Loaded privileged module : Reference Implementation of the Cryptobased-ID Message Transport (net.jxta.impl.endpoint.cbjx.CbJxTransport)
Sep 8, 2009 8:51:35 AM net.jxta.impl.peergroup.GenericPeerGroup loadModule
INFO: Loaded privileged module : Reference Implementation of the Resolver service (net.jxta.impl.resolver.ResolverServiceImpl)
Sep 8, 2009 8:51:35 AM net.jxta.impl.endpoint.tls.TlsTransport
INFO: Adjusting TLS connection idle timeout to 300000 millis.
Sep 8, 2009 8:51:35 AM net.jxta.impl.endpoint.tls.TlsTransport
INFO: Adjusting TLS min reconnection idle to 60000 millis.
Sep 8, 2009 8:51:35 AM net.jxta.impl.endpoint.tls.TlsTransport
INFO: Adjusting TLS maximum retry queue age to 120000 millis.
Sep 8, 2009 8:51:35 AM net.jxta.impl.peergroup.GenericPeerGroup loadModule
INFO: Loaded privileged module : Reference Implementation of the TLS Message Transport (net.jxta.impl.endpoint.tls.TlsTransport)
Sep 8, 2009 8:51:35 AM net.jxta.impl.peergroup.GenericPeerGroup loadModule
INFO: Loaded privileged module : Reference Implementation of the Discovery service (net.jxta.impl.discovery.DiscoveryServiceImpl)
Sep 8, 2009 8:51:35 AM net.jxta.impl.proxy.ProxyService startApp
WARNING: Stalled until there is a endpoint service
Sep 8, 2009 8:51:35 AM net.jxta.impl.endpoint.relay.RelayTransport startApp
WARNING: Stalled until there is an endpoint service
Sep 8, 2009 8:51:35 AM net.jxta.impl.membership.pse.PSEMembershipService startApp
INFO: PSE Membmership Service started.
Sep 8, 2009 8:51:35 AM net.jxta.impl.pipe.PipeServiceImpl startApp
WARNING: Stalled until there is an endpoint service
Sep 8, 2009 8:51:35 AM net.jxta.impl.endpoint.router.EndpointRouter startApp
WARNING: Stalled until there is an endpoint service
Sep 8, 2009 8:51:35 AM net.jxta.impl.rendezvous.RendezVousServiceImpl startApp
WARNING: Stalled until there is an endpoint service
Sep 8, 2009 8:51:35 AM net.jxta.impl.endpoint.EndpointServiceImpl startApp
INFO: Endpoint Service started.
Sep 8, 2009 8:51:35 AM net.jxta.impl.peer.PeerInfoServiceImpl startApp
WARNING: Stalled until there is a resolver service
Sep 8, 2009 8:51:35 AM net.jxta.impl.endpoint.cbjx.CbJxTransport startApp
INFO: CbJxTransport started
Sep 8, 2009 8:51:35 AM net.jxta.impl.discovery.DiscoveryServiceImpl startApp
WARNING: Stalled until there is a rendezvous service
Sep 8, 2009 8:51:35 AM net.jxta.impl.proxy.ProxyService startApp
WARNING: Stalled until there is a discovery service
Sep 8, 2009 8:51:35 AM net.jxta.impl.endpoint.relay.RelayTransport startApp
WARNING: Stalled until there is a discovery service
Sep 8, 2009 8:51:35 AM net.jxta.impl.pipe.PipeServiceImpl startApp
WARNING: Stalled until there is a rendezvous service
Sep 8, 2009 8:51:35 AM net.jxta.impl.endpoint.router.EndpointRouter startApp
WARNING: Endpoint Router start stalled until rendezvous service available
Sep 8, 2009 8:51:35 AM net.jxta.impl.rendezvous.adhoc.AdhocPeerRdvService
INFO: RendezVous Service is initialized for urn:jxta:jxta-NetGroup as an ad hoc peer.
Sep 8, 2009 8:51:35 AM net.jxta.impl.rendezvous.RendezVousServiceImpl startApp
INFO: Rendezvous Serivce started
Sep 8, 2009 8:51:35 AM net.jxta.impl.discovery.DiscoveryServiceImpl beEdge
INFO: Switched to a Edge peer role.
Sep 8, 2009 8:51:35 AM net.jxta.impl.discovery.DiscoveryServiceImpl startApp
INFO: Discovery service started
Sep 8, 2009 8:51:35 AM net.jxta.impl.proxy.ProxyService startApp
WARNING: Stalled until there is a pipe service
Sep 8, 2009 8:51:35 AM net.jxta.impl.endpoint.relay.RelayTransport startApp
WARNING: Stalled until there is a pipe service
Sep 8, 2009 8:51:35 AM net.jxta.impl.cm.SrdiIndex
INFO: [urn:jxta:jxta-NetGroup "NetPeerGroup"[0] / urn:jxta:jxta-WorldGroup "World PeerGroup"[2]] : Initialized pipeResolverSrdi
Sep 8, 2009 8:51:35 AM 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
Sep 8, 2009 8:51:35 AM net.jxta.impl.cm.SrdiIndex
INFO: [urn:jxta:jxta-NetGroup "NetPeerGroup"[0] / urn:jxta:jxta-WorldGroup "World PeerGroup"[2]] : Initialized routerSrdi
Sep 8, 2009 8:51:35 AM 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.
Sep 8, 2009 8:51:35 AM net.jxta.impl.proxy.ProxyService startApp
INFO: JXME Proxy Service started.
Sep 8, 2009 8:51:35 AM net.jxta.impl.endpoint.relay.RelayClient startClient
INFO: Started client : relay://uuid-59616261646162614E50472050325033647AB6CAFB8A475D844AAFC6DC959EAA03
Sep 8, 2009 8:51:35 AM net.jxta.impl.endpoint.relay.RelayClient run
INFO: Start relay client thread
Sep 8, 2009 8:51:35 AM net.jxta.impl.endpoint.relay.RelayTransport startApp
INFO: Relay Message Transport started
Sep 8, 2009 8:51:35 AM net.jxta.impl.peergroup.GenericPeerGroup loadModule
INFO: Loaded module : Default Network PeerGroup reference implementation (net.jxta.impl.peergroup.ShadowPeerGroup)
Sep 8, 2009 8:51:35 AM 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)
Sep 8, 2009 8:51:35 AM 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)
Sep 8, 2009 8:51:35 AM net.jxta.platform.NetworkManager startNetwork
INFO: Started JXTA Network!
JXTA Started
Waiting for a rendezvous connection
Connected :true
Stopping JXTA
Sep 8, 2009 8:51:35 AM net.jxta.platform.NetworkManager stopNetwork
INFO: Stopping JXTA Network!
Sep 8, 2009 8:51:35 AM 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)
Sep 8, 2009 8:51:35 AM net.jxta.impl.peergroup.GenericPeerGroup decRefCount
INFO: [urn:jxta:jxta-NetGroup] STOPPING UNREFERENCED GROUP
Sep 8, 2009 8:51:35 AM net.jxta.impl.endpoint.relay.RelayClient stopClient
INFO: Stopped client : relay://uuid-59616261646162614E50472050325033647AB6CAFB8A475D844AAFC6DC959EAA03
Sep 8, 2009 8:51:35 AM net.jxta.impl.endpoint.relay.RelayTransport stopApp
INFO: Relay Message Transport stopped
Sep 8, 2009 8:51:35 AM net.jxta.impl.proxy.ProxyService stopApp
INFO: JXME Proxy Service stopped.
Sep 8, 2009 8:51:35 AM net.jxta.impl.cm.Indexer close
INFO: Closing Indexer
Sep 8, 2009 8:51:35 AM 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.
Sep 8, 2009 8:51:35 AM net.jxta.impl.cm.Indexer close
INFO: Closing Indexer
Sep 8, 2009 8:51:35 AM net.jxta.impl.discovery.DiscoveryServiceImpl stopApp
INFO: Discovery service stopped.
Sep 8, 2009 8:51:35 AM net.jxta.impl.rendezvous.RendezVousServiceImpl stopApp
INFO: Rendezvous Serivce stopped
Sep 8, 2009 8:51:35 AM net.jxta.impl.endpoint.tls.TlsManager close
INFO: Shutting down all connections
Sep 8, 2009 8:51:35 AM net.jxta.impl.endpoint.cbjx.CbJxTransport stopApp
INFO: CbJxTransport stopped
Sep 8, 2009 8:51:35 AM net.jxta.impl.endpoint.EndpointServiceImpl stopApp
INFO: Endpoint Service stopped.
Sep 8, 2009 8:51:35 AM net.jxta.impl.membership.pse.PSEMembershipService stopApp
INFO: PSE Membmership Service stopped.
Sep 8, 2009 8:51:35 AM 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)
Sep 8, 2009 8:51:35 AM net.jxta.impl.peergroup.GenericPeerGroup decRefCount
INFO: [urn:jxta:jxta-WorldGroup] STOPPING UNREFERENCED GROUP
Sep 8, 2009 8:51:35 AM net.jxta.impl.discovery.DiscoveryServiceImpl stopApp
INFO: Discovery service stopped.
Sep 8, 2009 8:51:35 AM net.jxta.impl.rendezvous.RendezVousServiceImpl stopApp
INFO: Rendezvous Serivce stopped
Sep 8, 2009 8:51:35 AM net.jxta.impl.endpoint.tcp.IncomingUnicastServer run
INFO: Server has been shut down.
Sep 8, 2009 8:51:35 AM net.jxta.impl.endpoint.tcp.TcpTransport stopApp
INFO: Total bytes sent : 0
Sep 8, 2009 8:51:35 AM net.jxta.impl.endpoint.tcp.TcpTransport stopApp
INFO: Total Messages sent : 0
Sep 8, 2009 8:51:35 AM net.jxta.impl.endpoint.tcp.TcpTransport stopApp
INFO: Total bytes received : 0
Sep 8, 2009 8:51:35 AM net.jxta.impl.endpoint.tcp.TcpTransport stopApp
INFO: Total Messages received : 0
Sep 8, 2009 8:51:35 AM net.jxta.impl.endpoint.tcp.TcpTransport stopApp
INFO: Total connections accepted : 0
Sep 8, 2009 8:51:35 AM net.jxta.impl.endpoint.tcp.TcpTransport stopApp
INFO: TCP Message Transport shut down.
Sep 8, 2009 8:51:35 AM net.jxta.impl.endpoint.servlethttp.HttpMessageSender stop
INFO: HTTP Client Transport stopped.
Sep 8, 2009 8:51:35 AM net.jxta.impl.endpoint.EndpointServiceImpl stopApp
INFO: Endpoint Service stopped.
Sep 8, 2009 8:51:35 AM net.jxta.impl.cm.Indexer close
INFO: Closing Indexer
Sep 8, 2009 8:51:35 AM net.jxta.impl.cm.Indexer close
INFO: Closing Indexer
Sep 8, 2009 8:51:35 AM net.jxta.platform.NetworkManager stopNetwork
INFO: Stopped JXTA Network!

Other information
Similar code is able to find uuid if i am using jxta.jar api other then JXSE 2.5 (like JXSE 2.4.1) but they are not
containing net.jxta.platform.NetworkManager in jxta library

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
defrouraut
Offline
Joined: 2009-09-08

Oops! I meant the top level or main() should contain the log reset call. Sorry.

defrouraut
Offline
Joined: 2009-09-08

I think just you and I are having this conversation. I built the jxta 2.5 distribution and ran it through the debugger and verified that what's going on is jxta is looking for advertisements based on spec id's. When it can't find an advertisement based on the given id it generates a warning. Java also generates a file not found error.

If you look at the code you'll see comments from the authors about order problems that they never resolved. However the code still works, it's just sloppy.

Now, in version 2.5, jxta moved to java.util.logging (away from log4j). The logging level is set so that INFO and higher logs are printed to System.err. You can reset the logging level by importing java.util.logging and including as a first statement in the sample programs,

LogManager.getLogManager().reset();

Good luck.

defrouraut
Offline
Joined: 2009-09-08

Turns out this is probably not an error. They are trying to load an advertisment for the shell and they have not defined it properly. It's trying to load the module for the shell. It's only a warning, however, the code throws a ClassNotFoundException when the module cannot be found. Should be fixed. Annoying!

ankitj
Offline
Joined: 2009-09-07

Thanks, This have partially solved my problem. These all are not error messages,only warning.
So they would not hinder me in any application Developement??

defrouraut
Offline
Joined: 2009-09-08

Not sure, yet. I'm in the process of upgrading a 2.41 version of my application to version 2.5. I've found this "warning" in my old application when I moved from the old jxta.ext methods of configuring jxta (no longer supported). So far my old code runs the same with these warnings.

None of the current owners appear to be paying attention to this part of the code. There have been several requests for help here. No responses from the maintainers. You'll notice quite a few questions from new people going unanswered.

sivaitvlr1
Offline
Joined: 2009-04-25

these are not errors the files are being loaded from the api in the root directory thier is nothing to worry in this . the warning doesnt affect ur apllication in no time