logo separator

[mkgmap-dev] java.lang.NullPointerException - addRoadWithoutLoops(StyledConverter.java: on Italy/Alps

From Felix Hartmann extremecarver at googlemail.com on Mon Nov 16 10:08:34 GMT 2009

Currently mkgmap crashes on compiling alps or italy from geofabrik 
(yesterdays and todays download tested). Tested with 1393 and 1396. No 
matter whether using my own style-file or mkgmap default. It seems to me 
that there must be some crazy road data in northern Italy.

Here's my commandline:

start /low /b /wait java -enableassertions -jar -Xmx4200M mkgmap.jar 
--max-jobs=3 --latin1 --index --delete-tags-file=deletetags 
--adjust-turn-headings --ignore-maxspeeds --ignore-turn-restrictions 
--remove-short-arcs=4 --location-autofill=1 
--description=openmtbmap_%abr%_%date% --route --country-abbr=%abr% 
--country-name=%country% --mapname=%mapid%0000 --family-id=%mapid% 
--product-id=1 --series-name=openmtbmap_%abr%_%date% 
--family-name=mtbmap_%abr%_%date% --tdbfile --overview-mapname=mapset 
--area-name=%country% d:\garmin\mkgmap_680\maps\%mapid%0*.osm.gz

java.lang.NullPointerException
        at 
uk.me.parabola.mkgmap.osmstyle.StyledConverter.addRoadWithoutLoops(StyledConverter.java:1605)
        at 
uk.me.parabola.mkgmap.osmstyle.StyledConverter.addRoadAfterSplittingLoops(StyledConverter.java:1153)
        at 
uk.me.parabola.mkgmap.osmstyle.StyledConverter.addRoad(StyledConverter.java:1081)
        at 
uk.me.parabola.mkgmap.osmstyle.StyledConverter.convertWay(StyledConverter.java:290)
        at 
uk.me.parabola.mkgmap.reader.osm.xml.Osm5XmlHandler.endDocument(Osm5XmlHandler.java:560)
        at 
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endDocument(Unknown 
Source)
        at 
com.sun.org.apache.xerces.internal.xinclude.XIncludeHandler.endDocument(Unknown 
Source)
        at 
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown 
Source)
        at 
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown 
Source)
        at 
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown 
Source)
        at 
com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)
        at 
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown 
Source)
        at 
com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown 
Source)
        at javax.xml.parsers.SAXParser.parse(Unknown Source)
        at javax.xml.parsers.SAXParser.parse(Unknown Source)
        at 
uk.me.parabola.mkgmap.reader.osm.xml.Osm5MapDataSource.load(Osm5MapDataSource.java:80)
        at 
uk.me.parabola.mkgmap.main.MapMaker.loadFromFile(MapMaker.java:148)
        at uk.me.parabola.mkgmap.main.MapMaker.makeMap(MapMaker.java:56)
        at uk.me.parabola.mkgmap.main.Main$1.call(Main.java:187)
        at uk.me.parabola.mkgmap.main.Main$1.call(Main.java:185)
        at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
        at java.util.concurrent.FutureTask.run(Unknown Source)
        at 
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown 
Source)
        at java.lang.Thread.run(Unknown Source)
Exiting - if you want to carry on regardless, use the --keep-going option



More information about the mkgmap-dev mailing list