-
Notifications
You must be signed in to change notification settings - Fork 181
faq 285081601
by Obiora Nnene on 2018-06-02 17:32:46
My simulation fails with an error I think is from the population (please find attached the log file)
How can I resolve it?
by harisbal on 2018-06-03 00:36:22
Can you please upload the config file you're using. Seems like one of the modes is not registered as a main network mode and thus no path can be calculated
by Obiora Nnene on 2018-06-03 06:15:15
Hello Harisbal, I have uploaded the config file thanks.
by harisbal on 2018-06-03 11:16:01
Hi Obiora,
Am I right to assume that the simulated modes are pt and walk or you have more? I think that MATSim cannot create a route for the public transport network. Can you please also upload the transitSchedule.xml?
by Obiora Nnene on 2018-06-03 12:45:26
Yes Harisbal you are right, the simulated modes are pt and walk. Find attached the transitSchedule.xml file
by Kai Nagel on 2018-06-03 15:52:37
Dear Harisbal, thank you so much for chipping in, we really need more people to help us with this.
Still, let me add my own interpretation, maybe that helps.
The incriminating error message is
java.lang.NullPointerException at org.matsim.core.population.routes.RouteUtils.calcDistance(RouteUtils.java:202)
The corresponding lines of code are
if (count) {
Link l = network.getLinks().get(linkId);
dist += l.getLength(); // this is line 202
}
Thus, the link "l" cannot be looked up in the networks file (one line above 202).
So one speculation would be that you have links referenced in the transit schedule that do not exist in the network file.
You are viewing an archive of the previous MATSim Q&A site. The real site is now at https://matsim.org/faq