SpoutDev/Spout — Issue #996: Current Spout Dev build (537) doesn't work with current Bukkit Dev build (1484)
Author: shinji257
Created: 2011-11-22 03:05:04+00:00
State: open

There seems to be an incompatibility occuring somewhere that causes Spout to crash and also prevent any players from joining the server successfully when using either the recommended build or a dev build (even from jenkins) on Bukkit Dev build 1484.

This is the crash log when the server starts.
21:59:26 [SEVERE] java.lang.ClassCastException: java.lang.Float cannot be cast to net.minecraft.server.EnumToolMaterial
21:59:26 [SEVERE] at org.getspout.spout.item.mcitem.CustomItemSpade.replaceSpades(CustomItemSpade.java:35)
21:59:26 [SEVERE] at org.getspout.spout.Spout.onEnable(Spout.java:242)
21:59:26 [SEVERE] at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:188)
21:59:26 [SEVERE] at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:957)
21:59:26 [SEVERE] at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:280)
21:59:26 [SEVERE] at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:176)
21:59:26 [SEVERE] at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:159)
21:59:26 [SEVERE] at org.bukkit.craftbukkit.CraftServer.(CraftServer.java:118)
21:59:26 [SEVERE] at net.minecraft.server.ServerConfigurationManager.(ServerConfigurationManager.java:52)
21:59:26 [SEVERE] at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:141)
21:59:26 [SEVERE] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:388)
21:59:26 [SEVERE] at net.minecraft.server.ThreadServerApplication.run(SourceFile:457)
21:59:26 [SEVERE] Error occurred while enabling Spout v537 (Is it up to date?): null
java.lang.NullPointerException
at net.minecraft.server.ItemTool.(SourceFile:18)
at net.minecraft.server.ItemSpade.(SourceFile:11)
at org.getspout.spout.item.mcitem.CustomItemSpade.(CustomItemSpade.java:14)
at org.getspout.spout.item.mcitem.CustomItemSpade.replaceSpades(CustomItemSpade.java:41)
at org.getspout.spout.Spout.onEnable(Spout.java:242)
at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:188)
at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:957)
at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:280)
at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:176)
at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:159)
at org.bukkit.craftbukkit.CraftServer.(CraftServer.java:118)
at net.minecraft.server.ServerConfigurationManager.(ServerConfigurationManager.java:52)
at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:141)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:388)
at net.minecraft.server.ThreadServerApplication.run(SourceFile:457)

And this is the crash that occurs when a player joins.
22:00:58 [SEVERE] Could not pass event PLAYER_JOIN to Spout
java.lang.NoSuchFieldError: k
at org.getspout.spout.SpoutNetServerHandler.sendPacket(SpoutNetServerHandler.java:479)
at net.minecraft.server.NetServerHandler.teleport(NetServerHandler.java:430)
at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:395)
at org.getspout.spout.player.SpoutCraftPlayer.updateNetServerHandler(SpoutCraftPlayer.java:1062)
at org.getspout.spout.SpoutPlayerListener.onPlayerJoin(SpoutPlayerListener.java:56)
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:260)
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:339)
at net.minecraft.server.ServerConfigurationManager.c(ServerConfigurationManager.java:129)
at net.minecraft.server.NetLoginHandler.b(NetLoginHandler.java:113)
at net.minecraft.server.NetLoginHandler.a(NetLoginHandler.java:39)
at net.minecraft.server.NetworkListenThread.a(SourceFile:94)
at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:516)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:414)
at net.minecraft.server.ThreadServerApplication.run(SourceFile:457)

Please be aware that when Spout is installed several other plugins also spit out the same error for some reason but as soon as I take Spout out of the picture all is fine. Here is my plugins list and bukkit build string for reference sake.

version
22:04:35 [INFO] This server is running Craftbukkit version git-Bukkit-1.8.1-R4-13-g342948e-b1488jnks (MC: 1.0.0)
22:04:35 [INFO] This server is also sporting some funky dev build of Bukkit!
plugins
22:04:36 [INFO] Plugins: RemoteToolkitPlugin, mcbans, MicroOP, LogBlockQuestioner, LWC, LavaFurnace, Spout, WorldGuard, CreeperHeal, mcMMO, iChatPlayerList, WorldEdit, Seen, CommandBook, InventorySort, PermissionsBukkit, Burning Creative Suite, VirtualChest, iChat, LogBlock

Oh and as you can see Spout did get partially loaded but it is unusable in it's current form. Please check into it if you can so that it's ready for your next recommended build.