Skip to main content

[jxse 2.6] startnetwork() error

1 reply [Last post]
xslou
Offline
Joined: 2010-12-29

Hi,
This is my first jxta project. I have a simple piece of code :
try {
manager = new NetworkManager(NetworkManager.ConfigMode.EDGE, managerName,ConfigurationFile.toURI());
manager.startNetwork();
} catch (Exception e) {
e.printStackTrace();
System.exit(-1);
}
and it always give this error:
java.lang.NullPointerException
at net.jxta.platform.NetworkConfigurator.load(NetworkConfigurator.java:1517)
at net.jxta.platform.NetworkManager.configure(NetworkManager.java:374)
at net.jxta.platform.NetworkManager.startNetwork(NetworkManager.java:402)
...
When I switched to jxse 2.5, things are totally fine. Can you tell me what could have caused this problem?
I downloaded jxse-2.6.jar on 12/10/2010. I am using eclipse on windows7 64bit with jre6.

thank you very much

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
gritche
Offline
Joined: 2010-12-27

Hi,
NetworkManager fail to load your configuration file. This sound like incompatibility between 2.5 and 2.6.
Did you try to flush your cache directory and remove your configuration file (platformConfig)?