Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error with Deprecated 'usePersonIdForMissingVehicleId' in Multimodal Scenario #1160

Open
ArezHK opened this issue Sep 2, 2024 · 5 comments

Comments

@ArezHK
Copy link

ArezHK commented Sep 2, 2024

Hi,

Could someone please help me with this error?

"'usePersonIdForMissingVehicleId' is deprecated. It will be removed soon."

I encountered this error while running a multimodal scenario. Any guidance would be appreciated!

Complete error:

2024-09-02T14:57:47,749 INFO SwissRailRaptorData:85 Preparing data for SwissRailRaptor...
2024-09-02T14:57:47,745 WARN PrepareForSimImpl:229 'usePersonIdForMissingVehicleId' is deprecated. It will be removed soon.
2024-09-02T14:57:47,777 ERROR MatsimRuntimeModifications:76 Getting uncaught Exception in Thread main
com.google.inject.ProvisionException: Unable to provision, see the following errors:

  1. [Guice/ErrorInCustomProvider]: NullPointerException: Cannot invoke "org.matsim.api.core.v01.network.Link.getLength()" because "link" is null
    while locating SwissRailRaptorFactory
    at SwissRailRaptorRoutingModuleProvider.(SwissRailRaptorRoutingModuleProvider.java:28)
    _ for 1st parameter
    while locating SwissRailRaptorRoutingModuleProvider
    while locating RoutingModule annotated with @nAmed("pt")
    while locating RoutingModule annotated with @element(setName=,uniqueId=114, type=MAPBINDER, keyType=String)
    at TripRouter.(TripRouter.java:105)
    while locating TripRouter
@Janekdererste
Copy link
Member

Your error is not related to the "userPersonIdForMissingVehicleId" log.

The error which crashes your simulation is: NullPointerException: Cannot invoke "org.matsim.api.core.v01.network.Link.getLength() because "link" is null while locating SwissRailRaptorFactory at SwissRailRaptorRoutingModuleProvider.(SwissRailRaptorRoutingModuleProvider.java:28). Usually, this is caused due to inconsistencies in your network and your public transit schedule. I would guess, that you have a link id in your schedule, which is not present in your network.

@ArezHK
Copy link
Author

ArezHK commented Sep 4, 2024

Dear @Janekdererste,
Thank you for your response. Indeed, I modified my network and included a new mode "bicycle" for just main roads in the network and also added some totally new links specifically for that mode. The issue I'm facing is that when I use the base network without these exta bicycle paths, the simulation runs smoothly.(The new paths as additional links are connected using existing nodes). Could you please guide me on how to make the network consistent with this new mode?

@Janekdererste
Copy link
Member

Could you please provide the log file of your run, that crashes?

@ArezHK
Copy link
Author

ArezHK commented Sep 4, 2024

Yes sure!
logfile.log

@ArezHK
Copy link
Author

ArezHK commented Sep 4, 2024

All I have changed in the network is added the red links below for only allowed mode bicycle(as a new routed mode). By using the left map it works fine (just main roads have bicycle as allwed mode) but on the right it does not work (extra than main roads I also added new links with just bicycle as allowed mode).
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants