erikzimmermann / TradeSystem

A highly customizable, free and open-source Minecraft plugin for trading between players.
https://www.spigotmc.org/resources/trade-system-custom-layouts.58434/
MIT License
81 stars 48 forks source link

java.lang.NoClassDefFoundError: 1.20.4 support #539

Closed daniel-skopek closed 3 months ago

daniel-skopek commented 5 months ago

After compiled plugin from the source, the plugin won't start on 1.20.4. Is support for this version removed?

Error: https://pastebin.com/raw/fUne3ZKQ

krouskystepan commented 5 months ago

I have similar problem with version 1.20.6

[ERROR] Error occurred while enabling TradeSystem v2.5.3 (Is it up to date?)
java.lang.ExceptionInInitializerError: null
at TradeSystem_v2.5.3.jar/de.codingair.tradesystem.lib.codingapi.player.Hologram$HologramPackets.getArmorStandClass(Hologram.java:672) ~[TradeSystem_v2.5.3.jar:?]
at TradeSystem_v2.5.3.jar/de.codingair.tradesystem.lib.codingapi.player.Hologram.<clinit>(Hologram.java:36) ~[TradeSystem_v2.5.3.jar:?]
at TradeSystem_v2.5.3.jar/de.codingair.tradesystem.lib.codingapi.API.initPlugin(API.java:147) ~[TradeSystem_v2.5.3.jar:?]
at TradeSystem_v2.5.3.jar/de.codingair.tradesystem.lib.codingapi.API.onEnable(API.java:50) ~[TradeSystem_v2.5.3.jar:?]
at TradeSystem_v2.5.3.jar/de.codingair.tradesystem.spigot.TradeSystem.onEnable(TradeSystem.java:98) ~[TradeSystem_v2.5.3.jar:?]
at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:287) ~[purpur-api-1.20.6-R0.1-SNAPSHOT.jar:?]
at io.papermc.paper.plugin.manager.PaperPluginInstanceManager.enablePlugin(PaperPluginInstanceManager.java:202) ~[purpur-1.20.6.jar:1.20.6-2221-847719c]
at io.papermc.paper.plugin.manager.PaperPluginManagerImpl.enablePlugin(PaperPluginManagerImpl.java:109) ~[purpur-1.20.6.jar:1.20.6-2221-847719c]
at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:519) ~[purpur-api-1.20.6-R0.1-SNAPSHOT.jar:?]
at org.bukkit.craftbukkit.CraftServer.enablePlugin(CraftServer.java:618) ~[purpur-1.20.6.jar:1.20.6-2221-847719c]
at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:567) ~[purpur-1.20.6.jar:1.20.6-2221-847719c]
at net.minecraft.server.MinecraftServer.loadWorld0(MinecraftServer.java:678) ~[purpur-1.20.6.jar:1.20.6-2221-847719c]
at net.minecraft.server.MinecraftServer.loadLevel(MinecraftServer.java:440) ~[purpur-1.20.6.jar:1.20.6-2221-847719c]
at net.minecraft.server.dedicated.DedicatedServer.initServer(DedicatedServer.java:357) ~[purpur-1.20.6.jar:1.20.6-2221-847719c]
at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1150) ~[purpur-1.20.6.jar:1.20.6-2221-847719c]
at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:326) ~[purpur-1.20.6.jar:1.20.6-2221-847719c]
at java.base/java.lang.Thread.run(Unknown Source) ~[?:?]
Caused by: java.lang.StringIndexOutOfBoundsException: Range [23, 22) out of bounds for length 22
at java.base/jdk.internal.util.Preconditions$1.apply(Unknown Source) ~[?:?]
at java.base/jdk.internal.util.Preconditions$1.apply(Unknown Source) ~[?:?]
at java.base/jdk.internal.util.Preconditions$4.apply(Unknown Source) ~[?:?]
at java.base/jdk.internal.util.Preconditions$4.apply(Unknown Source) ~[?:?]
at java.base/jdk.internal.util.Preconditions.outOfBounds(Unknown Source) ~[?:?]
at java.base/jdk.internal.util.Preconditions.outOfBoundsCheckFromToIndex(Unknown Source) ~[?:?]
at java.base/jdk.internal.util.Preconditions.checkFromToIndex(Unknown Source) ~[?:?]
at java.base/java.lang.String.checkBoundsBeginEnd(Unknown Source) ~[?:?]
at java.base/java.lang.String.substring(Unknown Source) ~[?:?]
at java.base/java.lang.String.substring(Unknown Source) ~[?:?]
at TradeSystem_v2.5.3.jar/de.codingair.tradesystem.lib.codingapi.server.reflections.IReflection$ServerPacket.<clinit>(IReflection.java:335) ~[TradeSystem_v2.5.3.jar:?]
... 17 more
02:26:34[INFO] [TradeSystem] Disabling TradeSystem v2.5.3
02:26:34[ERROR] Error occurred while disabling TradeSystem v2.5.3
java.lang.NullPointerException: Cannot invoke "org.bukkit.scheduler.BukkitTask.getOwner()" because "this.tickerTimer" is null
at TradeSystem_v2.5.3.jar/de.codingair.tradesystem.lib.codingapi.API.removePlugin(API.java:132) ~[TradeSystem_v2.5.3.jar:?]
at TradeSystem_v2.5.3.jar/de.codingair.tradesystem.lib.codingapi.API.onDisable(API.java:71) ~[TradeSystem_v2.5.3.jar:?]
at TradeSystem_v2.5.3.jar/de.codingair.tradesystem.spigot.TradeSystem.onDisable(TradeSystem.java:133) ~[TradeSystem_v2.5.3.jar:?]
at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:290) ~[purpur-api-1.20.6-R0.1-SNAPSHOT.jar:?]
at io.papermc.paper.plugin.manager.PaperPluginInstanceManager.disablePlugin(PaperPluginInstanceManager.java:237) ~[purpur-1.20.6.jar:1.20.6-2221-847719c]
at io.papermc.paper.plugin.manager.PaperPluginManagerImpl.disablePlugin(PaperPluginManagerImpl.java:114) ~[purpur-1.20.6.jar:1.20.6-2221-847719c]
at org.bukkit.plugin.SimplePluginManager.disablePlugin(SimplePluginManager.java:549) ~[purpur-api-1.20.6-R0.1-SNAPSHOT.jar:?]
at io.papermc.paper.plugin.manager.PaperPluginInstanceManager.enablePlugin(PaperPluginInstanceManager.java:206) ~[purpur-1.20.6.jar:1.20.6-2221-847719c]
at io.papermc.paper.plugin.manager.PaperPluginManagerImpl.enablePlugin(PaperPluginManagerImpl.java:109) ~[purpur-1.20.6.jar:1.20.6-2221-847719c]
at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:519) ~[purpur-api-1.20.6-R0.1-SNAPSHOT.jar:?]
at org.bukkit.craftbukkit.CraftServer.enablePlugin(CraftServer.java:618) ~[purpur-1.20.6.jar:1.20.6-2221-847719c]
at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:567) ~[purpur-1.20.6.jar:1.20.6-2221-847719c]
at net.minecraft.server.MinecraftServer.loadWorld0(MinecraftServer.java:678) ~[purpur-1.20.6.jar:1.20.6-2221-847719c]
at net.minecraft.server.MinecraftServer.loadLevel(MinecraftServer.java:440) ~[purpur-1.20.6.jar:1.20.6-2221-847719c]
at net.minecraft.server.dedicated.DedicatedServer.initServer(DedicatedServer.java:357) ~[purpur-1.20.6.jar:1.20.6-2221-847719c]
at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1150) ~[purpur-1.20.6.jar:1.20.6-2221-847719c]
at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:326) ~[purpur-1.20.6.jar:1.20.6-2221-847719c]
at java.base/java.lang.Thread.run(Unknown Source) ~[?:?]
erikzimmermann commented 5 months ago

Hi, @daniel-skopek. Which server type and version do you use? I just tested the hotfix 4 on paper 1.20.6, 1.20.4 and spigot 1.8.8 and everything works fine...

daniel-skopek commented 5 months ago

Server version: git-Pufferfish-46 (MC: 1.20.4) (Implementing API version 1.20.4-R0.1-SNAPSHOT) (Git: fb16f9c on HEAD)

Used TradeSystem from: TradeSystem-Bundle/target/TradeSystem_v2.5.3_Hotfix-4.jar