Skip to content

faq 111087452

Billy Charlton edited this page Sep 5, 2018 · 2 revisions

minibus example error - Unmaterialized config group: changeMode

by Rolando Armas on 2017-08-04 10:24:32


Hi Matsim Friends:

I am trying to run minibus-0.8.0 example. I have downloaded the config files from http://svn.vsp.tu-berlin.de/repos/public-svn/matsim/scenarios/countries/atlantis/minibus/. But, when I tried to run the code (RunMinibus) I get the next error message:


----------------------------------------------------------------------------------------------------------------------------------------

2017-08-04 19:12:30,765 ERROR MatsimRuntimeModifications:54 Getting uncaught Exception in Thread main

java.lang.RuntimeException: Unmaterialized config group: changeMode

    at org.matsim.core.config.consistency.UnmaterializedConfigGroupChecker.checkConsistency(UnmaterializedConfigGroupChecker.java:11)

    at org.matsim.core.config.Config.checkConsistency(Config.java:195)

    at org.matsim.core.controler.ControlerUtils.checkConfigConsistencyAndWriteToLog(ControlerUtils.java:64)

    at org.matsim.core.controler.AbstractController$1.run(AbstractController.java:93)

    at org.matsim.core.controler.MatsimRuntimeModifications.run(MatsimRuntimeModifications.java:48)

    at org.matsim.core.controler.MatsimRuntimeModifications.run(MatsimRuntimeModifications.java:31)

    at org.matsim.core.controler.AbstractController.run(AbstractController.java:103)

    at org.matsim.core.controler.NewControler.run(NewControler.java:79)

    at org.matsim.core.controler.Controler.run(Controler.java:190)

    at test.RunMinibus.main(RunMinibus.java:42)


----------------------------------------------------------------------------------------------------------------------------------------------


Could you suggest me how to solve the problem, please?


Thanks.




Comments: 1


Re: minibus example error - Unmaterialized config group: changeMode

by Kai Nagel on 2017-09-02 10:30:26

At some point in time, we started make the code complain about config groups that are not "used" (= materialized) by the code.  So the fix would be to remove the changeMode config group from your config (from the config file, or from the config in code).

If that config group contains vital information, that information needs to go somewhere else.  At some point, the changeLegMode config group got renamed into changeMode (because the strategy configured by this config group changed its name as well).  I think that in 0.8.x the changeLegMode config group was still in place, and therefore the changeMode config group did not yet exist.  Possibly, you have a config which is too "new" for the version you are using.

Clone this wiki locally