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%20Sanchez's gravatar image

Javier Sanchez
70114
accept rate: 0%


maxInterval is missing in configuration.txt, Try adding maxInterval=3600 after "baseUrl=http://download.geofabrik.de/europe/spain-updates"

permanent link

answered 16 Feb '18, 07:34

Ircama's gravatar image

Ircama
41113
accept rate: 0%

That is! Thank you very much.

(18 Feb '18, 21:53) Javier Sanchez
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:

×240

question asked: 05 Feb '18, 21:29

question was seen: 916 times

last updated: 18 Feb '18, 21:53

powered by OSQA