You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Goodmorning,
I am trying to run a very small scenario, where as for now my goal is to route walking as a mode. This because, when I set walking as teleportation mode, I get insanely small distances, which makes the scoring on that mode completely wrong. Just to show an example:
Now, I tried to implement the multimodal network, I changed the config_file accordingly, nonetheless this error keeps popping up:
2024-09-10T13:52:51,853 ERROR MatsimRuntimeModifications:76 Getting uncaught Exception in Thread main
com.google.inject.ProvisionException: Unable to provision, see the following errors:
[Guice/ErrorInjectingConstructor]: RuntimeException: Object is null; follow stack trace
at DefaultRaptorParametersForPerson.(DefaultRaptorParametersForPerson.java:38)
while locating DefaultRaptorParametersForPerson
at SwissRailRaptorFactory.(SwissRailRaptorFactory.java:60)
_ for 3rd parameter
at SwissRailRaptorFactory.class(SwissRailRaptorFactory.java:38)
while locating SwissRailRaptorFactory
at SwissRailRaptorRoutingModuleProvider.(SwissRailRaptorRoutingModuleProvider.java:43)
_ for 1st parameter
while locating SwissRailRaptorRoutingModuleProvider
while locating RoutingModule annotated with @nAmed("pt")
while locating RoutingModule annotated with @element(setName=,uniqueId=98, type=MAPBINDER, keyType=String)
at TripRouter.(TripRouter.java:102)
while locating TripRouter
at com.google.inject.internal.InternalProvisionException.toProvisionException(InternalProvisionException.java:251) ~[rsrc:guice-7.0.0.jar:?]
at com.google.inject.internal.InjectorImpl$1.get(InjectorImpl.java:1151) ~[rsrc:guice-7.0.0.jar:?]
at org.matsim.core.controler.PrepareForSimImpl.lambda$run$0(PrepareForSimImpl.java:197) ~[rsrc:matsim-16.0-2024w10.jar:?]
at org.matsim.core.population.algorithms.ParallelPersonAlgorithmUtils.run(ParallelPersonAlgorithmUtils.java:87) ~[rsrc:matsim-16.0-2024w10.jar:?]
at org.matsim.core.controler.PrepareForSimImpl.run(PrepareForSimImpl.java:196) ~[rsrc:matsim-16.0-2024w10.jar:?]
at org.matsim.core.controler.NewControler.prepareForSim(NewControler.java:114) ~[rsrc:matsim-16.0-2024w10.jar:?]
at org.matsim.core.controler.AbstractController$1.run(AbstractController.java:83) ~[rsrc:matsim-16.0-2024w10.jar:?]
at org.matsim.core.controler.MatsimRuntimeModifications.run(MatsimRuntimeModifications.java:70) [rsrc:matsim-16.0-2024w10.jar:?]
at org.matsim.core.controler.MatsimRuntimeModifications.run(MatsimRuntimeModifications.java:53) [rsrc:matsim-16.0-2024w10.jar:?]
at org.matsim.core.controler.AbstractController.run(AbstractController.java:92) [rsrc:matsim-16.0-2024w10.jar:?]
at org.matsim.core.controler.NewControler.run(NewControler.java:83) [rsrc:matsim-16.0-2024w10.jar:?]
at org.matsim.core.controler.Controler.run(Controler.java:259) [rsrc:matsim-16.0-2024w10.jar:?]
at org.matsim.maas.drt.RunMatsim_Dynamic.main(RunMatsim_Dynamic.java:63) [rsrc:./:?]
at jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104) ~[?:?]
at java.lang.reflect.Method.invoke(Method.java:578) ~[?:?]
at org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoader.main(JarRsrcLoader.java:61) [matsim_contern_scenario_dynamic_3.jar:?]
Caused by: java.lang.RuntimeException: Object is null; follow stack trace
at org.matsim.core.gbl.Gbl.assertNotNull(Gbl.java:214) ~[rsrc:matsim-16.0-2024w10.jar:?]
at org.matsim.pt.router.TransitRouterConfig.(TransitRouterConfig.java:123) ~[rsrc:matsim-16.0-2024w10.jar:?]
at org.matsim.pt.router.TransitRouterConfig.(TransitRouterConfig.java:106) ~[rsrc:matsim-16.0-2024w10.jar:?]
at ch.sbb.matsim.routing.pt.raptor.RaptorUtils.createParameters(RaptorUtils.java:85) ~[rsrc:matsim-16.0-2024w10.jar:?]
at ch.sbb.matsim.routing.pt.raptor.DefaultRaptorParametersForPerson.(DefaultRaptorParametersForPerson.java:39) ~[rsrc:matsim-16.0-2024w10.jar:?]
I tried with both hermes and qsim encountering the same error. I believe I am missing something in the config file, if someone can help me it would really be appriciated! :) help_small_scenario.zip
The text was updated successfully, but these errors were encountered:
Goodmorning,
I am trying to run a very small scenario, where as for now my goal is to route walking as a mode. This because, when I set walking as teleportation mode, I get insanely small distances, which makes the scoring on that mode completely wrong. Just to show an example:
Here walk mode does not provide me any distance or time, but a similar distance covered by car, which is routed, gives me:
Now, I tried to implement the multimodal network, I changed the config_file accordingly, nonetheless this error keeps popping up:
2024-09-10T13:52:51,853 ERROR MatsimRuntimeModifications:76 Getting uncaught Exception in Thread main
com.google.inject.ProvisionException: Unable to provision, see the following errors:
at DefaultRaptorParametersForPerson.(DefaultRaptorParametersForPerson.java:38)
while locating DefaultRaptorParametersForPerson
at SwissRailRaptorFactory.(SwissRailRaptorFactory.java:60)
_ for 3rd parameter
at SwissRailRaptorFactory.class(SwissRailRaptorFactory.java:38)
while locating SwissRailRaptorFactory
at SwissRailRaptorRoutingModuleProvider.(SwissRailRaptorRoutingModuleProvider.java:43)
_ for 1st parameter
while locating SwissRailRaptorRoutingModuleProvider
while locating RoutingModule annotated with @nAmed("pt")
while locating RoutingModule annotated with @element(setName=,uniqueId=98, type=MAPBINDER, keyType=String)
at TripRouter.(TripRouter.java:102)
while locating TripRouter
Learn more:
https://github.com/google/guice/wiki/ERROR_INJECTING_CONSTRUCTOR
1 error
======================
Full classname legend:
DefaultRaptorParametersForPerson: "ch.sbb.matsim.routing.pt.raptor.DefaultRaptorParametersForPerson"
Element: "com.google.inject.internal.Element"
Named: "com.google.inject.name.Named"
RoutingModule: "org.matsim.core.router.RoutingModule"
SwissRailRaptorFactory: "ch.sbb.matsim.routing.pt.raptor.SwissRailRaptorFactory"
SwissRailRaptorRoutingModuleProvider: "ch.sbb.matsim.routing.pt.raptor.SwissRailRaptorRoutingModuleProvider"
TripRouter: "org.matsim.core.router.TripRouter"
End of classname legend:
Caused by: java.lang.RuntimeException: Object is null; follow stack trace
at org.matsim.core.gbl.Gbl.assertNotNull(Gbl.java:214) ~[rsrc:matsim-16.0-2024w10.jar:?]
at org.matsim.pt.router.TransitRouterConfig.(TransitRouterConfig.java:123) ~[rsrc:matsim-16.0-2024w10.jar:?]
at org.matsim.pt.router.TransitRouterConfig.(TransitRouterConfig.java:106) ~[rsrc:matsim-16.0-2024w10.jar:?]
at ch.sbb.matsim.routing.pt.raptor.RaptorUtils.createParameters(RaptorUtils.java:85) ~[rsrc:matsim-16.0-2024w10.jar:?]
at ch.sbb.matsim.routing.pt.raptor.DefaultRaptorParametersForPerson.(DefaultRaptorParametersForPerson.java:39) ~[rsrc:matsim-16.0-2024w10.jar:?]
I tried with both hermes and qsim encountering the same error. I believe I am missing something in the config file, if someone can help me it would really be appriciated! :)
help_small_scenario.zip
The text was updated successfully, but these errors were encountered: