NoSuchMethod error
LadyCailinBot opened this issue ยท 3 comments
CRAFTBOOK-3300 - Reported by Dragoboss
Something in the newer releases (definitely build 130 and after) broke reverse compatibility to 1.10.
the 'isUnbreakable' method seems to be not present in my spigot 1.10.
Not sure what build this started, used an older version for a while, decided to update this week, resulting in the error.
{code:title=Error}
01:04:45
Dragoboss issued server command: /recp save test123 shapeless
WARN
05/03/2017 01:04:45
01:04:45
com.sk89q.minecraft.util.commands.WrappedCommandException: java.lang.NoSuchMethodError: org.bukkit.inventory.meta.ItemMeta.isUnbreakable()Z
at com.sk89q.minecraft.util.commands.CommandsManager.invokeMethod(CommandsManager.java:538)
at com.sk89q.minecraft.util.commands.CommandsManager.executeMethod(CommandsManager.java:516)
at com.sk89q.minecraft.util.commands.CommandsManager.executeMethod(CommandsManager.java:471)
at com.sk89q.minecraft.util.commands.CommandsManager.execute(CommandsManager.java:409)
at com.sk89q.craftbook.bukkit.CraftBookPlugin.onCommand(CraftBookPlugin.java:689)
at com.sk89q.bukkit.util.DynamicPluginCommand.execute(DynamicPluginCommand.java:54)
at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:141)
at org.bukkit.craftbukkit.v1_10_R1.CraftServer.dispatchCommand(CraftServer.java:647)
at net.minecraft.server.v1_10_R1.PlayerConnection.handleCommand(PlayerConnection.java:1358)
at net.minecraft.server.v1_10_R1.PlayerConnection.a(PlayerConnection.java:1193)
at net.minecraft.server.v1_10_R1.PacketPlayInChat.a(PacketPlayInChat.java:45)
at net.minecraft.server.v1_10_R1.PacketPlayInChat.a(PacketPlayInChat.java:1)
at net.minecraft.server.v1_10_R1.PlayerConnectionUtils$1.run(SourceFile:13)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at net.minecraft.server.v1_10_R1.SystemUtils.a(SourceFile:45)
at net.minecraft.server.v1_10_R1.MinecraftServer.D(MinecraftServer.java:732)
at net.minecraft.server.v1_10_R1.DedicatedServer.D(DedicatedServer.java:400)
at net.minecraft.server.v1_10_R1.MinecraftServer.C(MinecraftServer.java:668)
at net.minecraft.server.v1_10_R1.MinecraftServer.run(MinecraftServer.java:567)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.NoSuchMethodError: org.bukkit.inventory.meta.ItemMeta.isUnbreakable()Z
at com.sk89q.craftbook.util.ItemSyntax.getStringFromItem(ItemSyntax.java:77)
at com.sk89q.craftbook.mechanics.crafting.CraftingItemStack.toString(CraftingItemStack.java:101)
at com.sk89q.craftbook.mechanics.crafting.RecipeManager$Recipe.save(RecipeManager.java:288)
at com.sk89q.craftbook.mechanics.crafting.RecipeManager.save(RecipeManager.java:77)
at com.sk89q.craftbook.mechanics.crafting.RecipeManager.addRecipe(RecipeManager.java:90)
at com.sk89q.craftbook.mechanics.crafting.RecipeCommands.saveRecipe(RecipeCommands.java:199)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.sk89q.minecraft.util.commands.CommandsManager.invokeMethod(CommandsManager.java:528)
... 20 more
Comment by me4502
That version is for 1.11.2
https://ci.md-5.net/job/CraftBook/85/ is the last 'official' 1.10.2 build, however a fair few past that point will still probably work on it.
Comment by Dragoboss
My apologies. CraftBook has in all my years of usage never shown compatibility problems cross-version so I presumed backward compatibility was a thing for at least one version backwards.
Never figured there were specific ranges of versions working for specific Minecraft versions.
Also never found a clear note of such.
I will use an older version.