[OSM-dev] osmosis 0.32 error with planet file

Bellenger James R Mr NGA-IIG USA CIV James.R.Bellenger at nga.mil
Fri Dec 11 13:38:39 GMT 2009


> I am trying to clip out a region from the entire planet file and I am
> getting an error.
> 
> My command is:
> 
> /web/GoogleEarth/openstreetmap/osmosis/osmosis-0.32/bin/osmosis
> --read-xml file="planet-091209.osm.bz2" compressionMethod=bzip2
> inPipe.0="mypipe" --bounding-box top=-37.4201820576485
> left=144.487066931992 bottom=-38.22018205764854 right=145.587066931992
> --write-xml file="melbourne.osm" outPipe.0="mypipe"
> 
> The error message is:
> 
> Dec 11, 2009 7:10:01 AM org.openstreetmap.osmosis.core.Osmosis run
> INFO: Osmosis Version 0.32
> Dec 11, 2009 7:10:02 AM org.openstreetmap.osmosis.core.Osmosis run
> INFO: Preparing pipeline.
> Dec 11, 2009 7:10:02 AM org.openstreetmap.osmosis.core.Osmosis run
> INFO: Launching pipeline execution.
> Dec 11, 2009 7:10:02 AM org.openstreetmap.osmosis.core.Osmosis run
> INFO: Pipeline executing, waiting for completion.
> Dec 11, 2009 7:10:03 AM
> org.openstreetmap.osmosis.core.pipeline.common.ActiveTaskManager
> waitForCompletion
> SEVERE: Thread for task 1-read-xml failed
> org.openstreetmap.osmosis.core.OsmosisRuntimeException: Unable to
> parse xml file planet-091209.osm.bz2.  publicId=(null),
> systemId=(null), lineNumber=4312, columnNumber=100.
> 	at
> org.openstreetmap.osmosis.core.xml.v0_6.XmlReader.run(XmlReader.java:1
> 13)
> 	at java.lang.Thread.run(Thread.java:619)
> Caused by: org.xml.sax.SAXParseException: XML document structures must
> start and end within the same entity.
> 	at
> org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unk
> nown Source)
> 	at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown
> Source)
> 	at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown
> Source)
> 	at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown
> Source)
> 	at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown
> Source)
> 	at org.apache.xerces.impl.XMLScanner.reportFatalError(Unknown
> Source)
> 	at
> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.endEntity(Unknow
> n Source)
> 	at
> org.apache.xerces.impl.XMLDocumentScannerImpl.endEntity(Unknown
> Source)
> 	at org.apache.xerces.impl.XMLEntityManager.endEntity(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(Un
> known Source)
> 	at
> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement
> (Unknown Source)
> 	at
> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentD
> ispatcher.dispatch(Unknown Source)
> 	at
> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unk
> nown 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
> Source)
> 	at org.apache.xerces.jaxp.SAXParserImpl.parse(Unknown Source)
> 	at javax.xml.parsers.SAXParser.parse(SAXParser.java:198)
> 	at
> org.openstreetmap.osmosis.core.xml.v0_6.XmlReader.run(XmlReader.java:1
> 08)
> 	... 1 more
> Dec 11, 2009 7:10:03 AM org.openstreetmap.osmosis.core.Osmosis main
> SEVERE: Execution aborted.
> org.openstreetmap.osmosis.core.OsmosisRuntimeException: One or more
> tasks failed.
> 	at
> org.openstreetmap.osmosis.core.pipeline.common.Pipeline.waitForComplet
> ion(Pipeline.java:146)
> 	at org.openstreetmap.osmosis.core.Osmosis.run(Osmosis.java:85)
> 	at org.openstreetmap.osmosis.core.Osmosis.main(Osmosis.java:30)
> 
> I have used md5_sum to check that the file was downloaded correctly.
> 
> Based on a uname -a call my system type is
> 
> Linux giatwebstl02 2.6.16.60-0.57.1-default #1 Tue Nov 3 11:21:35 UTC
> 2009 x86_64 x86_64 x86_64 GNU/Linux
> 
> Jim Bellenger
> Imagery and Geospatial Scientist
> NGA/II-GIAT
> 314-676-0887, DSN 846-0887
> Secure 577-3543
> 




More information about the dev mailing list