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

Hey guys,

Trying to split a planet dump from before the earthquake in Haiti, I am undergoing some trouble. I am using a .poly-file from Geofabrik and the planet dump is from the 6th January 2010. I am using the latest Osmosis version (0.43) with the following command:

osmosis --read-xml file="planet-100106.osm" --bounding-polygon file="haiti-and-domrep.poly" --write-xml file="haiti-100107.osm" -v5

Osmosis will start doing something for 5 minutes to 2 hours and then sooner or later give out the following Error. Do you have any ideas why this is happening? I am desperate!

G:\>OSM_CutHaiti.bat

G:\>osmosis --read-xml file="planet-100106.osm" --bounding-polygon file="haiti-a
nd-domrep.poly" --write-xml file="haiti-100107.osm" -v5
Oct 31, 2014 11:31:44 PM org.openstreetmap.osmosis.core.Osmosis run
INFORMATION: Osmosis Version 0.43.1
Oct 31, 2014 11:31:45 PM org.openstreetmap.osmosis.core.Osmosis run
INFORMATION: Preparing pipeline.
Oct 31, 2014 11:31:45 PM org.openstreetmap.osmosis.core.Osmosis run
INFORMATION: Launching pipeline execution.
Oct 31, 2014 11:31:45 PM org.openstreetmap.osmosis.core.Osmosis run
INFORMATION: Pipeline executing, waiting for completion.
Oct 31, 2014 11:34:49 PM org.openstreetmap.osmosis.core.pipeline.common.ActiveTa
skManager waitForCompletion
SCHWERWIEGEND: Thread for task 1-read-xml failed
org.openstreetmap.osmosis.core.OsmosisRuntimeException: Unable to read XML file
planet-100106.osm.
        at org.openstreetmap.osmosis.xml.v0_6.XmlReader.run(XmlReader.java:126)
        at java.lang.Thread.run(Unknown Source)
Caused by: java.io.IOException: Datenfehler (CRC-Pr³fung)
        at java.io.FileInputStream.readBytes(Native Method)
        at java.io.FileInputStream.read(Unknown Source)
        at org.apache.xerces.impl.XMLEntityManager$RewindableInputStream.read(Un
known Source)
        at org.apache.xerces.impl.io.UTF8Reader.read(Unknown Source)
        at org.apache.xerces.impl.XMLEntityScanner.load(Unknown Source)
        at org.apache.xerces.impl.XMLEntityScanner.scanLiteral(Unknown Source)
        at org.apache.xerces.impl.XMLScanner.scanAttributeValue(Unknown Source)
        at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanAttribute(U
nknown Source)
        at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElemen
t(Unknown Source)
        at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContent
Dispatcher.dispatch(Unknown Source)
        at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Un
known Source)
        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
        at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
        at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
        at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Sour
ce)
        at org.apache.xerces.jaxp.SAXParserImpl.parse(Unknown Source)
        at javax.xml.parsers.SAXParser.parse(Unknown Source)
        at org.openstreetmap.osmosis.xml.v0_6.XmlReader.run(XmlReader.java:111)
        ... 1 more

Oct 31, 2014 11:34:49 PM org.openstreetmap.osmosis.core.Osmosis main
SCHWERWIEGEND: Execution aborted.
org.openstreetmap.osmosis.core.OsmosisRuntimeException: One or more tasks failed
.
        at org.openstreetmap.osmosis.core.pipeline.common.Pipeline.waitForComple
tion(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(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launchStandard(Laun
cher.java:329)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.jav
a:239)
        at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(La
uncher.java:409)
        at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:
352)
        at org.codehaus.classworlds.Launcher.main(Launcher.java:47)

asked 31 Oct '14, 22:55

kartenmalergidi's gravatar image

kartenmalergidi
46225
accept rate: 0%


As Frederik pointed out this is likely a disk error

Caused by: java.io.IOException: Datenfehler (CRC-Pr³fung)

I would suggest checking your logs etc.

permanent link

answered 01 Nov '14, 08:36

SimonPoole's gravatar image

SimonPoole ♦
44.7k13326701
accept rate: 18%

2

Hey Simon, thank you for the assitance. You were correct: one of my external Hard Disks was spoiled causing the mistake.

(09 Nov '14, 16:42) kartenmalergidi
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:

×293
×252
×25
×11

question asked: 31 Oct '14, 22:55

question was seen: 4,528 times

last updated: 09 Nov '14, 16:42

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