eclipse-sumo / sumo

Eclipse SUMO is an open source, highly portable, microscopic and continuous traffic simulation package designed to handle large networks. It allows for intermodal simulation including pedestrians and comes with a large set of tools for scenario creation.
https://eclipse.dev/sumo
Eclipse Public License 2.0
2.57k stars 1.44k forks source link

Java Traas method Vehicle.setAdaptedTravletime() 4 parameters issue #5251

Closed grazmand closed 5 years ago

grazmand commented 5 years ago

Using Java Traas method Vehicle.setAdaptedTravletime(), the following errors appear on display in eclipse and Sumo console respectively:

eclipse: Exception in thread "main" it.polito.appeal.traci.TraCIException: SUMO error for command 196: Setting travel time using 4 parameters requires the begin time as first parameter. at de.tudresden.sumo.util.Query.queryAndVerify(Query.java:87) at de.tudresden.sumo.util.Query.queryAndVerifySingle(Query.java:217) at de.tudresden.sumo.util.CommandProcessor.do_job_set(CommandProcessor.java:66) at it.polito.appeal.traci.SumoTraciConnection.do_job_set(SumoTraciConnection.java:361) at maven.traas.Main.main(Main.java: yourNumberLine)

Sumo: Error: Answered with error to command 0xc4: Setting travel time using 4 parameters requires the begin time as first parameter. Error: tcpip::Socket::recvAndCheck @ recv: peer shutdown Quitting (on error).

The errors appear despite using 5 parameters as needed instead of 4 as the error message claims.

namdre commented 5 years ago

fixed with 49fcffccc3149d06d091ee41d5875d50b7b44d85