Error with RoutingModule annotated with @Named("pt") was bound multiple times. #1229
-
Hello, I am setting up a scenario involving, for example, 100 agents commuting daily using public transport. I’ve generated the network.xml, transitSchedule.xml, and transitVehicles.xml files using pt2matsim with GTFS data. I'm currently working on configuring the simulation, and have prepared the corresponding config.xml file.
I received the following error message while running the simulation using the MATSim GUI: Exception in thread "main" com.google.inject.CreationException: Unable to create injector, see the following errors:
Bound at: Learn more: Any suggestions would be highly appreciated. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Try removing the line
in the routing module. You have to interpret this strictly from the passenger side: The above line will try to network-route a request by a passenger to use pt, which conflicts with the pt router (= the RAPTOR router). |
Beta Was this translation helpful? Give feedback.
-
Ah good to hear. Please see https://matsim.org/userguide chapter 11. I am not sure if I can explain it in much shorter. |
Beta Was this translation helpful? Give feedback.
Try removing the line
in the routing module. You have to interpret this strictly from the passenger side: The above line will try to network-route a request by a passenger to use pt, which conflicts with the pt router (= the RAPTOR router).