I've been seeing this issue every time I try and login. I tried deleting the GLOBAL_prefs.txt file and letting it be recreated, that doesn't fix the problem.
Today, I started KoLmafia (r9679) directly in a linux console window instead of launching it via MafiaUpdate, and I see that the following exception is being thrown when it hangs at the "Sending login request...." message:
Code:
Exception in thread "ConfirmedListener" java.lang.ExceptionInInitializerError
at net.sourceforge.kolmafia.KoLCharacter.reset(KoLCharacter.java:660)
at net.sourceforge.kolmafia.KoLCharacter.reset(KoLCharacter.java:538)
at net.sourceforge.kolmafia.KoLmafia.initialize(KoLmafia.java:792)
at net.sourceforge.kolmafia.KoLmafiaGUI.initialize(KoLmafiaGUI.java:141)
at net.sourceforge.kolmafia.KoLmafia.login(KoLmafia.java:699)
at net.sourceforge.kolmafia.request.LoginRequest.processLoginRequest(LoginRequest.java:425)
at net.sourceforge.kolmafia.request.GenericRequest.handleServerRedirect(GenericRequest.java:1653)
at net.sourceforge.kolmafia.request.GenericRequest.retrieveServerReply(GenericRequest.java:1583)
at net.sourceforge.kolmafia.request.GenericRequest.execute(GenericRequest.java:1297)
at net.sourceforge.kolmafia.request.GenericRequest.run(GenericRequest.java:1188)
at net.sourceforge.kolmafia.request.LoginRequest.run(LoginRequest.java:278)
at net.sourceforge.kolmafia.RequestThread.postRequest(RequestThread.java:73)
at net.sourceforge.kolmafia.swingui.LoginFrame$LoginPanel.doLogin(LoginFrame.java:353)
at net.sourceforge.kolmafia.swingui.LoginFrame$LoginPanel.actionConfirmed(LoginFrame.java:300)
at net.java.dev.spellcast.utilities.ActionPanel$ConfirmedListener.run(ActionPanel.java:164)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.NullPointerException
at net.sourceforge.kolmafia.persistence.CoinmastersDatabase.registerPurchaseRequest(CoinmastersDatabase.java:275)
at net.sourceforge.kolmafia.CoinmasterData.registerPurchaseRequests(CoinmasterData.java:350)
at net.sourceforge.kolmafia.CoinmasterRegistry.<clinit>(CoinmasterRegistry.java:90)
... 16 more
I also tried starting it in a Windows console (using "java -jar KoLmafia-9679.jar") and I see the same exception when it hangs at "Sending login request..."
In both cases, if I press ESC (causing "KoLmafia declares world peace" to be displayed), then wait about 15-20 seconds, I can then press the "Login" button and either it will log in straight away or I get a "Login reattempt in 1 minute, 15 seconds..." countdown. If I don't wait 15-20 seconds, then I usually see "Too many login attempts, please wait 5 minutes and try again".
Also, once I have logged in, if I choose "General | Exit KoLmafia" from the menu (or press the system "Close" button), instead of exiting from KoLmafia, it throws the following exception and goes back to the Login window:
Code:
[ConditionalEventPump] Exception occurred during event dispatching:
java.lang.NoClassDefFoundError: Could not initialize class net.sourceforge.kolmafia.CoinmasterRegistry
at net.sourceforge.kolmafia.KoLCharacter.reset(KoLCharacter.java:660)
at net.sourceforge.kolmafia.KoLCharacter.reset(KoLCharacter.java:538)
at net.sourceforge.kolmafia.request.LogoutRequest.run(LogoutRequest.java:98)
at net.sourceforge.foxtrot.AbstractWorkerThread$1.run(AbstractWorkerThread.java:40)
at java.security.AccessController.doPrivileged(Native Method)
at net.sourceforge.foxtrot.AbstractWorkerThread.runTask(AbstractWorkerThread.java:36)
at net.sourceforge.foxtrot.workers.SingleWorkerThread.run(SingleWorkerThread.java:199)
at net.sourceforge.foxtrot.workers.SingleWorkerThread.run(SingleWorkerThread.java:182)
at java.lang.Thread.run(Unknown Source)
If I choose "General | Exit KoLmafia" again from the Login window, then KoLmafia exits normally.
Attempting to login again at that point hangs at "Sending login request..." and produces the first exception again.
Testing with an older version (r9651), I see exactly the same exception and stack trace when trying to log in (other than a few differences in some of the line numbers):
Code:
Exception in thread "ConfirmedListener" java.lang.ExceptionInInitializerError
at net.sourceforge.kolmafia.KoLCharacter.reset(KoLCharacter.java:660)
at net.sourceforge.kolmafia.KoLCharacter.reset(KoLCharacter.java:538)
at net.sourceforge.kolmafia.KoLmafia.initialize(KoLmafia.java:792)
at net.sourceforge.kolmafia.KoLmafiaGUI.initialize(KoLmafiaGUI.java:141)
at net.sourceforge.kolmafia.KoLmafia.login(KoLmafia.java:699)
at net.sourceforge.kolmafia.request.LoginRequest.processLoginRequest(LoginRequest.java:425)
at net.sourceforge.kolmafia.request.GenericRequest.handleServerRedirect(GenericRequest.java:1646)
at net.sourceforge.kolmafia.request.GenericRequest.retrieveServerReply(GenericRequest.java:1576)
at net.sourceforge.kolmafia.request.GenericRequest.execute(GenericRequest.java:1288)
at net.sourceforge.kolmafia.request.GenericRequest.run(GenericRequest.java:1179)
at net.sourceforge.kolmafia.request.LoginRequest.run(LoginRequest.java:278)
at net.sourceforge.kolmafia.RequestThread.postRequest(RequestThread.java:73)
at net.sourceforge.kolmafia.swingui.LoginFrame$LoginPanel.doLogin(LoginFrame.java:353)
at net.sourceforge.kolmafia.swingui.LoginFrame$LoginPanel.actionConfirmed(LoginFrame.java:300)
at net.java.dev.spellcast.utilities.ActionPanel$ConfirmedListener.run(ActionPanel.java:164)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.NullPointerException
at net.sourceforge.kolmafia.persistence.CoinmastersDatabase.registerPurchaseRequest(CoinmastersDatabase.java:275)
at net.sourceforge.kolmafia.CoinmasterData.registerPurchaseRequests(CoinmasterData.java:348)
at net.sourceforge.kolmafia.CoinmasterRegistry.<clinit>(CoinmasterRegistry.java:90)
... 16 more
Probably unrelated, but I've also been seeing the
GUI stuck in gray mode issue in all the builds I've tried since r9651. Unfortunately since MafiaUpdate overwrites the .jar file each time it downloads a new build, I can't say for certain exactly which ones I've tried, other than to confirm that it still happens in r9679. I have to go back to r9651 if I want to do any automated adventuring at all.