-
Notifications
You must be signed in to change notification settings - Fork 179
faq 91127813
by Jishnu Narayan on 2016-10-28 11:50:19
I am trying to run a few contribution modules namely dvrp, carsharing, minibus and pt from the GUI by using the config.xml (without accessing the code). Unfortunately I am not able to do that by using the the
config.xml files given with these contributions in Maven
This is the error message from the GUI while trying to run the 'minibus' scenario:
2016-10-28 13:42:43,183 INFO MatsimXmlParser:145 starting to parse xml from file H:\git\matsim\contribs\minibus\test\input\org\matsim\contrib\minibus\integration\PControlerTest\config_corr_s1_0.xml ...
2016-10-28 13:42:43,209 INFO ConfigReader:106 using config_v1-reader.
2016-10-28 13:42:43,210 INFO MatsimXmlParser:253 Trying to load http://www.matsim.org/files/dtd/config_v1.dtd. In some cases (e.g. network interface up but no connection), this may take a bit.
2016-10-28 13:42:43,260 INFO GlobalConfigGroup:71 setting number of threads to: 4
2016-10-28 13:42:43,263 WARN PlanCalcScoreConfigGroup$ReflectiveDelegate:1219 Setting pathSizeLogitBeta different from zero is experimental. KN, Sep'08
2016-10-28 13:42:43,266 WARN PlanCalcScoreConfigGroup$ActivityParams:674 Setting minimalDuration different from zero is discouraged. It is probably implemented correctly, but there is as of now no indication that it makes the results more realistic. KN, Sep'08 This message given only once.
okt 28, 2016 1:42:43 PM com.google.inject.internal.MessageProcessor visit
INFO: An exception was caught and reported. Message: java.lang.ClassNotFoundException: org.matsim.contrib.minibus.performance.PReRoute
java.lang.RuntimeException: You specified something which looks like a class name as a strategy, but the class could not be found.
at org.matsim.core.replanning.StrategyManagerModule.install(StrategyManagerModule.java:69)
at org.matsim.core.controler.AbstractModule.configure(AbstractModule.java:113)
at com.google.inject.spi.Elements$RecordingBinder.install(Elements.java:340)
at org.matsim.core.controler.AbstractModule.install(AbstractModule.java:124)
at org.matsim.core.controler.ControlerDefaultsModule.install(ControlerDefaultsModule.java:49)
at org.matsim.core.controler.AbstractModule.configure(AbstractModule.java:113)
at com.google.inject.spi.Elements$RecordingBinder.install(Elements.java:340)
at org.matsim.core.controler.AbstractModule.install(AbstractModule.java:124)
at org.matsim.core.controler.Controler$1.install(Controler.java:183)
at org.matsim.core.controler.AbstractModule.configure(AbstractModule.java:113)
at com.google.inject.spi.Elements$RecordingBinder.install(Elements.java:340)
at com.google.inject.spi.Elements.getElements(Elements.java:110)
at com.google.inject.util.Modules$OverrideModule.configure(Modules.java:177)
at com.google.inject.AbstractModule.configure(AbstractModule.java:62)
at com.google.inject.spi.Elements$RecordingBinder.install(Elements.java:340)
at org.matsim.core.controler.AbstractModule$4.install(AbstractModule.java:241)
at org.matsim.core.controler.AbstractModule.configure(AbstractModule.java:113)
at com.google.inject.spi.Elements$RecordingBinder.install(Elements.java:340)
at com.google.inject.util.Modules$CombinedModule.configure(Modules.java:128)
at com.google.inject.spi.Elements$RecordingBinder.install(Elements.java:340)
at com.google.inject.util.Modules$CombinedModule.configure(Modules.java:128)
at com.google.inject.spi.Elements$RecordingBinder.install(Elements.java:340)
at com.google.inject.spi.Elements.getElements(Elements.java:110)
at com.google.inject.internal.InjectorShell$Builder.build(InjectorShell.java:138)
at com.google.inject.internal.InternalInjectorCreator.build(InternalInjectorCreator.java:104)
at com.google.inject.internal.InjectorImpl.createChildInjector(InjectorImpl.java:226)
at com.google.inject.internal.InjectorImpl.createChildInjector(InjectorImpl.java:233)
at org.matsim.core.controler.Injector.createInjector(Injector.java:63)
at org.matsim.core.controler.Controler.run(Controler.java:177)
at org.matsim.run.Controler.run(Controler.java:56)
at org.matsim.run.Controler.main(Controler.java:60)
Caused by: java.lang.ClassNotFoundException: org.matsim.contrib.minibus.performance.PReRoute
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 org.matsim.core.replanning.StrategyManagerModule.install(StrategyManagerModule.java:60)
... 30 more
Exception in thread "main" com.google.inject.CreationException: Unable to create injector, see the following errors:
1) An exception was caught and reported. Message: You specified something which looks like a class name as a strategy, but the class could not be found.
at org.matsim.core.controler.ControlerDefaultsModule.install(ControlerDefaultsModule.java:49) (via modules: org.matsim.core.controler.Controler$1 -> org.matsim.core.controler.ControlerDefaultsModule -> org.matsim.core.replanning.StrategyManagerModule)
1 error
at com.google.inject.internal.Errors.throwCreationExceptionIfErrorsExist(Errors.java:466)
at com.google.inject.internal.InternalInjectorCreator.initializeStatically(InternalInjectorCreator.java:155)
at com.google.inject.internal.InternalInjectorCreator.build(InternalInjectorCreator.java:107)
at com.google.inject.internal.InjectorImpl.createChildInjector(InjectorImpl.java:226)
at com.google.inject.internal.InjectorImpl.createChildInjector(InjectorImpl.java:233)
at org.matsim.core.controler.Injector.createInjector(Injector.java:63)
at org.matsim.core.controler.Controler.run(Controler.java:177)
at org.matsim.run.Controler.run(Controler.java:56)
at org.matsim.run.Controler.main(Controler.java:60)
Caused by: java.lang.RuntimeException: You specified something which looks like a class name as a strategy, but the class could not be found.
at org.matsim.core.replanning.StrategyManagerModule.install(StrategyManagerModule.java:69)
at org.matsim.core.controler.AbstractModule.configure(AbstractModule.java:113)
at com.google.inject.spi.Elements$RecordingBinder.install(Elements.java:340)
at org.matsim.core.controler.AbstractModule.install(AbstractModule.java:124)
at org.matsim.core.controler.ControlerDefaultsModule.install(ControlerDefaultsModule.java:49)
at org.matsim.core.controler.AbstractModule.configure(AbstractModule.java:113)
at com.google.inject.spi.Elements$RecordingBinder.install(Elements.java:340)
at org.matsim.core.controler.AbstractModule.install(AbstractModule.java:124)
at org.matsim.core.controler.Controler$1.install(Controler.java:183)
at org.matsim.core.controler.AbstractModule.configure(AbstractModule.java:113)
at com.google.inject.spi.Elements$RecordingBinder.install(Elements.java:340)
at com.google.inject.spi.Elements.getElements(Elements.java:110)
at com.google.inject.util.Modules$OverrideModule.configure(Modules.java:177)
at com.google.inject.AbstractModule.configure(AbstractModule.java:62)
at com.google.inject.spi.Elements$RecordingBinder.install(Elements.java:340)
at org.matsim.core.controler.AbstractModule$4.install(AbstractModule.java:241)
at org.matsim.core.controler.AbstractModule.configure(AbstractModule.java:113)
at com.google.inject.spi.Elements$RecordingBinder.install(Elements.java:340)
at com.google.inject.util.Modules$CombinedModule.configure(Modules.java:128)
at com.google.inject.spi.Elements$RecordingBinder.install(Elements.java:340)
at com.google.inject.util.Modules$CombinedModule.configure(Modules.java:128)
at com.google.inject.spi.Elements$RecordingBinder.install(Elements.java:340)
at com.google.inject.spi.Elements.getElements(Elements.java:110)
at com.google.inject.internal.InjectorShell$Builder.build(InjectorShell.java:138)
at com.google.inject.internal.InternalInjectorCreator.build(InternalInjectorCreator.java:104)
... 6 more
Caused by: java.lang.ClassNotFoundException: org.matsim.contrib.minibus.performance.PReRoute
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 org.matsim.core.replanning.StrategyManagerModule.install(StrategyManagerModule.java:60)
... 30 more
The simulation did not run properly. Error/Exit code: 1
by Kai Nagel on 2016-11-03 14:16:55
Dear Jishnu,
For the time being, it is not possible to run contribs from the GUI. It is also difficult to achieve since we are unable to test all combinatorial combinations of contribs.
So you will have to program in Java. The IMO easiest way to get there is to start from the matsim example project, see matsim.org/downloads .
As an alternative, you could try to find someone who writes a GUI for you that combines those contribs. For this, would could provide help: It is not very difficult; it will just be restricted to the exactly the combination of contribs that is programmed in.
Good luck, best wishes
Kai
by Jishnu Narayan on 2016-11-21 14:03:02
Dear Kai Nagel,
Thank you for he reply!
Jishnu Narayan
You are viewing an archive of the previous MATSim Q&A site. The real site is now at https://matsim.org/faq