Sponge NoClassDefFoundError sometimes
whimxiqal opened this issue ยท 6 comments
Description
When I start the server from scratch (no luckperms root folder or config folder), it starts correctly. After usually one or two restarts, I get a NoClassDefFoundError
for me/lucko/luckperms/lib/configurate/loader/ConfigurationLoader
. I'm not sure what causes it, but something else that is strange is that the on the first run, the server does not shut down fully. I have to manually close out the console every time I start LuckPerms from scratch.
Reproduction Steps
- Start up server for the first time
- Shut down (observe console hanging after all "All chunks are saved" messages)
- Force quit
- Start up server again
- Observe error like this
Expected Behaviour
The server should start and shut down normally
Server Details
spongevanilla-1.16.5-8.0.0-RC1055-universal
LuckPerms Version
LuckPerms-Sponge-5.3.103
Logs and Configs
https://gist.github.com/pietelite/86f5a0142fe24669f95cf084b89f8134
Extra Details
No response
I've also been able to reproduce this and observed the same thing, happens sometimes and not others.
I think it could be a Sponge classloading issue (perhaps due to parallel loading?).
Should be resolved in LuckPerms-Sponge-5.4.4, SpongeVanilla 1.16.5-8.0.0-RC1074 and SpongeForge 1.16.5-36.2.5-8.0.0-RC1074
LuckPerms requires several libraries in order to operate. If you're getting a startup error such as NoClassDefFoundError, ClassNotFoundException or "Unable to load dependency...", stop your server, delete the /plugins/LuckPerms/libs/ directory and start it up again.
Are you thinking Bukkit/Spigot when you say the plugins/LuckPerms/libs
directory? In Sponge, the folders are mods/
for the jars and another root data directory luckperms/
. I've already tried deleted all things related to LuckPerms and restarting with no other mods and this same error appears.
I've even created a completely fresh server with spongevanilla-1.16.5-8.0.0-RC1055-universal
running only LuckPerms-Sponge-5.3.103
and the issue persists.
Try updating to the latest version of Luckperms and see if it still happens
After
- replacing with
v5.4.2
- deleting all luckperms files
- restarting server
- adding a new group called "admins"
- closing server (observing the shut-down process hang and need to be forced shut, as before)
- restarting with no problems
- shutting down once more (this time with no error)
- and then restarting once more
the same errors as before have appeared.