0
20:15:43 [INFO] macintosh264 issued server command: /sell hand
20:15:43 [INFO] [XYZShop] MacCommand sell executed
20:15:43 [SEVERE] null
org.bukkit.command.CommandException: Unhandled exception executing command 'sell' in plugin XYZShop v0.1.3
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:46)
        at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:186)
        at org.bukkit.craftbukkit.v1_4_6.CraftServer.dispatchCommand(CraftServer.java:510)
        at net.minecraft.server.v1_4_6.PlayerConnection.handleCommand(PlayerConnection.java:979)
        at net.minecraft.server.v1_4_6.PlayerConnection.chat(PlayerConnection.java:897)
        at net.minecraft.server.v1_4_6.PlayerConnection.a(PlayerConnection.java:852)
        at net.minecraft.server.v1_4_6.Packet3Chat.handle(Packet3Chat.java:44)
        at net.minecraft.server.v1_4_6.NetworkManager.b(NetworkManager.java:290)
        at net.minecraft.server.v1_4_6.PlayerConnection.d(PlayerConnection.java:112)
        at net.minecraft.server.v1_4_6.ServerConnection.b(SourceFile:39)
        at net.minecraft.server.v1_4_6.DedicatedServerConnection.b(SourceFile:30)
        at net.minecraft.server.v1_4_6.MinecraftServer.r(MinecraftServer.java:598)
        at net.minecraft.server.v1_4_6.DedicatedServer.r(DedicatedServer.java:224)
        at net.minecraft.server.v1_4_6.MinecraftServer.q(MinecraftServer.java:494)
        at net.minecraft.server.v1_4_6.MinecraftServer.run(MinecraftServer.java:427)
        at net.minecraft.server.v1_4_6.ThreadServerApplication.run(SourceFile:849)
Caused by: java.lang.NoSuchMethodError: dev.xyzcraft.net.database.DatabaseHandler.getItem(IS)Ldev/xyzcraft/net/xyzshop/dataObject/MSItem;
        at dev.xyzcraft.net.xyzshop.commands.SellCommand.onCommand(SellCommand.java:63)
        at dev.xyzcraft.net.xyzshop.util.MacCommand.onCommand(MacCommand.java:44)
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44)
        ... 15 more

我得到了那个例外

这是代码: https ://github.com/macintosh264/XYZShop

最后,我将 Mod API 用于流行的视频游戏 Minecraft,名为 Bukkit。这是JavaDoc和库

http://dl.bukkit.org/downloads/bukkit/

http://jd.bukkit.org

“我在另一个使用 MySQL 的项目中也遇到了这个问题,并且在使用 mysql 类时会出现堆栈跟踪。”

  • Macintosh264
4

1 回答 1

1

似乎您尝试执行的任何内容(即保存命令的方法)都没有正确读取它。尝试重新打包您的项目,这在我身上发生了很多次,这通常很容易解决。

于 2012-12-31T02:13:03.827 回答