logo separator

[mkgmap-dev] exception in style branch

From Torsten Leistikow de_muur at gmx.de on Sun Nov 1 17:17:28 GMT 2009

Hello,

when I use the style branch for my routing layer, I get in one of my map
tiles the following exception:


java.lang.NullPointerException
        at uk.me.parabola.mkgmap.reader.osm.Tags.put(Tags.java:68)
        at uk.me.parabola.mkgmap.reader.osm.Element.addTag(Element.java:40)
        at
uk.me.parabola.mkgmap.osmstyle.actions.AddTagAction.perform(AddTagAct
ion.java:64)
        at
uk.me.parabola.mkgmap.osmstyle.ActionRule.resolveType(ActionRule.java
:58)
        at
uk.me.parabola.mkgmap.osmstyle.RuleHolder.resolveType(RuleHolder.java
:54)
        at
uk.me.parabola.mkgmap.osmstyle.RuleList.resolveType(RuleList.java:54)

        at
uk.me.parabola.mkgmap.osmstyle.RuleSet.resolveType(RuleSet.java:172)
        at
uk.me.parabola.mkgmap.osmstyle.StyledConverter.convertWay(StyledConve
rter.java:253)
        at
uk.me.parabola.mkgmap.reader.osm.xml.Osm5XmlHandler.endDocument(Osm5X
mlHandler.java:473)
        at
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endDocum
ent(AbstractSAXParser.java:737)
        at
com.sun.org.apache.xerces.internal.xinclude.XIncludeHandler.endDocume
nt(XIncludeHandler.java:1119)
        at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp
l.scanDocument(XMLDocumentFragmentScannerImpl.java:515)
        at
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(X
ML11Configuration.java:807)
        at
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(X
ML11Configuration.java:737)
        at
com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.
java:107)
        at
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Ab
stractSAXParser.java:1205)
        at
com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.p
arse(SAXParserImpl.java:522)
        at javax.xml.parsers.SAXParser.parse(SAXParser.java:395)
        at javax.xml.parsers.SAXParser.parse(SAXParser.java:198)
        at
uk.me.parabola.mkgmap.reader.osm.xml.Osm5MapDataSource.load(Osm5MapDa
taSource.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:186)
        at uk.me.parabola.mkgmap.main.Main$1.call(Main.java:184)
        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(ThreadPoolExec
utor.java:885)
        at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor
.java:907)
        at java.lang.Thread.run(Thread.java:619)
Exiting - if you want to carry on regardless, use the --keep-going option

Any idea about this, or shall a provide the osm file and the used style?

Gruss
Torsten



More information about the mkgmap-dev mailing list