Error resulting in plugin not starting
ThatPCDude opened this issue ยท 7 comments
Description
When I start my server, LuckPerms errors out since I upgraded from version 5.3.47 to 5.3.74 and from MC version 1.16.5 to 1.17.1. I have tried a lot of things to get it working again, but to no avail. Is there any way this can be fixed?
Reproduction Steps
Starting my server (35 individual plugins, newly migrated from 1.16.5)
Expected Behaviour
LuckPerms to start up and not break the rest of the server.
Server Details
git-paper-394
LuckPerms Version
v5.3.74
Logs and Configs
[13:48:38] [Server thread/ERROR]: Error occurred while enabling LuckPerms v5.3.74 (Is it up to date?)
java.lang.NoClassDefFoundError: me/lucko/luckperms/lib/okhttp3/OkHttpClient$Builder
at me.lucko.luckperms.common.plugin.AbstractLuckPermsPlugin.enable(AbstractLuckPermsPlugin.java:132) ~[?:?]
at me.lucko.luckperms.bukkit.LPBukkitBootstrap.onEnable(LPBukkitBootstrap.java:175) ~[?:?]
at me.lucko.luckperms.bukkit.loader.BukkitLoaderPlugin.onEnable(BukkitLoaderPlugin.java:51) ~[LuckPerms-Bukkit-5.3.74.jar:?]
at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:264) ~[patched_1.17.1.jar:git-Paper-349]
at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:370) ~[patched_1.17.1.jar:git-Paper-349]
at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:500) ~[patched_1.17.1.jar:git-Paper-349]
at org.bukkit.craftbukkit.v1_17_R1.CraftServer.enablePlugin(CraftServer.java:561) ~[patched_1.17.1.jar:git-Paper-349]
at org.bukkit.craftbukkit.v1_17_R1.CraftServer.enablePlugins(CraftServer.java:475) ~[patched_1.17.1.jar:git-Paper-349]
at net.minecraft.server.dedicated.DedicatedServer.initServer(DedicatedServer.java:288) ~[patched_1.17.1.jar:git-Paper-349]
at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1217) ~[patched_1.17.1.jar:git-Paper-349]
at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:319) ~[patched_1.17.1.jar:git-Paper-349]
at java.lang.Thread.run(Thread.java:831) ~[?:?]
Caused by: java.lang.ClassNotFoundException: me.lucko.luckperms.lib.okhttp3.OkHttpClient$Builder
at java.net.URLClassLoader.findClass(URLClassLoader.java:433) ~[?:?]
at java.lang.ClassLoader.loadClass(ClassLoader.java:586) ~[?:?]
at java.lang.ClassLoader.loadClass(ClassLoader.java:519) ~[?:?]
... 12 more
[13:48:38] [Server thread/INFO]: [LuckPerms] Disabling LuckPerms v5.3.74
[13:48:38] [Server thread/INFO]: [LuckPerms] Starting shutdown process...
[13:48:38] [Server thread/ERROR]: Error occurred while disabling LuckPerms v5.3.74 (Is it up to date?)
java.lang.NullPointerException: Cannot invoke "me.lucko.luckperms.common.extension.SimpleExtensionManager.close()" because "this.extensionManager" is null
at me.lucko.luckperms.common.plugin.AbstractLuckPermsPlugin.disable(AbstractLuckPermsPlugin.java:235) ~[?:?]
at me.lucko.luckperms.bukkit.LPBukkitBootstrap.onDisable(LPBukkitBootstrap.java:191) ~[?:?]
at me.lucko.luckperms.bukkit.loader.BukkitLoaderPlugin.onDisable(BukkitLoaderPlugin.java:56) ~[LuckPerms-Bukkit-5.3.74.jar:?]
at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:266) ~[patched_1.17.1.jar:git-Paper-349]
at org.bukkit.plugin.java.JavaPluginLoader.disablePlugin(JavaPluginLoader.java:399) ~[patched_1.17.1.jar:git-Paper-349]
at org.bukkit.plugin.SimplePluginManager.disablePlugin(SimplePluginManager.java:537) ~[patched_1.17.1.jar:git-Paper-349]
at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:374) ~[patched_1.17.1.jar:git-Paper-349]
at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:500) ~[patched_1.17.1.jar:git-Paper-349]
at org.bukkit.craftbukkit.v1_17_R1.CraftServer.enablePlugin(CraftServer.java:561) ~[patched_1.17.1.jar:git-Paper-349]
at org.bukkit.craftbukkit.v1_17_R1.CraftServer.enablePlugins(CraftServer.java:475) ~[patched_1.17.1.jar:git-Paper-349]
at net.minecraft.server.dedicated.DedicatedServer.initServer(DedicatedServer.java:288) ~[patched_1.17.1.jar:git-Paper-349]
at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1217) ~[patched_1.17.1.jar:git-Paper-349]
at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:319) ~[patched_1.17.1.jar:git-Paper-349]
at java.lang.Thread.run(Thread.java:831) ~[?:?]
Extra Details
No response
Use bukkit-legacy
for 1.7 servers. https://ci.lucko.me/job/LuckPerms/1373/artifact/bukkit-legacy/loader/build/libs/LuckPerms-Bukkit-Legacy-5.3.74.jar
java.lang.NoClassDefFoundError
Try deleting the libs folder from inside the luckperms folder while the server is currently not running.
This is often a good way to fix it - but not always the golden one. Try? :3