[ProtoPeer-general] exception when turning application to multi-threaded
Status: Alpha
Brought to you by:
wojtg
From: Evangelos P. - T. <E.P...@tu...> - 2011-02-28 18:52:48
|
Hello all, I tried to turn my application in Protopeer to a multi-threaded version. I created two new threads in every peer to deal with the concurrency of my application. However I have the following exception: Exception in thread "Thread-548" java.lang.NullPointerException at java.util.TreeMap.rotateRight(TreeMap.java:2057) at java.util.TreeMap.fixAfterInsertion(TreeMap.java:2089) at java.util.TreeMap.put(TreeMap.java:559) at java.util.TreeSet.add(TreeSet.java:238) at protopeer.time.EventScheduler.enqueueEvent(EventScheduler.java:88) at protopeer.time.EventScheduler.enqueueEventArbitrary(EventScheduler.java:63) at protopeer.network.delayloss.DelayLossNetworkInterfaceFactory.sendMessage(DelayLossNetworkInterfaceFactory.java:100) at protopeer.network.delayloss.DelayLossNetworkInterface.sendMessage(DelayLossNetworkInterface.java:80) at protopeer.network.delayloss.DelayLossNetworkInterface.sendMessage(DelayLossNetworkInterface.java:103) at protopeer.Peer.sendMessage(Peer.java:283) I tried to activate the multi-threading option from the configuration file but doesn't seem to help and I also do not see more threads in the process manager created for every Timer. The number of the threads are the same. Do I miss something during in this effort? Thank you, Evangelos Evangelos Pournaras BSc MSc Ph.D. Candidate on Autonomic & Distributed Systems Section of Systems Engineering, Dept. of Multi-actor System, Delft University of Technology e.p...@tu... http://www.tudelft.nl/epournaras |