Hello
I get java.lang.NumberFormatException: null when trying to read replication interval with Osmosis against geofabrik. My system is Ubuntu 17.10, Osmosis version 0.45 installed from apt, openjdk version "1.8.0_151". In the working directory I have this files:
$ cat ~/osm/planet/spain/configuration.txt
baseUrl=http://download.geofabrik.de/europe/spain-updates
$ cat ~/osm/planet/spain/state.txt
# original OSM minutely replication sequence number 2815550
timestamp=2018-01-26T21\:43\:02Z
sequenceNumber=1774
The command I run is:
$ osmosis --read-replication-interval workingDirectory=/home/javier/osm/planet/spain --simplify-change --write-xml-change -
feb 05, 2018 9:02:37 PM org.openstreetmap.osmosis.core.Osmosis run
INFORMACIÓN: Osmosis Version 0.45
feb 05, 2018 9:02:38 PM org.openstreetmap.osmosis.core.Osmosis run
INFORMACIÓN: Preparing pipeline.
feb 05, 2018 9:02:38 PM org.openstreetmap.osmosis.core.Osmosis run
INFORMACIÓN: Launching pipeline execution.
feb 05, 2018 9:02:38 PM org.openstreetmap.osmosis.core.Osmosis run
INFORMACIÓN: Pipeline executing, waiting for completion.
feb 05, 2018 9:02:38 PM org.openstreetmap.osmosis.core.pipeline.common.ActiveTaskManager waitForCompletion
GRAVE: Thread for task 1-read-replication-interval failed
java.lang.NumberFormatException: null
at java.lang.Integer.parseInt(Integer.java:542)
at java.lang.Integer.parseInt(Integer.java:615)
at org.openstreetmap.osmosis.replication.v0_6.impl.ReplicationDownloaderConfiguration.getMaxInterval(ReplicationDownloaderConfiguration.java:66)
at org.openstreetmap.osmosis.replication.v0_6.BaseReplicationDownloader.calculateMaximumTimestamp(BaseReplicationDownloader.java:197)
at org.openstreetmap.osmosis.replication.v0_6.BaseReplicationDownloader.download(BaseReplicationDownloader.java:223)
at org.openstreetmap.osmosis.replication.v0_6.BaseReplicationDownloader.runImpl(BaseReplicationDownloader.java:304)
at org.openstreetmap.osmosis.replication.v0_6.BaseReplicationDownloader.run(BaseReplicationDownloader.java:383)
at java.lang.Thread.run(Thread.java:748)
feb 05, 2018 9:02:38 PM org.openstreetmap.osmosis.core.Osmosis main
GRAVE: Execution aborted.
org.openstreetmap.osmosis.core.OsmosisRuntimeException: One or more tasks failed.
at org.openstreetmap.osmosis.core.pipeline.common.Pipeline.waitForCompletion(Pipeline.java:146)
at org.openstreetmap.osmosis.core.Osmosis.run(Osmosis.java:92)
at org.openstreetmap.osmosis.core.Osmosis.main(Osmosis.java:37)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchStandard(Launcher.java:330)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:238)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
at org.codehaus.classworlds.Launcher.main(Launcher.java:47)
asked
05 Feb '18, 21:29
Javier Sanchez
70●1●1●4
accept rate:
0%