osmosis fails on linux: Thread for task 1-rx failed

77 views
Skip to first unread message

Yukai Lin

unread,
Mar 18, 2013, 10:59:10 AM3/18/13
to mapsfo...@googlegroups.com
Hi I'm trying to run osmosis on linux and I am having some problems that I'm not sure how to address. I've read through some other threads and some mentioned about using the wrong version, and some mentioned about not putting the right jar files in. I'm really confused and I hope someone can prod me into the right direction.

Sorry I'm new to this and I hope someone can help me, thanks!

Below is my exception stack trace:

yk@ubuntu:~$ bin/osmosis --rx file=malaysia-singapore-brunei-latest.osm.pbf --mw file=singapore.map bbox=1.273,103.807,1.312,103.846
Mar 18, 2013 7:45:10 AM org.openstreetmap.osmosis.core.Osmosis run
INFO: Osmosis Version 0.42
Mar 18, 2013 7:45:11 AM org.openstreetmap.osmosis.core.Osmosis run
INFO: Preparing pipeline.
Mar 18, 2013 7:45:11 AM org.mapsforge.map.writer.osmosis.MapFileWriterTask <init>
INFO: mapfile-writer version: mapsforge-map-writer-0.3.0
Mar 18, 2013 7:45:11 AM org.mapsforge.map.writer.osmosis.MapFileWriterTask <init>
INFO: mapfile format specification version: 3
Mar 18, 2013 7:45:11 AM org.openstreetmap.osmosis.core.Osmosis run
INFO: Launching pipeline execution.
Mar 18, 2013 7:45:11 AM org.openstreetmap.osmosis.core.Osmosis run
INFO: Pipeline executing, waiting for completion.
Mar 18, 2013 7:45:11 AM org.openstreetmap.osmosis.core.pipeline.common.ActiveTaskManager waitForCompletion
SEVERE: Thread for task 1-rx failed
java.lang.AbstractMethodError: org.mapsforge.map.writer.osmosis.MapFileWriterTask.initialize(Ljava/util/Map;)V
at org.openstreetmap.osmosis.xml.v0_6.XmlReader.run(XmlReader.java:95)
at java.lang.Thread.run(Thread.java:722)

Mar 18, 2013 7:45:11 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.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(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
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:47)

Ludwig

unread,
Mar 19, 2013, 4:25:43 AM3/19/13
to mapsfo...@googlegroups.com
IIRC you should run the 0.3.0 downloadable mapwriter with osmosis <= 0.4

If you build the mapfilewriter module yourself from the current head, you can use 0.4.1 and higher.




--
You received this message because you are subscribed to the Google Groups "mapsforge-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mapsforge-de...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Reply all
Reply to author
Forward
0 new messages