faq 110497360 - matsim-org/matsim-code-examples GitHub Wiki
by Ecaterina McCormick on 2017-07-07 09:59:55
Hi Matsim community,
Could you please advise on how can I debug the following error:
2017-07-07 07:17:31,528 ERROR ParallelPersonAlgorithmRunner$ExceptionHandler:163 Thread PersonPrepareForSim.13 died with exception while handling events.
java.lang.NullPointerException
at org.matsim.pt.router.TransitLeastCostPathTree.relaxNode(TransitLeastCostPathTree.java:285)
at org.matsim.pt.router.TransitLeastCostPathTree.expandNodeData(TransitLeastCostPathTree.java:177)
at org.matsim.pt.router.TransitLeastCostPathTree.<init>(TransitLeastCostPathTree.java:134)
at org.matsim.pt.router.TransitRouterImpl.calcRoute(TransitRouterImpl.java:137)
at org.matsim.core.router.TransitRouterWrapper.calcRoute(TransitRouterWrapper.java:82)
at org.matsim.core.router.TripRouter.calcRoute(TripRouter.java:182)
at org.matsim.core.router.PlanRouter.run(PlanRouter.java:84)
at org.matsim.core.population.algorithms.PersonPrepareForSim.run(PersonPrepareForSim.java:138)
at org.matsim.core.population.algorithms.ParallelPersonAlgorithmRunner$PersonAlgoThread.run(ParallelPersonAlgorithmRunner.java:144)
at java.lang.Thread.run(Thread.java:745)
This is happening only when I add bus journeys in the plans. The same configuration works fine with car only journeys.
TransitLeastCostPathTree.relaxNode location would indicate that there are no out links for certain nodes.
for (Link l : outNode.getOutLinks().values()) {
relaxNodeLogic(l, pendingNodes, currTime, currCost);
}
Maybe some of you experienced this before.
Thank you,
Ecaterina
by Kai Nagel on 2017-09-02 10:59:25
Hm. Normally this happens when your network has node that have no outgoing links. Running NetworkCleaner
will prevent this. At this point, I fail to see why it should work for cars only, and fail if you start using pt. But who knows. Could you please try and see if NetworkCleaner
fixes the problem?