The new version of the XML basic are bad to use. Either find class, or is can't

Home Forums PeerfactSim Forum The new version of the XML basic are bad to use. Either find class, or is can't

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #842
    jiangcm hopepc
    Guest

    excute the gutella06.xml
    2013-01-30 11:19:58,927 WARN [DefaultConfigurator – 730]# Set variables {seed=1585565182}
    2013-01-30 11:19:58,943 WARN [DefaultConfigurator – 360]# Skip element Description
    2013-01-30 11:19:59,099 ERROR [DefaultConfigurator – 716]# java.lang.ClassNotFoundException: de.tud.kom.p2psim.impl.overlay.unstructured.heterogeneous.gnutella06.Gnutella06Factory
    de.tud.kom.p2psim.api.scenario.ConfigurationException: Failed to create configurable (this is my modify,but it is not use) de.tud.kom.p2psim.impl.overlay.unstructured.heterogeneous.gnutella06.Gnutella06Factory
    at de.tud.kom.p2psim.impl.scenario.DefaultConfigurator.createInstance(DefaultConfigurator.java:717)
    at de.tud.kom.p2psim.impl.scenario.DefaultConfigurator.createComponent(DefaultConfigurator.java:386)
    at de.tud.kom.p2psim.impl.scenario.DefaultConfigurator.configureComponent(DefaultConfigurator.java:335)
    at de.tud.kom.p2psim.impl.scenario.DefaultConfigurator.configureFirstLevel(DefaultConfigurator.java:304)
    at de.tud.kom.p2psim.impl.scenario.DefaultConfigurator.configureAll(DefaultConfigurator.java:262)
    at de.tud.kom.p2psim.impl.simengine.Simulator.configure(Simulator.java:235)
    at de.tud.kom.p2psim.impl.util.guirunner.impl.SimulationThread.run(SimulationThread.java:68)
    Caused by: java.lang.ClassNotFoundException: de.tud.kom.p2psim.impl.overlay.unstructured.heterogeneous.gnutella06.Gnutella06Factory
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Unknown Source)
    at de.tud.kom.p2psim.impl.scenario.DefaultConfigurator.createInstance(DefaultConfigurator.java:638)
    … 6 more

    excute the unstruct.xml

    2013-01-30 11:15:09,224 WARN [DefaultConfigurator – 730]# Set variables {seed=-713561404}
    2013-01-30 11:15:09,308 WARN [DefaultConfigurator – 360]# Skip element Description
    de.tud.kom.p2psim.api.scenario.ConfigurationException: Failed to set the property componentClass in de.tud.kom.p2psim.impl.scenario.CSVScenarioFactory@52287b58
    at de.tud.kom.p2psim.impl.scenario.DefaultConfigurator.configureAttributes(DefaultConfigurator.java:511)
    at de.tud.kom.p2psim.impl.scenario.DefaultConfigurator.configureComponent(DefaultConfigurator.java:343)
    at de.tud.kom.p2psim.impl.scenario.DefaultConfigurator$1.run(DefaultConfigurator.java:371)
    at de.tud.kom.p2psim.impl.scenario.DefaultConfigurator.processIfEqualStr(DefaultConfigurator.java:837)
    at de.tud.kom.p2psim.impl.scenario.DefaultConfigurator.configureIfEqualStr(DefaultConfigurator.java:367)
    at de.tud.kom.p2psim.impl.scenario.DefaultConfigurator.configureComponent(DefaultConfigurator.java:322)
    at de.tud.kom.p2psim.impl.scenario.DefaultConfigurator.configureFirstLevel(DefaultConfigurator.java:304)
    at de.tud.kom.p2psim.impl.scenario.DefaultConfigurator.configureAll(DefaultConfigurator.java:262)
    at de.tud.kom.p2psim.impl.simengine.Simulator.configure(Simulator.java:235)
    at de.tud.kom.p2psim.impl.util.guirunner.impl.SimulationThread.run(SimulationThread.java:68)
    Caused by: java.lang.IllegalArgumentException: Failed to parse class object from de.tud.kom.p2psim.impl.overlay.unstructured.gnutella.gnutella06.AbstractGnutella06Node
    at de.tud.kom.p2psim.impl.scenario.DefaultConfigurator.convertToClass(DefaultConfigurator.java:564)
    at de.tud.kom.p2psim.impl.scenario.DefaultConfigurator.convertValue(DefaultConfigurator.java:544)
    at de.tud.kom.p2psim.impl.scenario.DefaultConfigurator.configureAttributes(DefaultConfigurator.java:506)
    … 9 more
    Caused by: java.lang.ClassNotFoundException: de.tud.kom.p2psim.impl.overlay.unstructured.gnutella.gnutella06.AbstractGnutella06Node
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Unknown Source)
    at de.tud.kom.p2psim.impl.scenario.DefaultConfigurator.convertToClass(DefaultConfigurator.java:562)
    … 11 more
    and so on >….

    I want to go to simulation file block distribution, but incredibly so, who can help me

    #843
    Matthias Feldotto
    Guest

    It seems that your configuration file does not fit to the simulator version you use. The exception occurs because the defined classes of the configuration file are not found, so please check if everything is correct.

    #844
    Kalman
    Guest

    Hi, for me its seems as if your code is way outdated,

    please download the newest version:

    Please check out the master branch at Google code

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.

Comments are closed.