error compiling the map

I got this error recently: time java -Xmx1512m -jar mkgmap.jar --read-config=args.list philippines.osm java.lang.NullPointerException at uk.me.parabola.mkgmap.osmstyle.RuleFileReader.isIndexable(RuleFileReader.java:234) at uk.me.parabola.mkgmap.osmstyle.RuleFileReader.isSolved(RuleFileReader.java:242) at uk.me.parabola.mkgmap.osmstyle.RuleFileReader.isFinished(RuleFileReader.java:254) at uk.me.parabola.mkgmap.osmstyle.RuleFileReader.rearrangeExpression(RuleFileReader.java:134) at uk.me.parabola.mkgmap.osmstyle.RuleFileReader.saveRule(RuleFileReader.java:115) at uk.me.parabola.mkgmap.osmstyle.RuleFileReader.load(RuleFileReader.java:94) at uk.me.parabola.mkgmap.osmstyle.RuleFileReader.load(RuleFileReader.java:70) at uk.me.parabola.mkgmap.osmstyle.StyleImpl.readRules(StyleImpl.java:252) at uk.me.parabola.mkgmap.osmstyle.StyleImpl.<init>(StyleImpl.java:138) at uk.me.parabola.mkgmap.reader.osm.xml.Osm5MapDataSource.createStyler(Osm5MapDataSource.java:120) 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:189) at uk.me.parabola.mkgmap.main.Main$1.call(Main.java:186) 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:619) my args.list code-page=1252 ea tdbfile latin1 country-abbr=PHI country-name=PHILIPPINES remove-short-arcs=5 route road-name-pois add-pois-to-areas family-id=639 family-name=OSM_PHIL overview-mapname=40000001 series-name=OSM_PHIL description=OSM_PHIL style-file=/home/maning/Downloads/osm/routable_garmin/svn/styles/osm-ph generate-sea=polygons index adjust-turn-headings mkgmap version 1598 -- cheers, maning ------------------------------------------------------ "Freedom is still the most radical idea of all" -N.Branden wiki: http://esambale.wikispaces.com/ blog: http://epsg4253.wordpress.com/ ------------------------------------------------------

I got the error when I added, this in the polygon styles: amenity=fuel [0x08 resolution 18] The purpose is to enable to search fuel polygons as a POI. Removing this line completes the compilation. On Thu, Mar 18, 2010 at 4:18 PM, maning sambale <emmanuel.sambale@gmail.com> wrote:
I got this error recently: time java -Xmx1512m -jar mkgmap.jar --read-config=args.list philippines.osm java.lang.NullPointerException at uk.me.parabola.mkgmap.osmstyle.RuleFileReader.isIndexable(RuleFileReader.java:234) at uk.me.parabola.mkgmap.osmstyle.RuleFileReader.isSolved(RuleFileReader.java:242) at uk.me.parabola.mkgmap.osmstyle.RuleFileReader.isFinished(RuleFileReader.java:254) at uk.me.parabola.mkgmap.osmstyle.RuleFileReader.rearrangeExpression(RuleFileReader.java:134) at uk.me.parabola.mkgmap.osmstyle.RuleFileReader.saveRule(RuleFileReader.java:115) at uk.me.parabola.mkgmap.osmstyle.RuleFileReader.load(RuleFileReader.java:94) at uk.me.parabola.mkgmap.osmstyle.RuleFileReader.load(RuleFileReader.java:70) at uk.me.parabola.mkgmap.osmstyle.StyleImpl.readRules(StyleImpl.java:252) at uk.me.parabola.mkgmap.osmstyle.StyleImpl.<init>(StyleImpl.java:138) at uk.me.parabola.mkgmap.reader.osm.xml.Osm5MapDataSource.createStyler(Osm5MapDataSource.java:120) 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:189) at uk.me.parabola.mkgmap.main.Main$1.call(Main.java:186) 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:619)
my args.list code-page=1252 ea tdbfile latin1 country-abbr=PHI country-name=PHILIPPINES remove-short-arcs=5 route road-name-pois add-pois-to-areas family-id=639 family-name=OSM_PHIL overview-mapname=40000001 series-name=OSM_PHIL description=OSM_PHIL style-file=/home/maning/Downloads/osm/routable_garmin/svn/styles/osm-ph generate-sea=polygons index adjust-turn-headings
mkgmap version 1598
-- cheers, maning ------------------------------------------------------ "Freedom is still the most radical idea of all" -N.Branden wiki: http://esambale.wikispaces.com/ blog: http://epsg4253.wordpress.com/ ------------------------------------------------------
-- cheers, maning ------------------------------------------------------ "Freedom is still the most radical idea of all" -N.Branden wiki: http://esambale.wikispaces.com/ blog: http://epsg4253.wordpress.com/ ------------------------------------------------------

Hi Maning On 18/03/10 08:38, maning sambale wrote:
I got the error when I added, this in the polygon styles: amenity=fuel [0x08 resolution 18]
That rule looks too simple to fail! And if I add it to the default polygon style there is no problem. I have been able to reproduce your exception with a rule like: amenity [0x08 resolution 18] ...which I can fix (its still an error of course but shouldn't give an exception), but it may not be quite the same as your problem. Is there any change that the '=' is another unicode symbol that looks just the same? Otherwise it could be the previous or next rule that is interacting with this one and causing the problem.
java.lang.NullPointerException at uk.me.parabola.mkgmap.osmstyle.RuleFileReader.isIndexable(RuleFileReader.java:234) at uk.me.parabola.mkgmap.osmstyle.RuleFileReader.isSolved(RuleFileReader.java:242)
..Steve

Attached is my style file. I will debug each line later to check. On Thu, Mar 18, 2010 at 5:44 PM, Steve Ratcliffe <steve@parabola.me.uk> wrote:
Hi Maning
On 18/03/10 08:38, maning sambale wrote:
I got the error when I added, this in the polygon styles: amenity=fuel [0x08 resolution 18]
That rule looks too simple to fail! And if I add it to the default polygon style there is no problem.
I have been able to reproduce your exception with a rule like:
amenity [0x08 resolution 18]
...which I can fix (its still an error of course but shouldn't give an exception), but it may not be quite the same as your problem. Is there any change that the '=' is another unicode symbol that looks just the same? Otherwise it could be the previous or next rule that is interacting with this one and causing the problem.
java.lang.NullPointerException at uk.me.parabola.mkgmap.osmstyle.RuleFileReader.isIndexable(RuleFileReader.java:234) at uk.me.parabola.mkgmap.osmstyle.RuleFileReader.isSolved(RuleFileReader.java:242)
..Steve _______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
-- cheers, maning ------------------------------------------------------ "Freedom is still the most radical idea of all" -N.Branden wiki: http://esambale.wikispaces.com/ blog: http://epsg4253.wordpress.com/ ------------------------------------------------------
participants (2)
-
maning sambale
-
Steve Ratcliffe