Skip to content

faq 110560987

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

Guice throwing "Unable to create injector" exception when running taxi scenario

by Shenyang Chen on 2017-07-11 03:59:46


I tried to run taxi scenario using cottbus network and its base case population input, and got exception of "unable to create injector". I've read the similar question about PT scenario. So how could I modify the population input to solve this problem? Must I define the leg modes to be taxi? or at least a part of them?

Even though the base case works fine, I don't quite understand why the output contains transit modes while all the leg definition in plans.xml is car mode.


Comments: 1


Re: Guice throwing "Unable to create injector" exception when running taxi scenario

by Michal Maciejewski on 2017-07-11 09:23:24

Hi again,

The cause is quite simple though the output I agree looks complicated. In the second red paragraph you can read this:

(...)
1) The output directory output/cottbus_taxi already exists and is not empty! Please either delete or empty the directory or configure the services via setOverwriteFileSetting() or the "overwriteFiles" parameter of the "services" config group
(...)

So you need to either clear the directory before each run, or set "overwriteFiles" to "true" in the config file.

Clone this wiki locally