Skip to content

faq 298450945

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

Unable to create injector for CombinedSignalsModule

by Jimmy Joseph on 2018-07-02 13:44:19


Hi All,

I am currently trying to make adaptive(LaemmerSignals) work as shown in the example https://github.com/matsim-vsp/vsp-playgrounds/blob/master/tthunig/src/main/java/scenarios/illustrative/singleCrossing/SingleCrossingScenario.java

I can get the example to work but I am trying to make it work on my own network and plans.

The changes I made were:

  • config.network().setInputFile("/home/odin/Github/MscProject/Aberdeen9_simple/network.xml");

  • config.plans().setInputFile("/home/odin/Github/MscProject/Aberdeen9_simple/plans.xml");

    Which loads my network instead of using manually created one as shown in the script.

Running this works fine. I can get OTFVis to show the network and agents carrying out their plans.

But when i "createSignals", I get "Unable to create injector, see the following errors".

As far as I know, the signalsdata and groups are generated but during the execution of the simulation something is going wrong.

I have attached my full log file and the .java file I'm editing.

A singleCrossing object is created

defineController() called:

Which calls defineScenario()

Calling defineConfig(), where network and plans are loaded.

Calling createSignals(), which creates singalgroups and data

Calling createFullyAdaptiveSingalControl()

the returned controller object is then run() which produces the NullPointer/Injection Error. If I don't call createSignals() it works fine.

Many Thanks in advance.


Comments: 2


Re: Unable to create injector for CombinedSignalsModule

by Nico Kuehnel on 2018-07-02 15:28:27

Hey Jimmy,

did you also adjust the signals to your network? Every signal refers to a specific link/lane id. Might be a reason it crashes.

Best

Nico


Re: Unable to create injector for CombinedSignalsModule

by Jimmy Joseph on 2018-07-02 21:42:30

I think I narrowed it further down to this line having some effect:

controler.addOverridingModule(signalsModule);

signalsModule is of Class CombinedSignalsModule(not found on signals-javadocs, the closest is signals.controler.SignalsModule)

Clone this wiki locally