Skip to content

Issue Running Example Project – - ErrorAstarTravelTimeProvider . #89

Description

@futuremobilitylabTAU

Hi everyone, I'm trying to run the example project you provided, but I'm encountering the following error: java.lang.RuntimeException: Travel time provider is not consistent with AstarTravelTimeProvider.

I'd appreciate any insights

Here’s my log:

"
[INFO] --- exec-maven-plugin:1.6.0:java (default-cli) @ simod ---
12:31:06 INFO Setting log filepath to: /home/gabriel/GIT_DAR/data/experiments/test//log/log.txt [cz.cvut.fel.aic.simod.OnDemandVehiclesSimulation.main()|cz.cvut.fel.aic.simod.MainModule.setLoggerFilePath:236] [2025-02-04]
12:31:06 [INFO ] (?:?) - dataFileCache open start
12:31:07 ERROR Gurobi not available, rebalancing will not be used [cz.cvut.fel.aic.simod.OnDemandVehiclesSimulation.main()|cz.cvut.fel.aic.simod.MainModule.configureNext:177] [2025-02-04]
12:31:07 [INFO ] (GraphCreator.java:80) - Loading serialized map from:/home/gabriel/GIT_DAR/simod/data/serialized/graph36c30587.ser
12:31:07 INFO Graphs imported, highway graph details: Graph [#nodes=13512, #edges=31352] [cz.cvut.fel.aic.simod.OnDemandVehiclesSimulation.main()|cz.cvut.fel.aic.agentpolis.simmodel.environment.transportnetwork.init.MapInitializer.getMap:58] [2025-02-04]
12:31:07 INFO >>> CREATING MAP [cz.cvut.fel.aic.simod.OnDemandVehiclesSimulation.main()|cz.cvut.fel.aic.agentpolis.simulator.creator.SimulationCreator.prepareSimulation:69] [2025-02-04]
12:31:07 INFO Creating instance of environment... [cz.cvut.fel.aic.simod.OnDemandVehiclesSimulation.main()|cz.cvut.fel.aic.agentpolis.simulator.creator.SimulationCreator.initEnvironment:102] [2025-02-04]
12:31:07 INFO Done. [cz.cvut.fel.aic.simod.OnDemandVehiclesSimulation.main()|cz.cvut.fel.aic.agentpolis.simulator.creator.SimulationCreator.initEnvironment:105] [2025-02-04]
12:31:07 INFO Loading distance matrix from: /home/gabriel/GIT_DAR/data/dm.csv [cz.cvut.fel.aic.simod.OnDemandVehiclesSimulation.main()|cz.cvut.fel.aic.simod.traveltimecomputation.DistanceMatrixTravelTimeProvider.loadDistanceMatrixFromCsv:102] [2025-02-04]
Loading Distance Matrix 100% │███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████│ 13512/13512 (0:00:07 / 0:00:00)
12:31:14 INFO Loading finished [cz.cvut.fel.aic.simod.OnDemandVehiclesSimulation.main()|cz.cvut.fel.aic.simod.traveltimecomputation.DistanceMatrixTravelTimeProvider.loadDistanceMatrixFromCsv:146] [2025-02-04]
12:31:14 INFO Loading cache start [cz.cvut.fel.aic.simod.OnDemandVehiclesSimulation.main()|cz.cvut.fel.aic.simod.tripUtil.TripsUtilCached.loadTripCache:136] [2025-02-04]
12:31:14 INFO Loading cache finished - 0 trips loaded [cz.cvut.fel.aic.simod.OnDemandVehiclesSimulation.main()|cz.cvut.fel.aic.simod.tripUtil.TripsUtilCached.loadTripCache:142] [2025-02-04]
12:31:14 [INFO ] (GraphCreator.java:80) - Loading serialized map from:/home/gabriel/GIT_DAR/simod/data/serialized/graph36c30587.ser
12:31:14 INFO Graphs imported, highway graph details: Graph [#nodes=13512, #edges=31352] [cz.cvut.fel.aic.simod.OnDemandVehiclesSimulation.main()|cz.cvut.fel.aic.agentpolis.simmodel.environment.transportnetwork.init.MapInitializer.getMap:58] [2025-02-04]
12:31:14 ERROR Travel time provider is not consistent with AstarTravelTimeProvider.
Time from {N(#6280) : sourceId=27405638840794137, GPS( lat=40.794137, lon=-74.056388, elevation=0)} to {N(#11367) : sourceId=27405003040702053, GPS( lat=40.702053, lon=-74.05003, elevation=0)}
AstarTravelTimeProvider: 1540023
DistanceMatrixTravelTimeProvider: 1530834 [cz.cvut.fel.aic.simod.OnDemandVehiclesSimulation.main()|cz.cvut.fel.aic.simod.OnDemandVehiclesSimulation.checkTravelTimeProvider:130] [2025-02-04]
12:31:14 ERROR Travel time provider is not consistent with AstarTravelTimeProvider.
Time from {N(#11845) : sourceId=27391401540742832, GPS( lat=40.742832, lon=-73.914015, elevation=0)} to {N(#8767) : sourceId=27400427040752646, GPS( lat=40.752646, lon=-74.00427, elevation=0)}
AstarTravelTimeProvider: 962411
DistanceMatrixTravelTimeProvider: 956665 [cz.cvut.fel.aic.simod.OnDemandVehiclesSimulation.main()|cz.cvut.fel.aic.simod.OnDemandVehiclesSimulation.checkTravelTimeProvider:130] [2025-02-04]
12:31:14 ERROR Travel time provider is not consistent with AstarTravelTimeProvider.
Time from {N(#11454) : sourceId=27387477540734640, GPS( lat=40.73464, lon=-73.874775, elevation=0)} to {N(#375) : sourceId=27400391940720869, GPS( lat=40.720869, lon=-74.003919, elevation=0)}
AstarTravelTimeProvider: 1704866
DistanceMatrixTravelTimeProvider: 1694608 [cz.cvut.fel.aic.simod.OnDemandVehiclesSimulation.main()|cz.cvut.fel.aic.simod.OnDemandVehiclesSimulation.checkTravelTimeProvider:130] [2025-02-04]
12:31:14 ERROR Travel time provider is not consistent with AstarTravelTimeProvider.
Time from {N(#8056) : sourceId=27396435640760621, GPS( lat=40.760621, lon=-73.964356, elevation=0)} to {N(#6312) : sourceId=27403462440771839, GPS( lat=40.771839, lon=-74.034624, elevation=0)}
AstarTravelTimeProvider: 880113
DistanceMatrixTravelTimeProvider: 874883 [cz.cvut.fel.aic.simod.OnDemandVehiclesSimulation.main()|cz.cvut.fel.aic.simod.OnDemandVehiclesSimulation.checkTravelTimeProvider:130] [2025-02-04]
12:31:14 ERROR Travel time provider is not consistent with AstarTravelTimeProvider.
Time from {N(#9122) : sourceId=27392076440737571, GPS( lat=40.737571, lon=-73.920764, elevation=0)} to {N(#9052) : sourceId=27395985640773644, GPS( lat=40.773644, lon=-73.959856, elevation=0)}
AstarTravelTimeProvider: 796163
DistanceMatrixTravelTimeProvider: 791431 [cz.cvut.fel.aic.simod.OnDemandVehiclesSimulation.main()|cz.cvut.fel.aic.simod.OnDemandVehiclesSimulation.checkTravelTimeProvider:130] [2025-02-04]

[WARNING]
java.lang.RuntimeException: Travel time provider is not consistent with AstarTravelTimeProvider.
at cz.cvut.fel.aic.simod.OnDemandVehiclesSimulation.checkTravelTimeProvider (OnDemandVehiclesSimulation.java:138)
at cz.cvut.fel.aic.simod.OnDemandVehiclesSimulation.run (OnDemandVehiclesSimulation.java:167)
at cz.cvut.fel.aic.simod.OnDemandVehiclesSimulation.main (OnDemandVehiclesSimulation.java:74)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:77)
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke (Method.java:569)
at org.codehaus.mojo.exec.ExecJavaMojo$1.run (ExecJavaMojo.java:282)
at java.lang.Thread.run (Thread.java:840)
[WARNING] thread Thread[GT authority factory disposer,5,cz.cvut.fel.aic.simod.OnDemandVehiclesSimulation] was interrupted but is still alive after waiting at least 15000msecs
[WARNING] thread Thread[GT authority factory disposer,5,cz.cvut.fel.aic.simod.OnDemandVehiclesSimulation] will linger despite being asked to die via interruption
[WARNING] thread Thread[WeakCollectionCleaner,8,cz.cvut.fel.aic.simod.OnDemandVehiclesSimulation] will linger despite being asked to die via interruption
[WARNING] NOTE: 2 thread(s) did not finish despite being asked to via interruption. This is not a problem with exec:java, it is a problem with the running code. Although not serious, it should be remedied.
[WARNING] Couldn't destroy threadgroup org.codehaus.mojo.exec.ExecJavaMojo$IsolatedThreadGroup[name=cz.cvut.fel.aic.simod.OnDemandVehiclesSimulation,maxpri=10]
java.lang.IllegalThreadStateException
at java.lang.ThreadGroup.destroy (ThreadGroup.java:803)
at org.codehaus.mojo.exec.ExecJavaMojo.execute (ExecJavaMojo.java:321)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:210)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
at org.apache.maven.cli.MavenCli.execute (MavenCli.java:957)
at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:289)
at org.apache.maven.cli.MavenCli.main (MavenCli.java:193)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:77)
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke (Method.java:569)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 27.602 s
[INFO] Finished at: 2025-02-04T12:31:29+02:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.6.0:java (default-cli) on project simod: An exception occured while executing the Java class. Travel time provider is not consistent with AstarTravelTimeProvider. -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException

"

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions