Closed RHydrix closed 3 years ago
Spigot changed the plugin class loader recently. I think it's caused by that.
Same on Paper version git-Paper-693 (MC: 1.16.5) (Implementing API version 1.16.5-R0.1-SNAPSHOT) WorldEdit version 7.2.5+57d5ac9 AsyncWorldEdit version 3.8.3
Same
Looks like a problem caused by change in Spigot:
[20:33:43] [Server thread/INFO]: [AsyncWorldEdit] * org.bukkit.plugin.java.JavaPluginLoader.getClassByName(JavaPluginLoader.java:229)
[20:33:43] [Server thread/INFO]: [AsyncWorldEdit] * org.bukkit.plugin.java.PluginClassLoader.loadClass0(PluginClassLoader.java:131)
[20:33:43] [Server thread/INFO]: [AsyncWorldEdit] * org.bukkit.plugin.java.PluginClassLoader.loadClass(PluginClassLoader.java:114)
[20:33:43] [Server thread/INFO]: [AsyncWorldEdit] * java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
[20:33:43] [Server thread/INFO]: [AsyncWorldEdit] * java.base/java.lang.ClassLoader.defineClass1(Native Method)
[20:33:43] [Server thread/INFO]: [AsyncWorldEdit] * java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1016)
[20:33:43] [Server thread/INFO]: [AsyncWorldEdit] * java.base/java.security.SecureClassLoader.defineClass(SecureClassLoader.java:174)
[20:33:43] [Server thread/INFO]: [AsyncWorldEdit] * java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[20:33:43] [Server thread/INFO]: [AsyncWorldEdit] * java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
[20:33:43] [Server thread/INFO]: [AsyncWorldEdit] * java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[20:33:43] [Server thread/INFO]: [AsyncWorldEdit] * java.base/java.lang.reflect.Method.invoke(Method.java:566)
[20:33:43] [Server thread/INFO]: [AsyncWorldEdit] * org.primesoft.asyncworldedit.injector.ClassInjectorBukkit.injectClass(ClassInjectorBukkit.java:133)
Different stack trace
[09:34:50] [Server thread/INFO]: [AsyncWorldEdit] * Error message: Cannot invoke "org.bukkit.plugin.java.JavaPlugin.getDescription()" because "loader.plugin" is null
[09:34:50] [Server thread/INFO]: [AsyncWorldEdit] * Stack:
[09:34:50] [Server thread/INFO]: [AsyncWorldEdit] * org.bukkit.plugin.java.JavaPluginLoader.getClassByName(JavaPluginLoader.java:229)
[09:34:50] [Server thread/INFO]: [AsyncWorldEdit] * org.bukkit.plugin.java.PluginClassLoader.loadClass0(PluginClassLoader.java:131)
[09:34:50] [Server thread/INFO]: [AsyncWorldEdit] * org.bukkit.plugin.java.PluginClassLoader.loadClass(PluginClassLoader.java:114)
[09:34:50] [Server thread/INFO]: [AsyncWorldEdit] * java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:519)
[09:34:50] [Server thread/INFO]: [AsyncWorldEdit] * java.base/java.lang.ClassLoader.defineClass1(Native Method)
[09:34:50] [Server thread/INFO]: [AsyncWorldEdit] * java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1010)
[09:34:50] [Server thread/INFO]: [AsyncWorldEdit] * java.base/java.security.SecureClassLoader.defineClass(SecureClassLoader.java:150)
[09:34:50] [Server thread/INFO]: [AsyncWorldEdit] * java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[09:34:50] [Server thread/INFO]: [AsyncWorldEdit] * java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:78)
[09:34:50] [Server thread/INFO]: [AsyncWorldEdit] * java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[09:34:50] [Server thread/INFO]: [AsyncWorldEdit] * java.base/java.lang.reflect.Method.invoke(Method.java:567)
[09:34:50] [Server thread/INFO]: [AsyncWorldEdit] * org.primesoft.asyncworldedit.injector.ClassInjectorBukkit.injectClass(ClassInjectorBukkit.java:133)
Sorry for mixing topics - https://github.com/SBPrime/AsyncWorldEdit/issues/377#issuecomment-844129139
Did you have a link to this 3 week old working WE on Java 16 working with the temp AWE hack?
Thanks :)
Sorry I removed that JAR when I started diagnosing the issue.
That said, I managed to add a fix to the plugin (not the best piece of code but still does its job ;) ).
I will push a release within next 48h, I still need to do proper tests on this. You can ask on the forum, perhaps someone can help you.
latest.log
I removed all plugins except for worldedit version 7.2.5, and AsyncWorldEdit 3.8.3
Server is on Paper Spigot 1.16.5 version 686 any ideas?