Skip to content

faq 109286847

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

ERROR QSim:317 got exception while cleaning up

by makinde on 2017-05-09 14:05:24


Hi,

i am presently trying to simulate a train Public transport, and i keep getting this error:

ERROR QSim:317 got exception while cleaning up

when its about to mop up after iteration 0.


Pls can someone help? this is the full error

........2017-05-09 14:37:12,966 ERROR QSim:317 got exception while cleaning up
java.lang.NullPointerException
at org.matsim.core.mobsim.qsim.qnetsimengine.QNetsimEngine.afterSim(QNetsimEngine.java:248)
at org.matsim.core.mobsim.qsim.QSim.cleanupSim(QSim.java:314)
at org.matsim.core.mobsim.qsim.QSim.run(QSim.java:243)
at org.matsim.core.controler.NewControler.runMobSim(NewControler.java:120)
at org.matsim.core.controler.AbstractController$8.run(AbstractController.java:199)
at org.matsim.core.controler.AbstractController.iterationStep(AbstractController.java:231)
at org.matsim.core.controler.AbstractController.mobsim(AbstractController.java:195)
at org.matsim.core.controler.AbstractController.iteration(AbstractController.java:154)
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 aaTransit.MyFirstControler.main(MyFirstControler.java:24)
2017-05-09 14:37:12,970 ERROR AbstractController:210 Mobsim did not complete normally! afterMobsimListeners will be called anyway.
java.lang.NullPointerException
at org.matsim.core.mobsim.qsim.pt.AbstractTransitDriverAgent$NetworkRouteWrapper.getStartLinkId(AbstractTransitDriverAgent.java:415)
at org.matsim.core.mobsim.qsim.pt.TransitDriverAgentImpl$PlanBuilder.addTrip(TransitDriverAgentImpl.java:66)
at org.matsim.core.mobsim.qsim.pt.TransitDriverAgentImpl.<init>(TransitDriverAgentImpl.java:105)
at org.matsim.core.mobsim.qsim.pt.DefaultTransitDriverAgentFactory.createTransitDriver(DefaultTransitDriverAgentFactory.java:42)
at org.matsim.core.mobsim.qsim.pt.TransitQSimEngine.createAndScheduleVehicleAndDriver(TransitQSimEngine.java:153)
at org.matsim.core.mobsim.qsim.pt.TransitQSimEngine.createVehiclesAndDriversWithUmlaeufe(TransitQSimEngine.java:129)
at org.matsim.core.mobsim.qsim.pt.TransitQSimEngine.insertAgentsIntoMobsim(TransitQSimEngine.java:216)
at org.matsim.core.mobsim.qsim.QSim.createAgents(QSim.java:274)
at org.matsim.core.mobsim.qsim.QSim.prepareSim(QSim.java:259)
at org.matsim.core.mobsim.qsim.QSim.run(QSim.java:220)
at org.matsim.core.controler.NewControler.runMobSim(NewControler.java:120)
at org.matsim.core.controler.AbstractController$8.run(AbstractController.java:199)
at org.matsim.core.controler.AbstractController.iterationStep(AbstractController.java:231)
at org.matsim.core.controler.AbstractController.mobsim(AbstractController.java:195)
at org.matsim.core.controler.AbstractController.iteration(AbstractController.java:154)
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 aaTransit.MyFirstControler.main(MyFirstControler.java:24)
2017-05-09 14:37:12,989 INFO AbstractController$6:222 ### ITERATION 0 fires after mobsim event
2017-05-09 14:37:12,992 INFO ControlerListenerManagerImpl:243 calling notifyAfterMobsim on org.matsim.core.controler.corelisteners.EventsHandlingImpl
2017-05-09 14:37:12,994 INFO ControlerListenerManagerImpl:248 calling notifyAfterMobsim on org.matsim.analysis.LegTimesControlerListener
2017-05-09 14:37:12,994 INFO Gbl:185 Thread performance: Thread=class org.matsim.core.events.SimStepParallelEventsManagerImpl$ProcessEventsRunnable0 cpu-time=0.0sec
2017-05-09 14:37:13,001 INFO LegTimesControlerListener:50 [0] average trip (probably: leg) duration is: 0 seconds = 00:00:00
2017-05-09 14:37:13,003 INFO ControlerListenerManagerImpl:248 calling notifyAfterMobsim on null
2017-05-09 14:37:13,004 INFO ControlerListenerManagerImpl:251 [it.0] all ControlerAfterMobsimListeners called.
2017-05-09 14:37:13,005 ERROR MatsimRuntimeModifications:54 Getting uncaught Exception in Thread main
java.lang.NullPointerException
at org.matsim.core.mobsim.qsim.pt.AbstractTransitDriverAgent$NetworkRouteWrapper.getStartLinkId(AbstractTransitDriverAgent.java:415)
at org.matsim.core.mobsim.qsim.pt.TransitDriverAgentImpl$PlanBuilder.addTrip(TransitDriverAgentImpl.java:66)
at org.matsim.core.mobsim.qsim.pt.TransitDriverAgentImpl.<init>(TransitDriverAgentImpl.java:105)
at org.matsim.core.mobsim.qsim.pt.DefaultTransitDriverAgentFactory.createTransitDriver(DefaultTransitDriverAgentFactory.java:42)
at org.matsim.core.mobsim.qsim.pt.TransitQSimEngine.createAndScheduleVehicleAndDriver(TransitQSimEngine.java:153)
at org.matsim.core.mobsim.qsim.pt.TransitQSimEngine.createVehiclesAndDriversWithUmlaeufe(TransitQSimEngine.java:129)
at org.matsim.core.mobsim.qsim.pt.TransitQSimEngine.insertAgentsIntoMobsim(TransitQSimEngine.java:216)
at org.matsim.core.mobsim.qsim.QSim.createAgents(QSim.java:274)
at org.matsim.core.mobsim.qsim.QSim.prepareSim(QSim.java:259)
at org.matsim.core.mobsim.qsim.QSim.run(QSim.java:220)
at org.matsim.core.controler.NewControler.runMobSim(NewControler.java:120)
at org.matsim.core.controler.AbstractController$8.run(AbstractController.java:199)
at org.matsim.core.controler.AbstractController.iterationStep(AbstractController.java:231)
at org.matsim.core.controler.AbstractController.mobsim(AbstractController.java:195)
at org.matsim.core.controler.AbstractController.iteration(AbstractController.java:154)
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 aaTransit.MyFirstControler.main(MyFirstControler.java:24)
2017-05-09 14:37:13,007 INFO MatsimRuntimeModifications:58 S H U T D O W N --- start shutdown.
2017-05-09 14:37:13,008 ERROR MatsimRuntimeModifications:60 ERROR --- This is an unexpected shutdown!
2017-05-09 14:37:13,010 ERROR MatsimRuntimeModifications:63 Shutdown possibly caused by the following Exception:
java.lang.NullPointerException
at org.matsim.core.mobsim.qsim.pt.AbstractTransitDriverAgent$NetworkRouteWrapper.getStartLinkId(AbstractTransitDriverAgent.java:415)
at org.matsim.core.mobsim.qsim.pt.TransitDriverAgentImpl$PlanBuilder.addTrip(TransitDriverAgentImpl.java:66)
at org.matsim.core.mobsim.qsim.pt.TransitDriverAgentImpl.<init>(TransitDriverAgentImpl.java:105)
at org.matsim.core.mobsim.qsim.pt.DefaultTransitDriverAgentFactory.createTransitDriver(DefaultTransitDriverAgentFactory.java:42)
at org.matsim.core.mobsim.qsim.pt.TransitQSimEngine.createAndScheduleVehicleAndDriver(TransitQSimEngine.java:153)
at org.matsim.core.mobsim.qsim.pt.TransitQSimEngine.createVehiclesAndDriversWithUmlaeufe(TransitQSimEngine.java:129)
at org.matsim.core.mobsim.qsim.pt.TransitQSimEngine.insertAgentsIntoMobsim(TransitQSimEngine.java:216)
at org.matsim.core.mobsim.qsim.QSim.createAgents(QSim.java:274)
at org.matsim.core.mobsim.qsim.QSim.prepareSim(QSim.java:259)
at org.matsim.core.mobsim.qsim.QSim.run(QSim.java:220)
at org.matsim.core.controler.NewControler.runMobSim(NewControler.java:120)
at org.matsim.core.controler.AbstractController$8.run(AbstractController.java:199)
at org.matsim.core.controler.AbstractController.iterationStep(AbstractController.java:231)
at org.matsim.core.controler.AbstractController.mobsim(AbstractController.java:195)
at org.matsim.core.controler.AbstractController.iteration(AbstractController.java:154)
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 aaTransit.MyFirstControler.main(MyFirstControler.java:24)
2017-05-09 14:37:13,013 INFO ControlerListenerManagerImpl:121 calling notifyShutdown on org.matsim.core.controler.corelisteners.EventsHandlingImpl
2017-05-09 14:37:13,016 INFO ControlerListenerManagerImpl:121 calling notifyShutdown on org.matsim.core.controler.corelisteners.DumpDataAtEndImpl
2017-05-09 14:37:13,017 INFO ControlerListenerManagerImpl:126 calling notifyShutdown on org.matsim.analysis.ScoreStatsControlerListener
2017-05-09 14:37:13,021 INFO ControlerListenerManagerImpl:126 calling notifyShutdown on org.matsim.analysis.TravelDistanceStatsControlerListener
2017-05-09 14:37:13,024 INFO ControlerListenerManagerImpl:129 all ControlerShutdownListeners called.
2017-05-09 14:37:13,025 ERROR MatsimRuntimeModifications:78 ERROR --- MATSim unexpectedly terminated. Please check the output or the logfile with warnings and errors for hints.
2017-05-09 14:37:13,027 ERROR MatsimRuntimeModifications:79 ERROR --- results should not be used for further analysis.
2017-05-09 14:37:13,029 INFO MatsimRuntimeModifications:81 S H U T D O W N --- shutdown completed.
2017-05-09 14:37:13,030 ERROR MatsimRuntimeModifications:83 ERROR --- This was an unexpected shutdown! See the log file for a possible reason.
Exception in thread "main" java.lang.NullPointerException
at org.matsim.core.mobsim.qsim.pt.AbstractTransitDriverAgent$NetworkRouteWrapper.getStartLinkId(AbstractTransitDriverAgent.java:415)
at org.matsim.core.mobsim.qsim.pt.TransitDriverAgentImpl$PlanBuilder.addTrip(TransitDriverAgentImpl.java:66)
at org.matsim.core.mobsim.qsim.pt.TransitDriverAgentImpl.<init>(TransitDriverAgentImpl.java:105)
at org.matsim.core.mobsim.qsim.pt.DefaultTransitDriverAgentFactory.createTransitDriver(DefaultTransitDriverAgentFactory.java:42)
at org.matsim.core.mobsim.qsim.pt.TransitQSimEngine.createAndScheduleVehicleAndDriver(TransitQSimEngine.java:153)
at org.matsim.core.mobsim.qsim.pt.TransitQSimEngine.createVehiclesAndDriversWithUmlaeufe(TransitQSimEngine.java:129)
at org.matsim.core.mobsim.qsim.pt.TransitQSimEngine.insertAgentsIntoMobsim(TransitQSimEngine.java:216)
at org.matsim.core.mobsim.qsim.QSim.createAgents(QSim.java:274)
at org.matsim.core.mobsim.qsim.QSim.prepareSim(QSim.java:259)
at org.matsim.core.mobsim.qsim.QSim.run(QSim.java:220)
at org.matsim.core.controler.NewControler.runMobSim(NewControler.java:120)
at org.matsim.core.controler.AbstractController$8.run(AbstractController.java:199)
at org.matsim.core.controler.AbstractController.iterationStep(AbstractController.java:231)
at org.matsim.core.controler.AbstractController.mobsim(AbstractController.java:195)
at org.matsim.core.controler.AbstractController.iteration(AbstractController.java:154)
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 aaTransit.MyFirstControler.main(MyFirstControler.java:24)




Comments: 0

Clone this wiki locally