|
View:
New views
4 Messages
—
Rating Filter:
Alert me
|
|
|
Osmosis on Australia extractHi,
I'm trying to load the Australian OSM extract found here: http://www.osmaustralia.org/osmausextract.php Into a MySQL database using Osmosis. The failure (short version here, long below signature) is: Unable to parse xml file /home/richard/Desktop/australia.osm. publicId=(null), systemId=(null), lineNumber=8043380, columnNumber=1. at com.bretth.osmosis.core.xml.v0_5.XmlReader.run(XmlReader.java:114) 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. Any ideas? Richard SEVERE: Thread for task 1-read-xml failed com.bretth.osmosis.core.OsmosisRuntimeException: Unable to parse xml file /home/richard/Desktop/australia.osm. publicId=(null), systemId=(null), lineNumber=8043380, columnNumber=1. at com.bretth.osmosis.core.xml.v0_5.XmlReader.run(XmlReader.java:114) 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 com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:195) at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalError(ErrorHandlerWrapper.java:174) at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:388) at com.sun.org.apache.xerces.internal.impl.XMLScanner.reportFatalError(XMLScanner.java:1411) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.endEntity(XMLDocumentFragmentScannerImpl.java:902) at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.endEntity(XMLDocumentScannerImpl.java:605) at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.endEntity(XMLEntityManager.java:1393) at com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.load(XMLEntityScanner.java:1763) at com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.skipChar(XMLEntityScanner.java:1416) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2784) at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:648) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:510) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:807) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737) at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:107) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1205) at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:522) at javax.xml.parsers.SAXParser.parse(SAXParser.java:395) at javax.xml.parsers.SAXParser.parse(SAXParser.java:198) at com.bretth.osmosis.core.xml.v0_5.XmlReader.run(XmlReader.java:109) ... 1 more Nov 9, 2008 8:07:47 AM com.bretth.osmosis.core.Osmosis main SEVERE: Execution aborted. com.bretth.osmosis.core.OsmosisRuntimeException: One or more tasks failed. at com.bretth.osmosis.core.pipeline.common.Pipeline.waitForCompletion(Pipeline.java:141) at com.bretth.osmosis.core.Osmosis.main(Osmosis.java:55) _______________________________________________ dev mailing list dev@... http://lists.openstreetmap.org/listinfo/dev |
|
|
Re: Osmosis on Australia extractRichard Chirgwin wrote:
> Hi, > > I'm trying to load the Australian OSM extract found here: > http://www.osmaustralia.org/osmausextract.php > > Into a MySQL database using Osmosis. The failure (short version here, > long below signature) is: > > Unable to parse xml file /home/richard/Desktop/australia.osm. > publicId=(null), systemId=(null), lineNumber=8043380, columnNumber=1. > at > com.bretth.osmosis.core.xml.v0_5.XmlReader.run(XmlReader.java:114) > 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. > > Any ideas? > Perhaps the xml file has been truncated. Can you check the last lines of the file to make sure the xml file has been closed correctly? The program creating the file may have crashed half way through the file creation. A command like tail should be able to do this for you. There are other tools like xmlstarlet that might also help to validate xml files but I haven't used them before. Brett _______________________________________________ dev mailing list dev@... http://lists.openstreetmap.org/listinfo/dev |
|
|
Re: Osmosis on Australia extractBrett Henderson wrote:
> Richard Chirgwin wrote: >> Hi, >> >> I'm trying to load the Australian OSM extract found here: >> http://www.osmaustralia.org/osmausextract.php >> >> Into a MySQL database using Osmosis. The failure (short version here, >> long below signature) is: >> >> Unable to parse xml file /home/richard/Desktop/australia.osm. >> publicId=(null), systemId=(null), lineNumber=8043380, columnNumber=1. >> at >> com.bretth.osmosis.core.xml.v0_5.XmlReader.run(XmlReader.java:114) >> 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. >> >> Any ideas? >> > > Perhaps the xml file has been truncated. Can you check the last lines > of the file to make sure the xml file has been closed correctly? The > program creating the file may have crashed half way through the file > creation. > > A command like tail should be able to do this for you. There are > other tools like xmlstarlet that might also help to validate xml files > but I haven't used them before. > > Brett > > Bingo, I think. The file ends on a </way> tag rather than an </osm> tag. I'll let the generator of the file know about this, and see what happens if I add the </osm> tag manually. Thanks! Richard _______________________________________________ dev mailing list dev@... http://lists.openstreetmap.org/listinfo/dev |
|
|
Re: Osmosis on Australia extract2008/11/8 Richard Chirgwin <rchirgwin@...>:
> Brett Henderson wrote: >> Perhaps the xml file has been truncated. Can you check the last lines >> of the file to make sure the xml file has been closed correctly? The >> program creating the file may have crashed half way through the file >> creation. >> >> Brett >> >> > Brett, > > Bingo, I think. The file ends on a </way> tag rather than an </osm> tag. > I'll let the generator of the file know about this, and see what happens > if I add the </osm> tag manually. Thanks! > > Richard It may be that some of the data is missing too, I'd recommend using the CloudMade Australia extract - http://downloads.cloudmade.com/australia _______________________________________________ dev mailing list dev@... http://lists.openstreetmap.org/listinfo/dev |
| Free Forum Powered by Nabble | Forum Help |