logo separator

[mkgmap-dev] java.lang.NumberFormatException: For input string: ""

From Gerd Petermann gpetermann_muenchen at hotmail.com on Sat May 15 13:40:24 BST 2021

Hi Felix,

the error is probably in the --dem-dists option

Gerd

________________________________________
Von: mkgmap-dev <mkgmap-dev-bounces at lists.mkgmap.org.uk> im Auftrag von Felix Hartmann <extremecarver at 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



More information about the mkgmap-dev mailing list