can't run simulation with the default file "DHT.xml"

35 views
Skip to first unread message

Eya H.D

unread,
Jan 17, 2014, 10:30:03 AM1/17/14
to peerfac...@googlegroups.com
Hi,
I'm new user of the PeerFactSim. I can run a simulation with the default DHT.xml that we find under config folder. I get the following error message.
I'm using the latest version of PeerfactSim published on www.peerfact.org : "peerfactsimkom-community-8ba30309ae38" and the Eclipse Standard/SDK Version: Kepler Service Release 1
I hope get some help.
with my best regards,
EDH
____________________________________________________________________
2014-01-17 16:21:43,396 WARN  [DefaultConfigurator - 676]# Set variables {seed=0}
org.peerfact.api.scenario.ConfigurationException: Failed to load configuration from file .\config\DHT.xml
at org.peerfact.impl.scenario.DefaultConfigurator.configureAll(DefaultConfigurator.java:212)
at org.peerfact.impl.simengine.Simulator.configure(Simulator.java:252)
at org.peerfact.impl.util.guirunner.impl.SimulationThread.run(SimulationThread.java:68)
Caused by: org.dom4j.DocumentException: Error on line 38 of document file:///C:/Users/aa/Desktop/thèse/WorkSpace/peerfactsimkom-community-8ba30309ae38/./config/DHT.xml : An include failed, and no fallback element was found. Nested exception: An include failed, and no fallback element was found.
at org.dom4j.io.SAXReader.read(SAXReader.java:482)
at org.dom4j.io.SAXReader.read(SAXReader.java:264)
at org.peerfact.impl.scenario.DefaultConfigurator.configureAll(DefaultConfigurator.java:205)
... 2 more
_____________________________________________________________________

Matthias Feldotto

unread,
Jan 18, 2014, 8:08:29 AM1/18/14
to peerfac...@googlegroups.com
Hi and welcome to PeerfactSim.KOM,

your error message says that the configurator does not find a required file. The sample configuration files take use of the include mechanism of XML (see http://en.wikipedia.org/wiki/XInclude). For example, the DHT.xml includes different files for the different components of the simulator. This enable use to reuse parts of the configuration in different configurations. All the included files for the DHT.xml can be find in the includes subfolder. Please check if you find the complete file hierarchy in your installation (compare https://code.google.com/p/peerfactsimkom-community/source/browse/#git%2Fconfig). Otherwise, for testing purposes, you can manually replace the include statements in the DHT.xml with the content of the included files.

I hope, my answer will help you to get started with the simulator!

Regards,
Matthias

Kalman

unread,
Jan 18, 2014, 9:17:41 AM1/18/14
to peerfac...@googlegroups.com
Welcome also Form my side, I hope that your issue will be solved soon.

Just an idea, I saw you habe "thèse" in your path. Sometimes I encountered Strang behavior if I use spaces or special characters in the path. My suggestion is to skip the é and use e instead.
Reply all
Reply to author
Forward
0 new messages