when we setup a Spark client we configure it to login automatically (Save Password, Auto login, Launch on startup) and the user doesn’t log out when he turns off his PC. We have noticed that version 3.1.0 of Spark randomly forgets those credentials when a user turns on his PC. Instead of the saved user credentials it replaces the Spark username and domain with the Windows domain username and name of the domain. This behavior was not present in Spark versions 3.0.2 and 3.0.3.
Spark version : Spark 3.1.0
JRE Version: 25.0.1 amd64
Openfire version : Openfire 5.0.4, build ef7aa07 , 32bit
what I forgot to mention in the previous post, is that when this problem occurs, Spark essentially resets all configuration parameters to their default values, not just those related to saved user credentials.
Yes, there are some threading problems. Please check on next release, I made some code improvements that must reduce problems, but I didn’t worked specifically on this yet
We have been trying out the latest nightly build versions (last checked 2026-06-09) and the issue still appears intermittently. Did you get a chance to have a look at this?
Do you have SSO enabled? I see that I made some improvements on the 6 Jun so you probably tested the version with those changes. Anyway, you may also try the latest nightly version for today:
From the code I don’t see any problems. You may try to debug yourself in IDE. Or maybe you can try to remove the Spark folder (C:\Users\username\AppData\Roaming\Spark) and try to login from scratch.
Hello stokito, Im one of teob’s colleagues, 3 of us will install spark_3_1_0-20260705-with-jre-amd64.exe today and check. We have removed the appdata folder with previous versions and it didnt help. We are not using SSO. We have used versions following the June 6 and we still had the issue. It happens approximately once every 10-15 times Windows boot on every PC we have installed 3.1.xxx.
It still happened to two of us which did an upgrade and didnt delete the appdata folder. The 3rd is ok still (its way too early to tell though), we will delete the appdata folder and retry.
Thanks a lot!! We’ll try the newest nightly build tomorrow and let you know, though I would give it at least a week to be relatively certain that this particular problem will not occur again.
Maybe we missing something. Can you describe step by step:
You have enabled Save password and Auto login.
A user sign in without a problem and the password was saved
A user restarting a PC and on the Spark is launched automatically and it tries to sign in automatically, But at this point the password wasn’t loaded and the password field is empty so the login fails.
Maybe during a restart the Spark is killed by the Windows so it didn’t saved settings. Still, if the password was saved before it should remain in the spark.properties file. But you need at least once exit the Spark manually so that settings are saved.
Currently there is also another one known bug with auto login but it looks unrelated Jira
No, a user signs in without a problem and the password is saved indeed but after a few restarts (the next few days) the fields change info! The local Openfire user gets changed to the domain user! In the domain field, instead of the Openfire Server domain name, suddenly the company’s domain name appears! Hmm about the Jira bug, we changed the settings to enabling encryption recently. We will try without encryption.
I think the only way why this may happen is the spark.properties failed read on start and then overwritten with empty values on the shutdown.
Don’t you use a network share so the file is not opened immideatelly or some backup tool that can override the file?
I added a code that should stop login if the username was empty i.e. not loaded. It should also show an error message with the loaded properties (passwords will be hidden). Just to ensure that we do have something loaded from a file.
Also when this happens please check logs and share with me if anything suscipious there.