Skip to content

faq 263127041

Billy Charlton edited this page Sep 5, 2018 · 2 revisions

InstantiationError

by Johan W. Joubert on 2018-04-11 12:11:13


Hi, maybe someone can explain the following. I created an instance of the matsim-example-project with its (self-contained) input files: config.xml, transitSchedule.xml

It runs perfectly fine on my MacBook, yet fails on my MacMini with the following error:

2018-04-11 13:57:49,014  INFO ControlerListenerManagerImpl:232 [it.0] all ControlerBeforeMobsimListeners called. 
 ...
 2018-04-11 13:57:49,048 ERROR AbstractController:203 Mobsim did not complete normally! afterMobsimListeners will be called anyway. java.lang.InstantiationError: org.matsim.core.mobsim.qsim.TeleportationEngine
  	at org.matsim.contrib.minibus.hook.PQSimProvider.get(PQSimProvider.java:68)
  	at org.matsim.contrib.minibus.hook.PQSimProvider.get(PQSimProvider.java:47)
  	at com.google.inject.internal.ProviderInternalFactory.provision(ProviderInternalFactory.java:81)
  	at com.google.inject.internal.BoundProviderFactory.provision(BoundProviderFactory.java:72)
  	at com.google.inject.internal.ProviderInternalFactory.circularGet(ProviderInternalFactory.java:61)
  	at com.google.inject.internal.BoundProviderFactory.get(BoundProviderFactory.java:62)
  	at com.google.inject.internal.InjectorImpl$2$1.call(InjectorImpl.java:1019)
  	at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1085)
  	at com.google.inject.internal.InjectorImpl$2.get(InjectorImpl.java:1015) 	at org.matsim.core.controler.NewControler.runMobSim(NewControler.java:111)
  	at org.matsim.core.controler.AbstractController$7.run(AbstractController.java:192)
  	at org.matsim.core.controler.AbstractController.iterationStep(AbstractController.java:224)
  	at org.matsim.core.controler.AbstractController.mobsim(AbstractController.java:188)
  	at org.matsim.core.controler.AbstractController.iteration(AbstractController.java:147)
  	at org.matsim.core.controler.AbstractController.doIterations(AbstractController.java:114)
  	at org.matsim.core.controler.AbstractController.access$000(AbstractController.java:28)
  	at org.matsim.core.controler.AbstractController$1.run(AbstractController.java:84)
  	at org.matsim.core.controler.MatsimRuntimeModifications.run(MatsimRuntimeModifications.java:48)
  	at org.matsim.core.controler.MatsimRuntimeModifications.run(MatsimRuntimeModifications.java:31)
  	at org.matsim.core.controler.AbstractController.run(AbstractController.java:92)
  	at org.matsim.core.controler.NewControler.run(NewControler.java:75)
  	at org.matsim.core.controler.Controler.run(Controler.java:202)
  	at org.matsim.minibus.RunMinibusCorridor.run(RunMinibusCorridor.java:79)
  	at org.matsim.minibus.RunMinibusCorridor.main(RunMinibusCorridor.java:52) 
 2018-04-11 13:57:49,050  INFO AbstractController$8:215 ### ITERATION 0 fires after mobsim event 
 ...

The only difference I was able to identify is the Java version: MacBook was running 1.8.0_40 and the MacMini 1.8.0_45, but I've since tried different Java versions and the error persists.


Comments: 0

Clone this wiki locally