logo separator

[mkgmap-dev] [PATCH v1] Precompiled sea

From WanMil wmgcnfg at web.de on Thu May 3 20:33:08 BST 2012

Hi Carlos,

> Thanks for your work on this WanMil
> I have tried to use your patch but get the errors below when running mkgmap:
> Using java version "1.6.0_26"
> Java(TM) SE Runtime Environment (build 1.6.0_26-b03)
> Java HotSpot(TM) Server VM (build 20.1-b02, mixed mode)
> mkgmap crashes immediately with the following output:

the first exception indicates that your mkgmap.jar is compiled with JDK 
1.7 and is not executable with Java 1.6.

> java.lang.UnsupportedClassVersionError:
> uk/me/parabola/mkgmap/reader/osm/SeaGenerator : Unsupported major.minor
> version 51.0
>           at java.lang.ClassLoader.defineClass1(Native Method)
>           at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
>           at java.lang.ClassLoader.defineClass(ClassLoader.java:615)
>           at
> java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
>           at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
>           at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
>           at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
>           at java.security.AccessController.doPrivileged(Native Method)
>           at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
>           at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
>           at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
>           at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
>           at
> uk.me.parabola.mkgmap.reader.osm.OsmMapDataSource.<init>(OsmMapDataSource.java:53)
>           at
> uk.me.parabola.mkgmap.reader.osm.bin.OsmBinMapDataSource.<init>(OsmBinMapDataSource.java:35)
>           at
> sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
>           at
> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
>           at
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
>           at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
>           at java.lang.Class.newInstance0(Class.java:355)
>           at java.lang.Class.newInstance(Class.java:308)
>           at
> uk.me.parabola.mkgmap.reader.plugin.MapReader.createMapReader(MapReader.java:73)
>           at
> uk.me.parabola.mkgmap.main.MapMaker.loadFromFile(MapMaker.java:141)
>           at uk.me.parabola.mkgmap.main.MapMaker.makeMap(MapMaker.java:56)
>           at uk.me.parabola.mkgmap.main.Main$1.call(Main.java:210)
>           at uk.me.parabola.mkgmap.main.Main$1.call(Main.java:207)
>           at
> java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
>           at java.util.concurrent.FutureTask.run(FutureTask.java:138)
>           at
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
>           at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
>           at java.lang.Thread.run(Thread.java:662)
>

The 2nd error seems like a problem of the precompiler. Can you upload 
the osm tile or can you give me the bounding box of the tile?

> Using java version "1.7.0_03"
> Java(TM) SE Runtime Environment (build 1.7.0_03-b04)
> Java HotSpot(TM) Server VM (build 22.1-b02, mixed mode)
> mkgmap runs for a while and then crashes with the following:
> java.lang.AssertionError
>           at
> uk.me.parabola.mkgmap.reader.osm.SeaGenerator.addPrecompSea(SeaGenerator.java:295)
>           at
> uk.me.parabola.mkgmap.reader.osm.SeaGenerator.end(SeaGenerator.java:313)
>           at
> uk.me.parabola.mkgmap.reader.osm.OsmReadingHooksChain.end(OsmReadingHooksChain.java:79)
>           at
> uk.me.parabola.mkgmap.reader.osm.bin.OsmBinMapDataSource.load(OsmBinMapDataSource.java:68)
>           at
> uk.me.parabola.mkgmap.main.MapMaker.loadFromFile(MapMaker.java:144)
>           at uk.me.parabola.mkgmap.main.MapMaker.makeMap(MapMaker.java:56)
>           at uk.me.parabola.mkgmap.main.Main$1.call(Main.java:210)
>           at uk.me.parabola.mkgmap.main.Main$1.call(Main.java:207)
>           at
> java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
>           at java.util.concurrent.FutureTask.run(FutureTask.java:166)
>           at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
>           at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
>           at java.lang.Thread.run(Thread.java:722)
>
> Any hints?

Thanks!
WanMil



More information about the mkgmap-dev mailing list