Replies: 1 comment 5 replies
-
From your posted stack trace it seems like the issue originates from the
Edit: If that solves the issue could you let me know how your sumo_config.json looked beforehand? It seems like we're missing a null-check. |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I am getting the error below about a null pointer error. I think I have narrowed down that it happens in my vehicle application. I printed messages to the log at various points and it makes it to the end of my onVehicleUpdated() function, doesn't enter any other function after, and stops. From reading the documentation, I believe it is an issue with event scheduling at the end of the onVehicleUpdated function. In the Tiergarten tutorial, there are new events created at the end of onVehicleUpdated(). In other examples, this isn't done. My program worked in version 20.0 and I am now trying to get it to run in 23.0-SNAPSHOT. Should I be figuring out how to create a new event or send a time advance request at the end of this function? I don't have anything in the processEvent() function, so I don't think I should be doing this but am out of ideas for how to fix this error.
When I map my vehicles to the EventProcessingApp and EventSendingApp, it works, but this might also be because these apps are not receiving inter-vehicle messages?
Thanks
2023-03-22 02:20:33,427 INFO SequentialTimeManagement - Simulation ended after 6s of 1000s (0%) 2023-03-22 02:20:33,428 INFO SequentialTimeManagement - Started: 2023-03-22 02:20:26 2023-03-22 02:20:33,428 INFO SequentialTimeManagement - Ended: 2023-03-22 02:20:33 2023-03-22 02:20:33,430 INFO SequentialTimeManagement - Duration: 00h 00m 06.740s (RTF: 0.00) 2023-03-22 02:20:33,433 INFO SequentialTimeManagement - 2023-03-22 02:20:33,433 INFO SequentialTimeManagement - Simulation interrupted: -1 2023-03-22 02:20:33,647 ERROR MosaicStarter - Stopping simulation due to a critical error. java.lang.NullPointerException: null at org.eclipse.mosaic.fed.sumo.ambassador.AbstractSumoAmbassador.receiveInteraction(AbstractSumoAmbassador.java:1025) at org.eclipse.mosaic.fed.sumo.ambassador.AbstractSumoAmbassador.processInteractionAdvanced(AbstractSumoAmbassador.java:508) at org.eclipse.mosaic.fed.sumo.ambassador.SumoAmbassador.processInteractionAdvanced(SumoAmbassador.java:134) at org.eclipse.mosaic.fed.sumo.ambassador.AbstractSumoAmbassador.processTimeAdvanceGrant(AbstractSumoAmbassador.java:1197) at org.eclipse.mosaic.rti.api.AbstractFederateAmbassador.advanceTime(AbstractFederateAmbassador.java:110) at org.eclipse.mosaic.rti.time.SequentialTimeManagement.runSimulation(SequentialTimeManagement.java:91) at org.eclipse.mosaic.starter.MosaicSimulation.runSimulation(MosaicSimulation.java:193) at org.eclipse.mosaic.starter.MosaicStarter.execute(MosaicStarter.java:132) at org.eclipse.mosaic.starter.MosaicStarter.main(MosaicStarter.java:74)
Beta Was this translation helpful? Give feedback.
All reactions