Jump to content

No Such Method getCompoundTag?


XVicarious

Recommended Posts

I wrote a mod and it works in the test environment, but not on a production server.  It can't find methods (I also had this problem with Enchantment.setName() and Enchantment.getName().  It works when I test it launching from eclipse, but not when I run in production.

 

The error log is here:

    2013-12-23 17:25:43 [iNFO] [sTDERR] java.lang.NoSuchMethodError: net.minecraft.nbt.NBTTagCompound.getCompoundTag(Ljava/lang/String;)Lnet/minecraft/nbt/NBTTagCompound;
    2013-12-23 17:25:43 [iNFO] [sTDERR]     at us.xvicario.soultether.EnchantmentSoulTether.onPlayerRespawn(EnchantmentSoulTether.java:71)
    2013-12-23 17:25:43 [iNFO] [sTDERR]     at cpw.mods.fml.common.registry.GameRegistry.onPlayerRespawn(GameRegistry.java:397)
    2013-12-23 17:25:43 [iNFO] [sTDERR]     at net.minecraft.server.management.ServerConfigurationManager.func_72368_a(ServerConfigurationManager.java:470)
    2013-12-23 17:25:43 [iNFO] [sTDERR]     at net.minecraft.network.NetServerHandler.func_72458_a(NetServerHandler.java:895)
    2013-12-23 17:25:43 [iNFO] [sTDERR]     at net.minecraft.network.packet.Packet205ClientCommand.func_73279_a(SourceFile:30)
    2013-12-23 17:25:43 [iNFO] [sTDERR]     at net.minecraft.network.TcpConnection.func_74428_b(TcpConnection.java:462)
    2013-12-23 17:25:43 [iNFO] [sTDERR]     at net.minecraft.network.NetServerHandler.func_72570_d(NetServerHandler.java:141)
    2013-12-23 17:25:43 [iNFO] [sTDERR]     at net.minecraft.network.NetworkListenThread.func_71747_b(NetworkListenThread.java:54)
    2013-12-23 17:25:43 [iNFO] [sTDERR]     at net.minecraft.server.dedicated.DedicatedServerListenThread.func_71747_b(SourceFile:30)
    2013-12-23 17:25:43 [iNFO] [sTDERR]     at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:691)
    2013-12-23 17:25:43 [iNFO] [sTDERR]     at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:276)
    2013-12-23 17:25:43 [iNFO] [sTDERR]     at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:587)
    2013-12-23 17:25:43 [iNFO] [sTDERR]     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:484)
    2013-12-23 17:25:43 [iNFO] [sTDERR]     at net.minecraft.server.ThreadMinecraftServer.run(SourceFile:583)
    2013-12-23 17:25:43 [sEVERE] [Minecraft-Server] Encountered an unexpected exception NoSuchMethodError
    java.lang.NoSuchMethodError: net.minecraft.nbt.NBTTagCompound.getCompoundTag(Ljava/lang/String;)Lnet/minecraft/nbt/NBTTagCompound;
            at us.xvicario.soultether.EnchantmentSoulTether.onPlayerRespawn(EnchantmentSoulTether.java:71)
            at cpw.mods.fml.common.registry.GameRegistry.onPlayerRespawn(GameRegistry.java:397)
            at net.minecraft.server.management.ServerConfigurationManager.func_72368_a(ServerConfigurationManager.java:470)
            at net.minecraft.network.NetServerHandler.func_72458_a(NetServerHandler.java:895)
            at net.minecraft.network.packet.Packet205ClientCommand.func_73279_a(SourceFile:30)
            at net.minecraft.network.TcpConnection.func_74428_b(TcpConnection.java:462)
            at net.minecraft.network.NetServerHandler.func_72570_d(NetServerHandler.java:141)
            at net.minecraft.network.NetworkListenThread.func_71747_b(NetworkListenThread.java:54)
            at net.minecraft.server.dedicated.DedicatedServerListenThread.func_71747_b(SourceFile:30)
            at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:691)
            at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:276)
            at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:587)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:484)
            at net.minecraft.server.ThreadMinecraftServer.run(SourceFile:583)

 

If you need more of hte log or anything ask, it is my friend who is hosting it and this is what he gave me.

Link to comment
Share on other sites

from a brief look it appears that you are either:

 

A: not recompiling and reobfuscating

(you cannot use the eclipse generated .class files, they need to be reobfuscated by MCP)

(you need to run recompile in the MCP directory, then reobfuscate (either one), then grab your finished .class files from the reobf directory, add any assets/etc and pack into your distribution format (.jar/.zip))

or...

B: are trying to access client-only methods from server-side

(you have to proxy those calls, or not access client-only methods from server)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.