[OSM-dev] Bin-test failed (different test)

Curt Nowak nowak at bwl.uni-hildesheim.de
Thu Sep 30 15:23:09 BST 2010


Hello dev,

I also tested osmosis 0.37-SNAPSHOT with the bin-support for various countries downloaded at Geofabrik.
In contrast to the -xml tasks I *sometimes* ran into an exception using the -bin tasks in combination with the --used-node task.

For my example I used slovenia.osm.pbf (29-Sep-2010 03:41) downloaded at Geofabrik.
Here's a simplified yet working example of the two commands I ran consecutively:
osmosis.bat --read-bin slovenia.osm.pbf outPipe.0="fileReadPipe" --used-node-0.6 inPipe.0="fileReadPipe" outPipe.0="usedNodePipe" --write-bin inPipe.0="usedNodePipe" slovenia_filtered.osm.pbf
osmosis.bat -verbose --read-bin slovenia_filtered.osm.pbf outPipe.0="fileReadPipe" --write-bin inPipe.0="fileReadPipe" slovenia_filtered2.osm.pbf
(Complete error message at the end of this mail)

Note, that running the following two commands does *not* throw an exception (the difference is the -xml version of writing and reading):
osmosis.bat --read-bin slovenia.osm.pbf outPipe.0="fileReadPipe" --used-node-0.6 inPipe.0="fileReadPipe" outPipe.0="usedNodePipe" --write-xml inPipe.0="usedNodePipe" slovenia_filtered.osm
osmosis.bat --read-xml slovenia_filtered.osm outPipe.0="fileReadPipe" --write-bin inPipe.0="fileReadPipe" slovenia_gefiltert_no_residential.osm.pbf

What's up with that? Why is there suddenly a negative user id involved that is not present in the .osm file of Slovenia? Btw: This does *not* happen for all tested input files. E.g. Andorra worked fine.


Curt





C:\Programme\OSM\Karten>c:\Programme\OSM\osmosis\osmosis-0.37\bin\osmosis.bat  -verbose --read-bin slovenia_filtered.osm.pbf outPipe.0="fileReadPipe" --write-bin inPipe.0="fileReadPipe" slovenia_filtered2.osm.pbf
30.09.2010 16:18:06 org.openstreetmap.osmosis.core.Osmosis run
INFO: Osmosis Version 0.37-SNAPSHOT-r23376
30.09.2010 16:18:06 org.openstreetmap.osmosis.core.TaskRegistrar loadJPFPlugins
FEIN: Searching for JPF plugins.
30.09.2010 16:18:06 org.openstreetmap.osmosis.core.TaskRegistrar loadJPFPlugins
FEIN: Registering the core plugin.
30.09.2010 16:18:06 org.openstreetmap.osmosis.core.TaskRegistrar loadJPFPlugins
FEIN: Registering the extension plugins.
30.09.2010 16:18:06 org.openstreetmap.osmosis.core.Osmosis run
INFO: Preparing pipeline.
30.09.2010 16:18:06 org.openstreetmap.osmosis.core.pipeline.common.Pipeline prepare
FEIN: Building tasks.
30.09.2010 16:18:06 org.openstreetmap.osmosis.core.pipeline.common.Pipeline buildTasks
FEIN: Created task "1-read-bin"
30.09.2010 16:18:06 org.openstreetmap.osmosis.core.pipeline.common.Pipeline buildTasks
FEIN: Created task "2-write-bin"
30.09.2010 16:18:06 org.openstreetmap.osmosis.core.pipeline.common.Pipeline prepare
FEIN: Connecting tasks.
30.09.2010 16:18:06 org.openstreetmap.osmosis.core.pipeline.common.PipeTasks putTask
FEIN: Task "1-read-bin" produced pipe "fileReadPipe"
30.09.2010 16:18:06 org.openstreetmap.osmosis.core.pipeline.common.Pipeline connectTasks
FEIN: Connected task "1-read-bin"
30.09.2010 16:18:06 org.openstreetmap.osmosis.core.pipeline.common.PipeTasks retrieveTask
FEIN: Task "2-write-bin" consumed pipe "fileReadPipe"
30.09.2010 16:18:06 org.openstreetmap.osmosis.core.pipeline.common.Pipeline connectTasks
FEIN: Connected task "2-write-bin"
30.09.2010 16:18:06 org.openstreetmap.osmosis.core.Osmosis run
INFO: Launching pipeline execution.
30.09.2010 16:18:06 org.openstreetmap.osmosis.core.pipeline.common.ActiveTaskManager execute
FEIN: Launching task 1-read-bin in a new thread.
30.09.2010 16:18:06 org.openstreetmap.osmosis.core.pipeline.common.PassiveTaskManager execute
FEIN: Task 2-write-bin is passive, no execution required.
30.09.2010 16:18:06 org.openstreetmap.osmosis.core.Osmosis run
INFO: Pipeline executing, waiting for completion.
30.09.2010 16:18:06 org.openstreetmap.osmosis.core.pipeline.common.ActiveTaskManager waitForCompletion
FEIN: Waiting for task 1-read-bin to complete.
30.09.2010 16:18:11 org.openstreetmap.osmosis.core.pipeline.common.ActiveTaskManager waitForCompletion
SCHWERWIEGEND: Thread for task 1-read-bin failed
org.openstreetmap.osmosis.core.OsmosisRuntimeException: A user id of -1 is not permitted.
        at org.openstreetmap.osmosis.core.domain.v0_6.OsmUser.<init>(OsmUser.java:53)
        at crosby.binary.osmosis.OsmosisBinaryParser.getUser(OsmosisBinaryParser.java:43)
        at crosby.binary.osmosis.OsmosisBinaryParser.parseWays(OsmosisBinaryParser.java:160)
        at crosby.binary.BinaryParser.parse(BinaryParser.java:104)
        at crosby.binary.BinaryParser.handleBlock(BinaryParser.java:51)
        at crosby.binary.file.FileBlock.process(FileBlock.java:111)
        at crosby.binary.file.BlockInputStream.process(BlockInputStream.java:15)
        at crosby.binary.osmosis.OsmosisReader.run(OsmosisReader.java:36)
        at java.lang.Thread.run(Unknown Source)
30.09.2010 16:18:11 org.openstreetmap.osmosis.core.pipeline.common.PassiveTaskManager waitForCompletion
FEIN: Task 2-write-bin is passive, no completion wait required.
30.09.2010 16:18:11 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.waitForCompletion(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(Launcher.java:329)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:239)
        at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
        at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
        at org.codehaus.classworlds.Launcher.main(Launcher.java:31)



More information about the dev mailing list