-
Notifications
You must be signed in to change notification settings - Fork 179
faq 92274690
by makinde on 2016-10-31 17:38:53
Hi. been working on the Zutich tutorial, but get this error when the simulation gets to the 10th iteration. below is a copy of my log file:
2016-10-31 17:29:47,731 ERROR MatsimRuntimeModifications:54 Getting uncaught Exception in Thread main
java.lang.NullPointerException
at org.matsim.counts.algorithms.CountsComparisonAlgorithm.setDistanceFilter(CountsComparisonAlgorithm.java:163)
at org.matsim.counts.CountsControlerListener.notifyIterationEnds(CountsControlerListener.java:125)
at org.matsim.core.controler.ControlerListenerManagerImpl.fireControlerIterationEndsEvent(ControlerListenerManagerImpl.java:168)
at org.matsim.core.controler.AbstractController$5.run(AbstractController.java:168)
at org.matsim.core.controler.AbstractController.iterationStep(AbstractController.java:231)
at org.matsim.core.controler.AbstractController.iteration(AbstractController.java:164)
at org.matsim.core.controler.AbstractController.doIterations(AbstractController.java:121)
at org.matsim.core.controler.AbstractController.access$0(AbstractController.java:119)
at org.matsim.core.controler.AbstractController$1.run(AbstractController.java:91)
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:99)
at org.matsim.core.controler.NewControler.run(NewControler.java:79)
at org.matsim.core.controler.Controler.run(Controler.java:191)
at aaaaa.MyFirstControler.main(MyFirstControler.java:24)
2016-10-31 17:29:47,736 ERROR MatsimRuntimeModifications:60 ERROR --- This is an unexpected shutdown!
2016-10-31 17:29:47,738 ERROR MatsimRuntimeModifications:63 Shutdown possibly caused by the following Exception:
java.lang.NullPointerException
at org.matsim.counts.algorithms.CountsComparisonAlgorithm.setDistanceFilter(CountsComparisonAlgorithm.java:163)
at org.matsim.counts.CountsControlerListener.notifyIterationEnds(CountsControlerListener.java:125)
at org.matsim.core.controler.ControlerListenerManagerImpl.fireControlerIterationEndsEvent(ControlerListenerManagerImpl.java:168)
at org.matsim.core.controler.AbstractController$5.run(AbstractController.java:168)
at org.matsim.core.controler.AbstractController.iterationStep(AbstractController.java:231)
at org.matsim.core.controler.AbstractController.iteration(AbstractController.java:164)
at org.matsim.core.controler.AbstractController.doIterations(AbstractController.java:121)
at org.matsim.core.controler.AbstractController.access$0(AbstractController.java:119)
at org.matsim.core.controler.AbstractController$1.run(AbstractController.java:91)
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:99)
at org.matsim.core.controler.NewControler.run(NewControler.java:79)
at org.matsim.core.controler.Controler.run(Controler.java:191)
at aaaaa.MyFirstControler.main(MyFirstControler.java:24)
2016-10-31 17:29:47,748 ERROR MatsimRuntimeModifications:78 ERROR --- MATSim unexpectedly terminated. Please check the output or the logfile with warnings and errors for hints.
2016-10-31 17:29:47,750 ERROR MatsimRuntimeModifications:79 ERROR --- results should not be used for further analysis.
2016-10-31 17:29:47,753 ERROR MatsimRuntimeModifications:83 ERROR --- This was an unexpected shutdown! See the log file for a possible reason.
by makinde on 2016-11-03 09:37:46
Hi can anybody pls help me, i have been trying for days to figure out why my simulation of the MATSim Zurich tutorial gives me the above error at the 10th iteration. I really need help with this, as i am working with a strict deadlne
by Kai Nagel on 2016-11-03 13:36:08
Hello,
Could you all please always add the full logfile (drag-and-drop into editing box when you are writing)?
---
It looks like you are using the "distanceFilter" config setting in a way it does not work. Best just switch it off completely.
If that is not an option: One could speculate from the error message that you are inputting a node ID that the simulation does not know about.
Hope this helps, good luck
Kai
You are viewing an archive of the previous MATSim Q&A site. The real site is now at https://matsim.org/faq