AuthMe Reloaded

AuthMe Reloaded

3M Downloads

1.17.1 Could not save LimboPlayer

smario82 opened this issue ยท 7 comments

commented

config.yml.txt

Steps/models to reproduce:

Register or login

Plugin list:

AuthMe, InvisibleItemFrames, ProtocolLib, SkinsRestorer, sleep-most

Environment description

Standalone server, SQLite
Paper version git-Paper-219 (MC: 1.17.1) (Implementing API version 1.17.1-R0.1-SNAPSHOT) (Git: 0a6d320)

AuthMe build number:

AuthMe v5.6.0-beta2-b2453

Error Log:

WARN]: [AuthMe] Could not save LimboPlayer for 'PlayerName' [InaccessibleObjectException]: Unable to make private java.util.Collections$EmptyList() accessible: module java.base does not "opens java.util" to unnamed module @3330b662

Configuration:

Pastebin/Hastebin/Gist link of your config.yml file (remember to delete any sensitive data)

commented

Same

commented

As a temp fix I wonder if it's possible for us to make sure that we never set the limbo player's groups to Collections#emptyList. I think that would entail changing LimboServiceHelper (L46) and LimboPlayerDeserializer#getLimboGroups to use something like new ArrayList<>() instead.

Surprising that Gson needs to access internal stuff when it knows it's a structure but I don't know anything about its inner workings.

Edit: And to be on the safe side the method I mentioned in LimboPlayerDeserializer probably also shouldn't use Collections#singletonList.

commented

@smario82 @WongIong please try again with the latest dev build

commented

Apologies for not being able to test myself at the moment but if someone of you encountering the issue want to try with build n. 2500 or above from https://ci.codemc.io/job/AuthMe/job/AuthMeReloaded/ it would be great if you could do so and report your findings. If the reason for the bug is what I believe it is, it should be fixed.

commented

On Server: Paper version git-Paper-388 (MC: 1.17.1) (Implementing API version 1.17.1-R0.1-SNAPSHOT) (Git: 22aaf91)
with the latest dev-build it works without errors. Thanks!

commented

[WARN]: [AuthMe] Could not save LimboPlayer for 'UserName' [Ina
ccessibleObjectException]: Unable to make private java.util.Collections$EmptyLis
t() accessible: module java.base does not "opens java.util" to unnamed module @7
920ba90