Skip to content

faq 36765717

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

File not found error

by Kai Nagel on 2015-10-17 10:06:46


I'm taking the 2015 TU-Berlin tutorial. In the first lesson, the GUI starts but when but when I tried to to open the ...input/config.xml file I get this error:

" WARN PlanCalcScoreConfigGroup$ReflectiveDelegate:972 Setting pathSizeLogitBeta different from zero is experimental.  KN, Sep'08 "

Subsequently I get this exception when I click the run matsim button:

 
2015-10-16 21:23:59,671  INFO Gbl:57 JVM: 1.8.0_60; Oracle Corporation; mixed mode; 64-bit
 
2015-10-16 21:23:59,673  INFO Gbl:61 OS: Windows 10; 10.0; amd64
 
2015-10-16 21:23:59,674  INFO Gbl:64 CPU cores: 8
 
2015-10-16 21:23:59,675  INFO Gbl:65 max. Memory: 910.5MB (954728448B)
 
2015-10-16 21:23:59,676  INFO Gbl:103 MATSim-Build: r33444 (2015-06-12 17:02:07)
 
2015-10-16 21:23:59,677  INFO AbstractController:102 Used Controler-Class: org.matsim.core.controler.Controler
 
2015-10-16 21:23:59,736  INFO MatsimXmlParser:145 starting to parse xml from file C:\Users\Obiora Nnene\Desktop\MATSimTutorial\tutor3\input\config.xml ...
 
2015-10-16 21:23:59,758  INFO MatsimConfigReader:106 using config_v1-reader.
 
2015-10-16 21:23:59,758  INFO MatsimXmlParser:253 Trying to loadhttp://www.matsim.org/files/dtd/config_v1.dtd. In some cases (e.g. network interface up but no connection), this may take a bit.
 
2015-10-16 21:24:00,176  INFO GlobalConfigGroup:71 setting number of threads to: 4
 
2015-10-16 21:24:00,192  WARN PlanCalcScoreConfigGroup$ReflectiveDelegate:972 Setting pathSizeLogitBeta different from zero is experimental.  KN, Sep'08
 
2015-10-16 21:24:00,268  INFO ScenarioLoaderImpl:136 loading scenario from base directory: C:\Users\Obiora Nnene\Desktop\MATSimTutorial\tutor3\input\
 
2015-10-16 21:24:00,268  INFO ScenarioLoaderImpl:171 loading network from ./input/network.xml
 
2015-10-16 21:24:00,269  INFO MatsimXmlParser:145 starting to parse xml from file ./input/network.xml ...
 
Exception in thread "main" org.matsim.core.utils.io.UncheckedIOException: java.io.FileNotFoundException: ./input/network.xml
 
at org.matsim.core.utils.io.IOUtils.getBufferedReader(IOUtils.java:125)
 
at org.matsim.core.utils.io.IOUtils.getBufferedReader(IOUtils.java:72)
 
at org.matsim.core.utils.io.MatsimXmlParser.parse(MatsimXmlParser.java:147)
 
at org.matsim.core.scenario.ScenarioLoaderImpl.loadNetwork(ScenarioLoaderImpl.java:177)
 
at org.matsim.core.scenario.ScenarioLoaderImpl.loadScenario(ScenarioLoaderImpl.java:137)
 
at org.matsim.core.scenario.ScenarioLoaderImpl.loadScenario(ScenarioLoaderImpl.java:78)
 
at org.matsim.core.scenario.ScenarioUtils.loadScenario(ScenarioUtils.java:60)
 
at org.matsim.core.controler.Controler.<init>(Controler.java:196)
 
at org.matsim.core.controler.Controler.<init>(Controler.java:160)
 
at org.matsim.run.Controler.<init>(Controler.java:37)
 
at org.matsim.run.Controler.main(Controler.java:60)
 
Caused by: java.io.FileNotFoundException: ./input/network.xml
 
... 11 more


I will appreciate any clues on how to correct the problem.

 -- 

 Obiora .A. Nnene

Comments: 1


Re: File not found error

by Kai Nagel on 2015-10-17 10:19:34

(1) The fatal error is the last, "java.io.FileNotFoundException: ./input/network.xml".

(2) From your logfile, it looks like your config file is in directory 

C:\Users\Obiora Nnene\Desktop\MATSimTutorial\tutor3\input\

Accordingly, network.xml should be under

C:\Users\Obiora Nnene\Desktop\MATSimTutorial\tutor3\input\input\network.xml

Note the double "input\input".  If your network.xml is not at that location, you have at least the following options:

  • move it there.  If necessary, make the necessary directories
  • instead move config.xml into the right place
  • or instead change config.xml accordingly

Note that the file that comes from the downloaded zip directory in fact does that right (all files are in same directory, as denoted in config.xml).

Clone this wiki locally