java.lang.NumberFormatException: For input string: ""

This error happens on conoturlines generation - any ideas? Should I upload the files for debug? I first thought phyghtmap may have produced data with an empty string and on the ft to m conversion this error appears. However I kinda excluded that from happening by making sure only lines with a number are used & ( ele>0 | ele=0 | ele<0 ) Happens on a couple of countries worldwide and seems to be style related - but the same style works on most countries data so the style itself is not broken. SEVERE (global): Unexpected error java.lang.NumberFormatException: For input string: "" at java.base/java.lang.NumberFormatException.forInputString(NumberFormatException.java:68) at java.base/java.lang.Integer.parseInt(Integer.java:662) at java.base/java.lang.Integer.parseInt(Integer.java:770) at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:195) at java.base/java.util.Spliterators$ArraySpliterator.forEachRemaining(Spliterators.java:948) at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:484) at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474) at java.base/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:913) at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) at java.base/java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:578) at uk.me.parabola.mkgmap.build.MapBuilder.parseDemDists(MapBuilder.java:280) at uk.me.parabola.mkgmap.build.MapBuilder.config(MapBuilder.java:275) at uk.me.parabola.mkgmap.main.MapMaker.makeMap(MapMaker.java:113) at uk.me.parabola.mkgmap.main.MapMaker.makeMap(MapMaker.java:70) at uk.me.parabola.mkgmap.main.Main.lambda$processFilename$1(Main.java:290) at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:630) at java.base/java.lang.Thread.run(Thread.java:832) SEVERE (global): Exiting due to unexpected error Number of ExitExceptions: 1 Time finished: Sat May 15 14:27:05 CEST 2021 -- Felix Hartman - Openmtbmap.org & VeloMap.org

Hi Felix, the error is probably in the --dem-dists option Gerd ________________________________________ Von: mkgmap-dev <mkgmap-dev-bounces@lists.mkgmap.org.uk> im Auftrag von Felix Hartmann <extremecarver@gmail.com> Gesendet: Samstag, 15. Mai 2021 14:33 An: Development list for mkgmap Betreff: [mkgmap-dev] java.lang.NumberFormatException: For input string: "" This error happens on conoturlines generation - any ideas? Should I upload the files for debug? I first thought phyghtmap may have produced data with an empty string and on the ft to m conversion this error appears. However I kinda excluded that from happening by making sure only lines with a number are used & ( ele>0 | ele=0 | ele<0 ) Happens on a couple of countries worldwide and seems to be style related - but the same style works on most countries data so the style itself is not broken. SEVERE (global): Unexpected error java.lang.NumberFormatException: For input string: "" at java.base/java.lang.NumberFormatException.forInputString(NumberFormatException.java:68) at java.base/java.lang.Integer.parseInt(Integer.java:662) at java.base/java.lang.Integer.parseInt(Integer.java:770) at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:195) at java.base/java.util.Spliterators$ArraySpliterator.forEachRemaining(Spliterators.java:948) at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:484) at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474) at java.base/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:913) at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) at java.base/java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:578) at uk.me.parabola.mkgmap.build.MapBuilder.parseDemDists(MapBuilder.java:280) at uk.me.parabola.mkgmap.build.MapBuilder.config(MapBuilder.java:275) at uk.me.parabola.mkgmap.main.MapMaker.makeMap(MapMaker.java:113) at uk.me.parabola.mkgmap.main.MapMaker.makeMap(MapMaker.java:70) at uk.me.parabola.mkgmap.main.Main.lambda$processFilename$1(Main.java:290) at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:630) at java.base/java.lang.Thread.run(Thread.java:832) SEVERE (global): Exiting due to unexpected error Number of ExitExceptions: 1 Time finished: Sat May 15 14:27:05 CEST 2021 -- Felix Hartman - Openmtbmap.org & VeloMap.org

Oh thanks looks like it. I think it must have unset the value to empty due to some bug in my script. On Sat, 15 May 2021 at 20:40, Gerd Petermann < gpetermann_muenchen@hotmail.com> wrote:
Hi Felix,
the error is probably in the --dem-dists option
Gerd
________________________________________ Von: mkgmap-dev <mkgmap-dev-bounces@lists.mkgmap.org.uk> im Auftrag von Felix Hartmann <extremecarver@gmail.com> Gesendet: Samstag, 15. Mai 2021 14:33 An: Development list for mkgmap Betreff: [mkgmap-dev] java.lang.NumberFormatException: For input string: ""
This error happens on conoturlines generation - any ideas? Should I upload the files for debug?
I first thought phyghtmap may have produced data with an empty string and on the ft to m conversion this error appears. However I kinda excluded that from happening by making sure only lines with a number are used & ( ele>0 | ele=0 | ele<0 )
Happens on a couple of countries worldwide and seems to be style related - but the same style works on most countries data so the style itself is not broken.
SEVERE (global): Unexpected error java.lang.NumberFormatException: For input string: "" at java.base/java.lang.NumberFormatException.forInputString(NumberFormatException.java:68) at java.base/java.lang.Integer.parseInt(Integer.java:662) at java.base/java.lang.Integer.parseInt(Integer.java:770) at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:195) at java.base/java.util.Spliterators$ArraySpliterator.forEachRemaining(Spliterators.java:948) at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:484) at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474) at java.base/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:913) at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) at java.base/java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:578) at uk.me.parabola.mkgmap.build.MapBuilder.parseDemDists(MapBuilder.java:280) at uk.me.parabola.mkgmap.build.MapBuilder.config(MapBuilder.java:275) at uk.me.parabola.mkgmap.main.MapMaker.makeMap(MapMaker.java:113) at uk.me.parabola.mkgmap.main.MapMaker.makeMap(MapMaker.java:70) at uk.me.parabola.mkgmap.main.Main.lambda$processFilename$1(Main.java:290) at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:630) at java.base/java.lang.Thread.run(Thread.java:832) SEVERE (global): Exiting due to unexpected error Number of ExitExceptions: 1 Time finished: Sat May 15 14:27:05 CEST 2021
-- Felix Hartman - Openmtbmap.org & VeloMap.org
_______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk https://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
-- Felix Hartman - Openmtbmap.org & VeloMap.org
participants (2)
-
Felix Hartmann
-
Gerd Petermann