[OSM-dev] Can't get osmosis to work

A. Stice astice at ou.edu
Sat Feb 28 21:28:05 GMT 2009


I've been trying to import this planet file into my MySQL database using
Osmosis, but it isn't working. I've tried several different commands as well
as downloaded a few different planet files to see if that was the problem
but nothing has worked. I've been searching around the forum and internet
for a couple days trying to find out why it isn't working right, but I cant
seem to find out, so I was hoping one of you guys would be able to help me.
This is my most recent output, and it ran for a good 20 minutes before
crashing.

C:\Users\Alan\Documents\Downloads\osmosis-latest.tar.gz\osmosis-latest\osmosis-0
.30\bin>osmosis -v --read-xml file="planet.osm" --write-mysql
validateSchemaVers
ion=false host="localhost" database="gis" user="root" password="**********"
Feb 27, 2009 8:08:53 AM com.bretth.osmosis.core.Osmosis run
INFO: Osmosis Version 0.30
Feb 27, 2009 8:08:54 AM com.bretth.osmosis.core.Osmosis run
INFO: Preparing pipeline.
Feb 27, 2009 8:08:54 AM com.bretth.osmosis.core.pipeline.common.Pipeline
prepare

FINE: Building tasks.
Feb 27, 2009 8:08:54 AM com.bretth.osmosis.core.pipeline.common.Pipeline
buildTa
sks
FINE: Created task "1-read-xml"
Feb 27, 2009 8:08:54 AM com.bretth.osmosis.core.pipeline.common.Pipeline
buildTa
sks
FINE: Created task "2-write-mysql"
Feb 27, 2009 8:08:54 AM com.bretth.osmosis.core.pipeline.common.Pipeline
prepare

FINE: Connecting tasks.
Feb 27, 2009 8:08:54 AM com.bretth.osmosis.core.pipeline.common.PipeTasks
putTas
k
FINE: Task "1-read-xml" produced unnamed pipe stored at level 1 in the
default p
ipe stack.
Feb 27, 2009 8:08:54 AM com.bretth.osmosis.core.pipeline.common.Pipeline
connect
Tasks
FINE: Connected task "1-read-xml"
Feb 27, 2009 8:08:54 AM com.bretth.osmosis.core.pipeline.common.PipeTasks
retrie
veTask
FINE: Task "2-write-mysql" consumed unnamed pipe stored at level 1 in the
defaul
t pipe stack.
Feb 27, 2009 8:08:54 AM com.bretth.osmosis.core.pipeline.common.Pipeline
connect
Tasks
FINE: Connected task "2-write-mysql"
Feb 27, 2009 8:08:54 AM com.bretth.osmosis.core.Osmosis run
INFO: Launching pipeline execution.
Feb 27, 2009 8:08:54 AM
com.bretth.osmosis.core.pipeline.common.ActiveTaskManage
r execute
FINE: Launching task 1-read-xml in a new thread.
Feb 27, 2009 8:08:54 AM
com.bretth.osmosis.core.pipeline.common.PassiveTaskManag
er execute
FINE: Task 2-write-mysql is passive, no execution required.
Feb 27, 2009 8:08:54 AM com.bretth.osmosis.core.Osmosis run
INFO: Pipeline executing, waiting for completion.
Feb 27, 2009 8:08:54 AM
com.bretth.osmosis.core.pipeline.common.ActiveTaskManage
r waitForCompletion
FINE: Waiting for task 1-read-xml to complete.
Feb 27, 2009 8:08:54 AM
com.bretth.osmosis.core.pipeline.common.ActiveTaskManage
r waitForCompletion
SEVERE: Thread for task 1-read-xml failed
com.bretth.osmosis.core.OsmosisRuntimeException: Unable to read XML file
planet.
osm.
        at
com.bretth.osmosis.core.xml.v0_5.XmlReader.run(XmlReader.java:124)
        at java.lang.Thread.run(Unknown Source)
Caused by: java.io.FileNotFoundException: planet.osm (The system cannot find
the
 file specified)
        at java.io.FileInputStream.open(Native Method)
        at java.io.FileInputStream.<init>(Unknown Source)
        at com.bretth.osmosis.core.xml.v0_5.XmlReader.run(XmlReader.java:99)
        ... 1 more
Feb 27, 2009 8:08:54 AM
com.bretth.osmosis.core.pipeline.common.PassiveTaskManag
er waitForCompletion
FINE: Task 2-write-mysql is passive, no completion wait required.
Feb 27, 2009 8:08:54 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(Pi
peline.java:146)
        at com.bretth.osmosis.core.Osmosis.run(Osmosis.java:85)
        at com.bretth.osmosis.core.Osmosis.main(Osmosis.java:30)

C:\Users\Alan\Documents\Downloads\osmosis-latest.tar.gz\osmosis-latest\osmosis-0
.30\bin>osmosis -v --read-xml file="planet.osm" --write-mysql
validateSchemaVers
ion=false host="localhost" database="gis" user="root" password="July261988"
Feb 27, 2009 8:09:09 AM com.bretth.osmosis.core.Osmosis run
INFO: Osmosis Version 0.30
Feb 27, 2009 8:09:09 AM com.bretth.osmosis.core.Osmosis run
INFO: Preparing pipeline.
Feb 27, 2009 8:09:09 AM com.bretth.osmosis.core.pipeline.common.Pipeline
prepare

FINE: Building tasks.
Feb 27, 2009 8:09:09 AM com.bretth.osmosis.core.pipeline.common.Pipeline
buildTa
sks
FINE: Created task "1-read-xml"
Feb 27, 2009 8:09:09 AM com.bretth.osmosis.core.pipeline.common.Pipeline
buildTa
sks
FINE: Created task "2-write-mysql"
Feb 27, 2009 8:09:09 AM com.bretth.osmosis.core.pipeline.common.Pipeline
prepare

FINE: Connecting tasks.
Feb 27, 2009 8:09:09 AM com.bretth.osmosis.core.pipeline.common.PipeTasks
putTas
k
FINE: Task "1-read-xml" produced unnamed pipe stored at level 1 in the
default p
ipe stack.
Feb 27, 2009 8:09:09 AM com.bretth.osmosis.core.pipeline.common.Pipeline
connect
Tasks
FINE: Connected task "1-read-xml"
Feb 27, 2009 8:09:09 AM com.bretth.osmosis.core.pipeline.common.PipeTasks
retrie
veTask
FINE: Task "2-write-mysql" consumed unnamed pipe stored at level 1 in the
defaul
t pipe stack.
Feb 27, 2009 8:09:09 AM com.bretth.osmosis.core.pipeline.common.Pipeline
connect
Tasks
FINE: Connected task "2-write-mysql"
Feb 27, 2009 8:09:09 AM com.bretth.osmosis.core.Osmosis run
INFO: Launching pipeline execution.
Feb 27, 2009 8:09:10 AM
com.bretth.osmosis.core.pipeline.common.ActiveTaskManage
r execute
FINE: Launching task 1-read-xml in a new thread.
Feb 27, 2009 8:09:10 AM
com.bretth.osmosis.core.pipeline.common.PassiveTaskManag
er execute
FINE: Task 2-write-mysql is passive, no execution required.
Feb 27, 2009 8:09:10 AM com.bretth.osmosis.core.Osmosis run
INFO: Pipeline executing, waiting for completion.
Feb 27, 2009 8:09:10 AM
com.bretth.osmosis.core.pipeline.common.ActiveTaskManage
r waitForCompletion
FINE: Waiting for task 1-read-xml to complete.
Feb 27, 2009 8:09:10 AM
com.bretth.osmosis.core.xml.v0_5.impl.OsmElementProcesso
r begin
WARNING: Expected version 0.5 but received 0.3.
Feb 27, 2009 8:29:00 AM
com.bretth.osmosis.core.pipeline.common.ActiveTaskManage
r waitForCompletion
SEVERE: Thread for task 1-read-xml failed
com.bretth.osmosis.core.OsmosisRuntimeException: Unable to parse xml file
planet
.osm.  publicId=(null), systemId=(null), lineNumber=103649741,
columnNumber=25.
        at
com.bretth.osmosis.core.xml.v0_5.XmlReader.run(XmlReader.java:114)
        at java.lang.Thread.run(Unknown Source)
Caused by: org.xml.sax.SAXParseException: An invalid XML character (Unicode:
0x{
2}) was found in the value of attribute "{1}" and element is "13".
        at
com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAX
ParseException(Unknown Source)
        at
com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalErro
r(Unknown Source)
        at
com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(
Unknown Source)
        at
com.sun.org.apache.xerces.internal.impl.XMLScanner.reportFatalError(U
nknown Source)
        at
com.sun.org.apache.xerces.internal.impl.XMLScanner.scanAttributeValue
(Unknown Source)
        at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp
l.scanAttribute(Unknown Source)
        at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp
l.scanStartElement(Unknown Source)
        at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp
l$FragmentContentDriver.next(Unknown Source)
        at
com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(U
nknown Source)
        at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp
l.scanDocument(Unknown Source)
        at
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(U
nknown Source)
        at
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(U
nknown Source)
        at
com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown So
urce)
        at
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Un
known Source)
        at
com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.p
arse(Unknown Source)
        at javax.xml.parsers.SAXParser.parse(Unknown Source)
        at javax.xml.parsers.SAXParser.parse(Unknown Source)
        at
com.bretth.osmosis.core.xml.v0_5.XmlReader.run(XmlReader.java:109)
        ... 1 more
Feb 27, 2009 8:29:00 AM
com.bretth.osmosis.core.pipeline.common.PassiveTaskManag
er waitForCompletion
FINE: Task 2-write-mysql is passive, no completion wait required.
Feb 27, 2009 8:29:00 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(Pi
peline.java:146)
        at com.bretth.osmosis.core.Osmosis.run(Osmosis.java:85)
        at com.bretth.osmosis.core.Osmosis.main(Osmosis.java:30)
-- 
View this message in context: http://www.nabble.com/Can%27t-get-osmosis-to-work-tp22247114p22247114.html
Sent from the OpenStreetMap - Dev mailing list archive at Nabble.com.





More information about the dev mailing list