tboegi / GpsMaster

https://wiki.openstreetmap.org/wiki/GpsMaster
GNU General Public License v2.0
46 stars 7 forks source link

"Unable to parse configuration file" in 0.63.33 #3

Closed ABelliqueux closed 4 years ago

ABelliqueux commented 4 years ago

Hi, In 0.63.33, the following message appears on startup :

Unable to parse configuration file, using defaults. existing file will be overwritten on exit.

It prevents the addition of "onlineTileSources" in GpsMaster.config.

rfuegen commented 4 years ago

hi, this bug should be fixed in version 0.63.34.

compiled jar is available here: http://www.gpsmaster.org/download/

RealVegOs commented 4 years ago

Alas-Omaiomai! It is not! I still have this issue on Debian and Devuan too, each the latest version. Please fix it. The configuration file in $HOME is overwritten on exit with zero content, even if you created the file manually. BTW I do not like Java but I like the program after I experienced Viking to be quite stupid.

tboegi commented 4 years ago

Could you guys test to start GpsMaster like this: java --add-modules java.xml.bind -jar GpsMaster_0.63.34.JDK7-13.jar

https://stackoverflow.com/questions/43574426/how-to-resolve-java-lang-noclassdeffounderror-javax-xml-bind-jaxbexception-in-j

RealVegOs commented 4 years ago

I got this: ~$ java --add-modules java.xml.bind -jar GpsMaster/GpsMaster.jar Error occurred during initialization of boot layer java.lang.module.FindException: Module java.xml.bind not found

I googled a bit: See here: https://www.oracle.com/technetwork/java/javase/11-relnote-issues-5012449.html#JDK-8190378

Found this hint here: https://stackoverflow.com/questions/52502189/java-11-package-javax-xml-bind-does-not-exist

Don't know whether it helps you, I'm no dev. Cheers

tboegi commented 4 years ago

Thanks for testing - Which java version do you use ? (I wish that I had all versions in house, but I haven't. So I would need your help here)

Rakambda commented 4 years ago

I got the same error with

$ java --version
openjdk 14.0.1 2020-04-14
OpenJDK Runtime Environment AdoptOpenJDK (build 14.0.1+7)
OpenJDK 64-Bit Server VM AdoptOpenJDK (build 14.0.1+7, mixed mode, sharing)
RealVegOs commented 4 years ago

openjdk 11.0.6 2020-01-14 OpenJDK Runtime Environment (build 11.0.6+10-post-Debian-1deb10u1) OpenJDK 64-Bit Server VM (build 11.0.6+10-post-Debian-1deb10u1, mixed mode, sharing)

If fixed, would GpsMaster also save it's last status (opened tracks etc.)?

rfuegen commented 4 years ago

as of now, GpsMaster saves on exit:

hth.

tboegi commented 4 years ago

Folks, I uploaded 2 jar.gz files. If you have Java 11, please download the GpsMaster_0.63.35.JDK11-and-higher.jar.gz file, unpack and test.

Java 7/8 users should use the GpsMaster_0.63.35.JDK7-8.jar.gz file. Java 9/10 users could use GpsMaster_0.63.35.JDK7-8.jar.gz as well, they have to live with the config file problem (or install a later Java version, sorry guys)

Rakambda commented 4 years ago

Solves the problem for me (JDK 14)

RealVegOs commented 4 years ago

Where to download? I cant find it on http://www.gpsmaster.org/download/.

Rakambda commented 4 years ago

On the releases page (https://github.com/tboegi/GpsMaster/releases/tag/v0.63.35-rc0)

tboegi commented 4 years ago

Thanks for testing. @rfuegen : Could you download the jar to the official page?

RealVegOs commented 4 years ago

THX wagons full of much!

RealVegOs commented 4 years ago

Works for me too. Thanks again.

rfuegen commented 4 years ago

upload to http://www.gpsmaster.org/download/ done.

tboegi commented 4 years ago

http://www.gpsmaster.org/download/