NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum

Hi everyone.

Last night i`ve got latest "planet-latest.osm.pbf" and tried to compile files for railroads but got next error:

java -d64 -Xmx16g -XX:+UseG1GC -server -jar graphhopper-web-0.3-with-rail.jar jetty.port=9999 jetty.resourcebase=webapp config=rail.properties osmreader.osm=planet-latest.osm.pbf

Ive tried to do the same at friday and it works well, but now i got the message. Also ive tried to restart "osmupdate" but this doesn`t help. Any ideas why i got this message? Thanks in advance guys.

Jul 13, 2015 4:33:27 PM com.google.inject.internal.MessageProcessor visit

**INFO: An exception was caught and reported. Message: java.lang.IllegalArgumentException: Not a GraphHopper file! Expected 'GH' as file marker but was**

java.lang.IllegalStateException: Couldn't load graph
        at com.graphhopper.http.DefaultModule.configure(DefaultModule.java:60)
        at com.google.inject.AbstractModule.configure(AbstractModule.java:59)
        at com.google.inject.spi.Elements$RecordingBinder.install(Elements.java:223)
        at com.google.inject.AbstractModule.install(AbstractModule.java:118)
        at com.graphhopper.http.GHServer$1.configure(GHServer.java:111)
        at com.google.inject.AbstractModule.configure(AbstractModule.java:59)
        at com.google.inject.spi.Elements$RecordingBinder.install(Elements.java:223)
        at com.google.inject.spi.Elements.getElements(Elements.java:101)
        at com.google.inject.internal.InjectorShell$Builder.build(InjectorShell.java:133)
        at com.google.inject.internal.InternalInjectorCreator.build(InternalInjectorCreator.java:103)
        at com.google.inject.Guice.createInjector(Guice.java:95)
        at com.google.inject.Guice.createInjector(Guice.java:72)
        at com.google.inject.Guice.createInjector(Guice.java:62)
        at com.graphhopper.http.GHServer.start(GHServer.java:61)
        at com.graphhopper.http.GHServer.main(GHServer.java:47)

Caused by: java.lang.IllegalArgumentException: Not a GraphHopper file! Expected 'GH' as file marker but was 
        at com.graphhopper.storage.AbstractDataAccess.readHeader(AbstractDataAccess.java:118)
        at com.graphhopper.storage.MMapDataAccess.loadExisting(MMapDataAccess.java:236)
        at com.graphhopper.storage.SynchedDAWrapper.loadExisting(SynchedDAWrapper.java:141)
        at com.graphhopper.storage.GraphHopperStorage.loadExisting(GraphHopperStorage.java:1355)
        at com.graphhopper.GraphHopper.load(GraphHopper.java:679)
        at com.graphhopper.GraphHopper.importOrLoad(GraphHopper.java:557)
        at com.graphhopper.http.DefaultModule.configure(DefaultModule.java:47)
        ... 14 more

**Exception in thread "main" com.google.inject.CreationException: Guice creation errors:**

1) An exception was caught and reported. Message: Couldn't load graph
  at com.graphhopper.http.GHServer$1.configure(GHServer.java:111)

2) Explicit bindings are required and com.graphhopper.GraphHopper is not explicitly bound.
  while locating com.graphhopper.GraphHopper
    for field at com.graphhopper.http.GraphHopperServlet.hopper(GraphHopperServlet.java:45)
  at com.graphhopper.http.GHServletModule.configureServlets(GHServletModule.java:60)

3) Explicit bindings are required and com.graphhopper.util.TranslationMap is not explicitly bound.
  while locating com.graphhopper.util.TranslationMap
    for field at com.graphhopper.http.I18NServlet.map(I18NServlet.java:35)
  at com.graphhopper.http.GHServletModule.configureServlets(GHServletModule.java:54)

4) Explicit bindings are required and com.graphhopper.GraphHopper is not explicitly bound.
  while locating com.graphhopper.GraphHopper
    for field at com.graphhopper.http.InfoServlet.hopper(InfoServlet.java:39)
  at com.graphhopper.http.GHServletModule.configureServlets(GHServletModule.java:57)

**4 errors**
        at com.google.inject.internal.Errors.throwCreationExceptionIfErrorsExist(Errors.java:435)
        at com.google.inject.internal.InternalInjectorCreator.initializeStatically(InternalInjectorCreator.java:154)
        at com.google.inject.internal.InternalInjectorCreator.build(InternalInjectorCreator.java:106)
        at com.google.inject.Guice.createInjector(Guice.java:95)
        at com.google.inject.Guice.createInjector(Guice.java:72)
        at com.google.inject.Guice.createInjector(Guice.java:62)
        at com.graphhopper.http.GHServer.start(GHServer.java:61)
        at com.graphhopper.http.GHServer.main(GHServer.java:47)
Caused by: java.lang.IllegalStateException: Couldn't load graph
        at com.graphhopper.http.DefaultModule.configure(DefaultModule.java:60)
        at com.google.inject.AbstractModule.configure(AbstractModule.java:59)
        at com.google.inject.spi.Elements$RecordingBinder.install(Elements.java:223)
        at com.google.inject.AbstractModule.install(AbstractModule.java:118)
        at com.graphhopper.http.GHServer$1.configure(GHServer.java:111)
        at com.google.inject.AbstractModule.configure(AbstractModule.java:59)
        at com.google.inject.spi.Elements$RecordingBinder.install(Elements.java:223)
        at com.google.inject.spi.Elements.getElements(Elements.java:101)
        at com.google.inject.internal.InjectorShell$Builder.build(InjectorShell.java:133)
        at com.google.inject.internal.InternalInjectorCreator.build(InternalInjectorCreator.java:103)
        ... 5 more
Caused by: java.lang.IllegalArgumentException: Not a GraphHopper file! Expected 'GH' as file marker but was 
        at com.graphhopper.storage.AbstractDataAccess.readHeader(AbstractDataAccess.java:118)
        at com.graphhopper.storage.MMapDataAccess.loadExisting(MMapDataAccess.java:236)
        at com.graphhopper.storage.SynchedDAWrapper.loadExisting(SynchedDAWrapper.java:141)
        at com.graphhopper.storage.GraphHopperStorage.loadExisting(GraphHopperStorage.java:1355)
        at com.graphhopper.GraphHopper.load(GraphHopper.java:679)
        at com.graphhopper.GraphHopper.importOrLoad(GraphHopper.java:557)
        at com.graphhopper.http.DefaultModule.configure(DefaultModule.java:47)
        **... 14 more**


**ubuntu@ip-172:/gh/generator$ java -version**
java version "1.7.0_65"
OpenJDK Runtime Environment (IcedTea 2.5.3) (7u71-2.5.3-0ubuntu0.14.04.1)
OpenJDK 64-Bit Server VM (build 24.65-b04, mixed mode)

asked 13 Jul '15, 17:49

Andrey%20Logicov's gravatar image

Andrey Logicov
11113
accept rate: 0%

edited 15 Jul '15, 16:35

1

In case you do not get an answer here, you could try the graphhopper mailing list

(13 Jul '15, 19:48) escada

First, I cannot comment here so I have to answer although I have no answer ... just some hints:

  • If you want to do a reimport e.g. when your pbf updated you have to completely remove the graphhopper folder
  • Did you try with a smaller area and does this work?
  • Are you using normal HDD or SSD or some virtual filesystem?
  • Did the last import properly run through?
  • How much RAM do you have on your machine? If you are using some MMAP config make sure you leave enough RAM for the OS and do not assign all to the JVM
  • It is recommended to use the latest version 0.4 instead of 0.3, there were many bug fixes already

PS: You should proper format the stacktrace, this is a bit irritating :)

permanent link

answered 14 Jul '15, 16:51

peatar's gravatar image

peatar
3512312
accept rate: 8%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×30
×25
×21
×10

question asked: 13 Jul '15, 17:49

question was seen: 4,317 times

last updated: 15 Jul '15, 16:35

NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum