bergerhealer / TrainCarts

Minecarts redefined
MIT License
206 stars 64 forks source link

Cannot invoke "Object.getClass()" because "o" is null #469

Closed Leonardus123 closed 1 year ago

Leonardus123 commented 1 year ago

Info

Please provide the following information:


Bug

Description

[13:58:00] [Server thread/INFO]: [Train_Carts] Loading server plugin Train_Carts v1.19.3-v1 [13:58:00] [Server thread/ERROR]: [Train_Carts] [Preloader] Failed to update class loader registry java.lang.NullPointerException: Cannot invoke "Object.getClass()" because "o" is null at jdk.internal.reflect.UnsafeFieldAccessorImpl.ensureObj(UnsafeFieldAccessorImpl.java:57) ~[?:?] at jdk.internal.reflect.UnsafeQualifiedObjectFieldAccessorImpl.get(UnsafeQualifiedObjectFieldAccessorImpl.java:38) ~[?:?] at java.lang.reflect.Field.get(Field.java:425) ~[?:?] at com.bergerkiller.bukkit.tc.Preloader.setLoaderPluginField(Preloader.java:350) ~[TrainCarts-1.19.3-v1-1278.jar:?] at com.bergerkiller.bukkit.tc.Preloader.onLoad(Preloader.java:173) ~[TrainCarts-1.19.3-v1-1278.jar:?] at io.papermc.paper.plugin.storage.ServerPluginProviderStorage.processProvided(ServerPluginProviderStorage.java:59) ~[purpur-1.19.3.jar:git-Purpur-1918] at io.papermc.paper.plugin.storage.ServerPluginProviderStorage.processProvided(ServerPluginProviderStorage.java:18) ~[purpur-1.19.3.jar:git-Purpur-1918] at io.papermc.paper.plugin.storage.SimpleProviderStorage.enter(SimpleProviderStorage.java:36) ~[purpur-1.19.3.jar:git-Purpur-1918] at io.papermc.paper.plugin.entrypoint.LaunchEntryPointHandler.enter(LaunchEntryPointHandler.java:37) ~[purpur-1.19.3.jar:git-Purpur-1918] at org.bukkit.craftbukkit.v1_19_R2.CraftServer.loadPlugins(CraftServer.java:443) ~[purpur-1.19.3.jar:git-Purpur-1918] at net.minecraft.server.dedicated.DedicatedServer.initServer(DedicatedServer.java:309) ~[purpur-1.19.3.jar:git-Purpur-1918] at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1117) ~[purpur-1.19.3.jar:git-Purpur-1918] at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:321) ~[purpur-1.19.3.jar:git-Purpur-1918] at java.lang.Thread.run(Thread.java:833) ~[?:?] [13:58:00] [Server thread/ERROR]: [Train_Carts] [Preloader] Failed to update class loader registry java.lang.NullPointerException: Cannot invoke "Object.getClass()" because "o" is null at jdk.internal.reflect.UnsafeFieldAccessorImpl.ensureObj(UnsafeFieldAccessorImpl.java:57) ~[?:?] at jdk.internal.reflect.UnsafeQualifiedObjectFieldAccessorImpl.get(UnsafeQualifiedObjectFieldAccessorImpl.java:38) ~[?:?] at java.lang.reflect.Field.get(Field.java:425) ~[?:?] at com.bergerkiller.bukkit.tc.Preloader.setLoaderPluginField(Preloader.java:350) ~[TrainCarts-1.19.3-v1-1278.jar:?] at com.bergerkiller.bukkit.tc.Preloader.swapPluginFieldEverywhere(Preloader.java:283) ~[TrainCarts-1.19.3-v1-1278.jar:?] at com.bergerkiller.bukkit.tc.Preloader.onLoad(Preloader.java:188) ~[TrainCarts-1.19.3-v1-1278.jar:?] at io.papermc.paper.plugin.storage.ServerPluginProviderStorage.processProvided(ServerPluginProviderStorage.java:59) ~[purpur-1.19.3.jar:git-Purpur-1918] at io.papermc.paper.plugin.storage.ServerPluginProviderStorage.processProvided(ServerPluginProviderStorage.java:18) ~[purpur-1.19.3.jar:git-Purpur-1918] at io.papermc.paper.plugin.storage.SimpleProviderStorage.enter(SimpleProviderStorage.java:36) ~[purpur-1.19.3.jar:git-Purpur-1918] at io.papermc.paper.plugin.entrypoint.LaunchEntryPointHandler.enter(LaunchEntryPointHandler.java:37) ~[purpur-1.19.3.jar:git-Purpur-1918] at org.bukkit.craftbukkit.v1_19_R2.CraftServer.loadPlugins(CraftServer.java:443) ~[purpur-1.19.3.jar:git-Purpur-1918] at net.minecraft.server.dedicated.DedicatedServer.initServer(DedicatedServer.java:309) ~[purpur-1.19.3.jar:git-Purpur-1918] at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1117) ~[purpur-1.19.3.jar:git-Purpur-1918] at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:321) ~[purpur-1.19.3.jar:git-Purpur-1918] at java.lang.Thread.run(Thread.java:833) ~[?:?] [13:58:00] [Server thread/ERROR]: [Train_Carts] [Preloader] Failed to fully register the plugin into the server java.lang.IllegalStateException: Preloader does not exist in plugins list at com.bergerkiller.bukkit.tc.Preloader.swapPluginFieldEverywhere(Preloader.java:296) ~[TrainCarts-1.19.3-v1-1278.jar:?] at com.bergerkiller.bukkit.tc.Preloader.onLoad(Preloader.java:188) ~[TrainCarts-1.19.3-v1-1278.jar:?] at io.papermc.paper.plugin.storage.ServerPluginProviderStorage.processProvided(ServerPluginProviderStorage.java:59) ~[purpur-1.19.3.jar:git-Purpur-1918] at io.papermc.paper.plugin.storage.ServerPluginProviderStorage.processProvided(ServerPluginProviderStorage.java:18) ~[purpur-1.19.3.jar:git-Purpur-1918] at io.papermc.paper.plugin.storage.SimpleProviderStorage.enter(SimpleProviderStorage.java:36) ~[purpur-1.19.3.jar:git-Purpur-1918] at io.papermc.paper.plugin.entrypoint.LaunchEntryPointHandler.enter(LaunchEntryPointHandler.java:37) ~[purpur-1.19.3.jar:git-Purpur-1918] at org.bukkit.craftbukkit.v1_19_R2.CraftServer.loadPlugins(CraftServer.java:443) ~[purpur-1.19.3.jar:git-Purpur-1918] at net.minecraft.server.dedicated.DedicatedServer.initServer(DedicatedServer.java:309) ~[purpur-1.19.3.jar:git-Purpur-1918] at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1117) ~[purpur-1.19.3.jar:git-Purpur-1918] at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:321) ~[purpur-1.19.3.jar:git-Purpur-1918] at java.lang.Thread.run(Thread.java:833) ~[?:?]

Additional Information

bergerkiller commented 1 year ago

Oh no not here too.

Paper changed the plugin loader. Download dev builds from https://ci.mg-dev.eu

bergerkiller commented 1 year ago

I've uploaded a new update to spigot and modrinth