[OSM-dev] Osmosis shutting down while processing osm-file

IbrahimB22 ibrahim_bouchrika at hotmail.com
Thu Jul 23 18:48:53 BST 2009


Hi,

I'm trying to load an osm file of belgium that I got off cloudmade.com into
a postgresql database with postgis.
I used the 0.6 script and added the linestring column to the ways-table in
the postgresql database.
The command I'm running is: 

osmosis --read-xml file="belgium.osm" --write-pgsql host="127.0.0.1:5432"
database="Routing" user="postgres" password="*********"
enableLinestringBuilder="yes" nodeLocationStoreType="TempFile"

the output is:

INFO: Osmosis Version 0.31.1
23-jul-2009 18:56:01 org.openstreetmap.osmosis.core.Osmosis run
INFO: Preparing pipeline.
23-jul-2009 18:56:01 org.openstreetmap.osmosis.core.Osmosis run
INFO: Launching pipeline execution.
23-jul-2009 18:56:01 org.openstreetmap.osmosis.core.Osmosis run
INFO: Pipeline executing, waiting for completion.
23-jul-2009 19:02:51
org.openstreetmap.osmosis.core.pipeline.common.ActiveTaskManager
waitForCompletion
SEVERE: Thread for task 1-read-xml failed
java.lang.NullPointerException
        at org.postgis.PGgeometry.getValue(Unknown Source)
        at
org.postgresql.jdbc2.AbstractJdbc2Statement.setPGobject(AbstractJdbc2Statement.java:1546)
        at
org.postgresql.jdbc2.AbstractJdbc2Statement.setObject(AbstractJdbc2Statement.java:1736)
        at
org.openstreetmap.osmosis.core.pgsql.v0_6.impl.WayMapper.populateEntityParameters(WayMapper.java:148)
        at
org.openstreetmap.osmosis.core.pgsql.v0_6.PostgreSqlWriter.flushWays(PostgreSqlWriter.java:491)
        at
org.openstreetmap.osmosis.core.pgsql.v0_6.PostgreSqlWriter.process(PostgreSqlWriter.java:943)
        at
org.openstreetmap.osmosis.core.container.v0_6.WayContainer.process(WayContainer.java:60)
        at
org.openstreetmap.osmosis.core.pgsql.v0_6.PostgreSqlWriter.process(PostgreSqlWriter.java:907)
        at
org.openstreetmap.osmosis.core.xml.v0_6.impl.WayElementProcessor.end(WayElementProcessor.java:108)
        at
org.openstreetmap.osmosis.core.xml.v0_6.impl.OsmHandler.endElement(OsmHandler.java:108)
        at
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(Unknown
Source)
        at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown
Source)
        at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(Unknown
Source)
        at
com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown
Source)
        at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
Source)
        at
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown
Source)
        at
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown
Source)
        at
com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)
        at
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown
Source)
        at
com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown
Source)
        at javax.xml.parsers.SAXParser.parse(Unknown Source)
        at javax.xml.parsers.SAXParser.parse(Unknown Source)
        at
org.openstreetmap.osmosis.core.xml.v0_6.XmlReader.run(XmlReader.java:108)
        at java.lang.Thread.run(Unknown Source)
23-jul-2009 19:02:51 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.waitForCompletion(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 no clue what the problem is, at first I thought it might be because
I'm working on a small windows partition that was almost full, and that
osmosis couldn't write to the temporary file directory anymore. But then I
did a cleanup of my HD and freed up about 13GB, and the problem still
remains.

Kind Regards,

Ibrahim
-- 
View this message in context: http://www.nabble.com/Osmosis-shutting-down-while-processing-osm-file-tp24630512p24630512.html
Sent from the OpenStreetMap - Dev mailing list archive at Nabble.com.





More information about the dev mailing list