New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Command line arguments in graphhopper.sh not working with current config-example.yml #1921
Comments
Thanks for reporting. If you want to get started, it would be best to use the latest stable release (0.13). The problem here is once again that dropwizard does not allow setting a missing (nested) property via the command line. Changing the beginning of graphhopper:
# OpenStreetMap input file
datareader.file: ""
# Local folder used by graphhopper to store data
graph.location: tmp-gh should make it work also for current master. After you change @karussell Shall we modify |
can not work with your reply .. |
but is worked with original qucikstart on my another computer(windows server 2016) ,but it is the same jdk,config_xml,osm_data |
Thats another error now. Make sure you delete the -gh folder (for example if you did not specify otherwise and used |
thanks for your help ,is worked! love you ! may i ask ,how to modify code with IDEA ? which folder should i import to idea?(just web service and a web page) |
Yes, at least if this is still a problem for dropwizard. Or should we workaround it for these two properties?
Hmmh, I think that the latest docs should always use master. But if you click on the stable 0.13 docs (here) you will get to the quick start that indicates switching to 0.13 branch, I think. But maybe something else needs improvement? |
I would do |
I think its a problem for dropwizard because the properties contain dots which indicate that there is a nested structure for dropwizard. For example using
ok |
same here. I tried it on 0.13 brach |
If you are on the 0.13 branch, please use this config file and command line parameters like e.g. For 1.0 and later the usage can change. See the documentation in: https://github.com/graphhopper/graphhopper#get-started |
@karussell When I removed the dw. prefix and used config for 0.13 version as your recommendation, the content of error is changed like below: java.lang.IllegalArgumentException: entry in encoder list not supported pt Now I am trying to run GTFS by this guideline: https://github.com/graphhopper/graphhopper/blob/master/reader-gtfs/README.md#quick-start |
It is master you need the documentation of 0.13: https://github.com/graphhopper/graphhopper/blob/0.13/reader-gtfs/README.md#quick-start |
@karussell sorry for that. The error(entry in encoder list not supported pt) would be happened when the gtfs.file option, -Dgraphhopper.gtfs.file=gtfs-vbb.zip was not included. For GTFS, the option looks like a mandatory. |
@JeongJun-Lee Can you have a look if the suggested fix / workaround applies to your problems too? #1973 |
when i first run
./graphhopper.sh -a web -i europe_germany_berlin.pbf
on my windows10 ,it is come out.`io.dropwizard.configuration.ConfigurationParsingException: config.yml has an error:
Failed to parse configuration at: graphhopper.graph; Cannot deserialize instance of
java.lang.String
out of START_OBJECT tokenat [Source: UNKNOWN; line: -1, column: -1] (through reference chain: com.graphhopper.http.GraphHopperServerConfiguration["graphhopper"]->java.util.LinkedHashMap["graph"])
Caused by: com.fasterxml.jackson.databind.exc.MismatchedInputException: Cannot deserialize instance of
java.lang.String
out of START_OBJECT tokenat [Source: UNKNOWN; line: -1, column: -1] (through reference chain: com.graphhopper.http.GraphHopperServerConfiguration["graphhopper"]->java.util.LinkedHashMap["graph"])
at com.fasterxml.jackson.databind.exc.MismatchedInputException.from(MismatchedInputException.java:63)
at com.fasterxml.jackson.databind.DeserializationContext.reportInputMismatch(DeserializationContext.java:1343)
at com.fasterxml.jackson.databind.DeserializationContext.handleUnexpectedToken(DeserializationContext.java:1139)
at com.fasterxml.jackson.databind.DeserializationContext.handleUnexpectedToken(DeserializationContext.java:1093)
at com.fasterxml.jackson.databind.deser.std.StringDeserializer.deserialize(StringDeserializer.java:63)
at com.fasterxml.jackson.databind.deser.std.StringDeserializer.deserialize(StringDeserializer.java:10)
at com.fasterxml.jackson.databind.deser.std.MapDeserializer._readAndBindStringKeyMap(MapDeserializer.java:527)
at com.fasterxml.jackson.databind.deser.std.MapDeserializer.deserialize(MapDeserializer.java:364)
at com.fasterxml.jackson.databind.deser.std.MapDeserializer.deserialize(MapDeserializer.java:29)
at com.fasterxml.jackson.databind.ObjectMapper._readValue(ObjectMapper.java:3984)
at com.fasterxml.jackson.databind.ObjectMapper.readValue(ObjectMapper.java:2300)
at com.fasterxml.jackson.core.JsonParser.readValueAs(JsonParser.java:1752)
at com.graphhopper.jackson.CmdArgsDeserializer.deserialize(CmdArgsDeserializer.java:21)
at com.graphhopper.jackson.CmdArgsDeserializer.deserialize(CmdArgsDeserializer.java:13)
at com.fasterxml.jackson.databind.deser.impl.FieldProperty.deserializeAndSet(FieldProperty.java:138)
at com.fasterxml.jackson.databind.deser.BeanDeserializer.vanillaDeserialize(BeanDeserializer.java:288)
at com.fasterxml.jackson.databind.deser.BeanDeserializer.deserialize(BeanDeserializer.java:151)
at com.fasterxml.jackson.databind.ObjectMapper._readValue(ObjectMapper.java:3984)
at com.fasterxml.jackson.databind.ObjectMapper.readValue(ObjectMapper.java:2276)
at io.dropwizard.configuration.BaseConfigurationFactory.build(BaseConfigurationFactory.java:127)
... 6 more`
The text was updated successfully, but these errors were encountered: