[osmosis-dev] Problem while generating map

Shaun McDonald shaun at shaunmcdonald.me.uk
Mon Oct 8 15:39:15 BST 2012


On 8 Oct 2012, at 15:32, "Nelson A. de Oliveira" <naoliv at gmail.com> wrote:

> Hi!
> 
> I have download the latest osmosis (from
> http://bretth.dev.openstreetmap.org/osmosis-build/osmosis-latest.zip)
> and http://download.geofabrik.de/openstreetmap/south-america/brazil.osm.bz2
> Also have downloaded latest mapsforge-map-writer from
> http://code.google.com/p/mapsforge/downloads/list
> 
> While trying to generate a map with:
> 
> osmosis --read-xml file="brazil.osm" --mapfile-writer
> file="brazil.map" bbox=-33.747081,-73.989707,5.264878,-28.846944
> 
> I am seeing this:
> 
> =====
> 08/10/2012 11:24:39 org.openstreetmap.osmosis.core.Osmosis run
> INFO: Osmosis Version 0.41
> 08/10/2012 11:24:40 org.openstreetmap.osmosis.core.Osmosis run
> INFO: Preparing pipeline.
> 08/10/2012 11:24:41 org.mapsforge.map.writer.osmosis.MapFileWriterTask <init>
> INFO: mapfile-writer version: mapsforge-map-writer-0.3.0
> 08/10/2012 11:24:41 org.mapsforge.map.writer.osmosis.MapFileWriterTask <init>
> INFO: mapfile format specification version: 3
> 08/10/2012 11:24:41 org.openstreetmap.osmosis.core.Osmosis run
> INFO: Launching pipeline execution.
> 08/10/2012 11:24:41 org.openstreetmap.osmosis.core.Osmosis run
> INFO: Pipeline executing, waiting for completion.
> 08/10/2012 11:24:41
> org.openstreetmap.osmosis.core.pipeline.common.ActiveTaskManager
> waitForCompletion
> SEVERE: Thread for task 1-read-xml 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:679)
> 08/10/2012 11:24:41 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:616)
> 	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)
> =====
> 
> What could be wrong, please?

It needs updated for the latest version of Osmosis:

http://lists.openstreetmap.org/pipermail/osmosis-dev/2012-September/001374.html

"All tasks in Osmosis must now support the initialize method, so older
plugins such as tagtransform will require some minor fixes to be compatible
with this change."

http://lists.openstreetmap.org/pipermail/osmosis-dev/2012-October/001376.html has a link with the changes made in the case of one of the other plugins, which may help you.

Shaun




More information about the osmosis-dev mailing list