locked-fg / osmosis-srtm-plugin

Automatically exported from code.google.com/p/osmosis-srtm-plugin
11 stars 7 forks source link

AbstractMethodError with osmosis 0.41 #2

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
We recently updated osmosis to 0.41 (from 0.40.1) because of another plugin. 
Now the srtm-plugin (1.01) doesn't work anymore.

$ osmosis --bounding-polygon file=eg-cairo/bounds.txt --write-srtm 
locDir=../srtm/ --write-xml file=eg-cairo/eg-cairo.xml
Nov 16, 2012 7:02:21 PM org.openstreetmap.osmosis.core.Osmosis run
INFO: Osmosis Version 0.41
Nov 16, 2012 7:02:21 PM org.openstreetmap.osmosis.core.Osmosis run
INFO: Preparing pipeline.
Nov 16, 2012 7:02:21 PM org.openstreetmap.osmosis.core.Osmosis run
INFO: Launching pipeline execution.
Nov 16, 2012 7:02:21 PM org.openstreetmap.osmosis.core.Osmosis run
INFO: Pipeline executing, waiting for completion.
Nov 16, 2012 7:02:21 PM 
org.openstreetmap.osmosis.core.pipeline.common.ActiveTaskManager 
waitForCompletion
SEVERE: Thread for task 1-read-pbf failed
java.lang.AbstractMethodError: 
org.srtmplugin.osm.osmosis.SrtmPlugin_task.initialize(Ljava/util/Map;)V
        at org.openstreetmap.osmosis.areafilter.v0_6.AreaFilter.initialize(AreaFilter.java:115)
        at crosby.binary.osmosis.OsmosisReader.run(OsmosisReader.java:43)
        at java.lang.Thread.run(Thread.java:722)

Nov 16, 2012 7:02:21 PM 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)

$ java -version
java version "1.7.0_09"
OpenJDK Runtime Environment (IcedTea7 2.3.3) (7u9-2.3.3-0ubuntu1~12.04.1)
OpenJDK 64-Bit Server VM (build 23.2-b09, mixed mode)

Original issue reported on code.google.com by d.hofer...@gmail.com on 16 Nov 2012 at 6:08

GoogleCodeExporter commented 9 years ago
I could solve it by myself.
Change in http://code.google.com/r/dhofer-041compat/

Thanks for this plugin btw.

Original comment by d.hofer...@gmail.com on 16 Nov 2012 at 8:49

GoogleCodeExporter commented 9 years ago
Cool, thanks a lot for sharing the fix!
I just pulled your cahnges and integrated the fix into v1.0.1.

Original comment by franz.graf on 18 Nov 2012 at 11:22