java.lang.ClassCastException: net.minecraft.client.multiplayer.WorldClient cannot be cast to net.minecraft.world.WorldServer

GitHub | purpleposeidon | 7 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    [1.10] Various firestone bugs

    GitHub | 7 months ago | purpleposeidon
    java.lang.ClassCastException: net.minecraft.client.multiplayer.WorldClient cannot be cast to net.minecraft.world.WorldServer
  2. 0

    Error when moving tesseract

    GitHub | 2 years ago | da3dsoul
    java.lang.ClassCastException: me.planetguy.remaininmotion.spectre.TileEntitySupportiveSpectre cannot be cast to cofh.api.tileentity.IRedstoneControl [06:51:30] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748] at cofh.thermalexpansion.network.PacketTEBase.handlePacket(PacketTEBase.java:36) [06:51:30] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748] at cofh.core.network.PacketCoFHBase.handleClientSide(PacketCoFHBase.java:364) [06:51:30] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748] at cofh.core.network.PacketHandler.decode(PacketHandler.java:98) [06:51:30] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748] at cofh.core.network.PacketHandler.decode(PacketHandler.java:40) [06:51:30] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748] at io.netty.handler.codec.MessageToMessageCodec$2.decode(MessageToMessageCodec.java:81) [06:51:30] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748] at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:89) [06:51:30] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748] at io.netty.handler.codec.MessageToMessageCodec.channelRead(MessageToMessageCodec.java:111) [06:51:30] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748] at io.netty.channel.DefaultChannelHandlerContext.invokeChannelRead(DefaultChannelHandlerContext.java:337) [06:51:30] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748] at io.netty.channel.DefaultChannelHandlerContext.fireChannelRead(DefaultChannelHandlerContext.java:323) [06:51:30] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748] at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:785) [06:51:30] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748] at io.netty.channel.embedded.EmbeddedChannel.writeInbound(EmbeddedChannel.java:169) [06:51:30] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748] at cpw.mods.fml.common.network.internal.FMLProxyPacket.func_148833_a(FMLProxyPacket.java:77) [06:51:30] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748] at net.minecraft.network.NetworkManager.func_74428_b(NetworkManager.java:212) [06:51:30] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748] at net.minecraft.client.multiplayer.PlayerControllerMP.func_78765_e(PlayerControllerMP.java:273) [06:51:30] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748] at net.minecraft.client.Minecraft.func_71407_l(Minecraft.java:1590) [06:51:30] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748] at net.minecraft.client.Minecraft.func_71411_J(Minecraft.java:961) [06:51:30] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748] at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:887) [06:51:30] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748] at net.minecraft.client.main.Main.main(SourceFile:148) [06:51:30] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [06:51:30] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) [06:51:30] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [06:51:30] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748] at java.lang.reflect.Method.invoke(Method.java:606) [06:51:30] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748] at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [06:51:30] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748] at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [06:54:30] [Client thread/ERROR] [ThermalExpansion]: Packet payload failure! Please check your config files! [06:54:30] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748]: java.lang.NullPointerException [06:54:30] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748] at cofh.thermalexpansion.network.PacketTEBase.handlePacket(PacketTEBase.java:37) [06:54:30] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748] at cofh.core.network.PacketCoFHBase.handleClientSide(PacketCoFHBase.java:364) [06:54:30] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748] at cofh.core.network.PacketHandler.decode(PacketHandler.java:98) [06:54:30] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748] at cofh.core.network.PacketHandler.decode(PacketHandler.java:40) [06:54:30] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748] at io.netty.handler.codec.MessageToMessageCodec$2.decode(MessageToMessageCodec.java:81) [06:54:30] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748] at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:89) [06:54:30] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748] at io.netty.handler.codec.MessageToMessageCodec.channelRead(MessageToMessageCodec.java:111) [06:54:30] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748] at io.netty.channel.DefaultChannelHandlerContext.invokeChannelRead(DefaultChannelHandlerContext.java:337) [06:54:30] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748] at io.netty.channel.DefaultChannelHandlerContext.fireChannelRead(DefaultChannelHandlerContext.java:323) [06:54:30] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748] at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:785) [06:54:30] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748] at io.netty.channel.embedded.EmbeddedChannel.writeInbound(EmbeddedChannel.java:169) [06:54:30] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748] at cpw.mods.fml.common.network.internal.FMLProxyPacket.func_148833_a(FMLProxyPacket.java:77) [06:54:30] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748] at net.minecraft.network.NetworkManager.func_74428_b(NetworkManager.java:212) [06:54:30] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748] at net.minecraft.client.multiplayer.PlayerControllerMP.func_78765_e(PlayerControllerMP.java:273) [06:54:30] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748] at net.minecraft.client.Minecraft.func_71407_l(Minecraft.java:1590) [06:54:30] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748] at net.minecraft.client.Minecraft.func_71411_J(Minecraft.java:961) [06:54:30] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748] at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:887) [06:54:30] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748] at net.minecraft.client.main.Main.main(SourceFile:148) [06:54:30] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [06:54:30] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) [06:54:30] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [06:54:30] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748] at java.lang.reflect.Method.invoke(Method.java:606) [06:54:30] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748] at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [06:54:30] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748] at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [06:54:30] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748]: java.lang.NullPointerException [06:54:30] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748] at me.planetguy.remaininmotion.network.RenderPacket.Handle(RenderPacket.java:97) [06:54:30] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748] at me.planetguy.remaininmotion.network.Message.onMessage(Message.java:33) [06:54:30] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748] at me.planetguy.remaininmotion.network.Message.onMessage(Message.java:15) [06:54:30] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748] at cpw.mods.fml.common.network.simpleimpl.SimpleChannelHandlerWrapper.channelRead0(SimpleChannelHandlerWrapper.java:37) [06:54:30] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748] at cpw.mods.fml.common.network.simpleimpl.SimpleChannelHandlerWrapper.channelRead0(SimpleChannelHandlerWrapper.java:17) [06:54:30] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748] at io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:98) [06:54:30] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748] at io.netty.channel.DefaultChannelHandlerContext.invokeChannelRead(DefaultChannelHandlerContext.java:337) [06:54:30] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748] at io.netty.channel.DefaultChannelHandlerContext.fireChannelRead(DefaultChannelHandlerContext.java:323) [06:54:30] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748] at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103) [06:54:30] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748] at io.netty.handler.codec.MessageToMessageCodec.channelRead(MessageToMessageCodec.java:111) [06:54:30] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748] at io.netty.channel.DefaultChannelHandlerContext.invokeChannelRead(DefaultChannelHandlerContext.java:337) [06:54:30] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748] at io.netty.channel.DefaultChannelHandlerContext.fireChannelRead(DefaultChannelHandlerContext.java:323) [06:54:30] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748] at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:785) [06:54:30] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748] at io.netty.channel.embedded.EmbeddedChannel.writeInbound(EmbeddedChannel.java:169) [06:54:30] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748] at cpw.mods.fml.common.network.internal.FMLProxyPacket.func_148833_a(FMLProxyPacket.java:77) [06:54:30] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748] at net.minecraft.network.NetworkManager.func_74428_b(NetworkManager.java:212) [06:54:30] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748] at net.minecraft.client.multiplayer.PlayerControllerMP.func_78765_e(PlayerControllerMP.java:273) [06:54:30] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748] at net.minecraft.client.Minecraft.func_71407_l(Minecraft.java:1590) [06:54:30] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748] at net.minecraft.client.Minecraft.func_71411_J(Minecraft.java:961) [06:54:30] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748] at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:887) [06:54:30] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748] at net.minecraft.client.main.Main.main(SourceFile:148) [06:54:30] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [06:54:30] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) [06:54:30] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [06:54:30] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748] at java.lang.reflect.Method.invoke(Method.java:606) [06:54:30] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748] at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [06:54:30] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748] at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [06:54:33] [Client thread/ERROR] [ThermalExpansion]: Packet payload failure! Please check your config files! [06:54:33] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748]: java.lang.NullPointerException [06:54:33] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748] at cofh.thermalexpansion.network.PacketTEBase.handlePacket(PacketTEBase.java:37) [06:54:33] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748] at cofh.core.network.PacketCoFHBase.handleClientSide(PacketCoFHBase.java:364) [06:54:33] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748] at cofh.core.network.PacketHandler.decode(PacketHandler.java:98) [06:54:33] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748] at cofh.core.network.PacketHandler.decode(PacketHandler.java:40) [06:54:33] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748] at io.netty.handler.codec.MessageToMessageCodec$2.decode(MessageToMessageCodec.java:81) [06:54:33] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748] at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:89) [06:54:33] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748] at io.netty.handler.codec.MessageToMessageCodec.channelRead(MessageToMessageCodec.java:111) [06:54:33] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748] at io.netty.channel.DefaultChannelHandlerContext.invokeChannelRead(DefaultChannelHandlerContext.java:337) [06:54:33] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748] at io.netty.channel.DefaultChannelHandlerContext.fireChannelRead(DefaultChannelHandlerContext.java:323) [06:54:33] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748] at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:785) [06:54:33] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748] at io.netty.channel.embedded.EmbeddedChannel.writeInbound(EmbeddedChannel.java:169) [06:54:33] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748] at cpw.mods.fml.common.network.internal.FMLProxyPacket.func_148833_a(FMLProxyPacket.java:77) [06:54:33] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748] at net.minecraft.network.NetworkManager.func_74428_b(NetworkManager.java:212) [06:54:33] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748] at net.minecraft.client.multiplayer.PlayerControllerMP.func_78765_e(PlayerControllerMP.java:273) [06:54:33] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748] at net.minecraft.client.Minecraft.func_71407_l(Minecraft.java:1590) [06:54:33] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748] at net.minecraft.client.Minecraft.func_71411_J(Minecraft.java:961) [06:54:33] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748] at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:887) [06:54:33] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748] at net.minecraft.client.main.Main.main(SourceFile:148) [06:54:33] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [06:54:33] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) [06:54:33] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [06:54:33] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748] at java.lang.reflect.Method.invoke(Method.java:606) [06:54:33] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748] at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [06:54:33] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748]

    Root Cause Analysis

    1. java.lang.ClassCastException

      net.minecraft.client.multiplayer.WorldClient cannot be cast to net.minecraft.world.WorldServer

      at mods.railcraft.common.items.firestone.ItemFirestoneRefined.func_180614_a()
    2. mods.railcraft.common
      ItemFirestoneRefined.func_180614_a
      1. mods.railcraft.common.items.firestone.ItemFirestoneRefined.func_180614_a(ItemFirestoneRefined.java:157)
      1 frame
    3. Minecraft
      ItemStack.func_179546_a
      1. net.minecraft.item.ItemStack.func_179546_a(ItemStack.java:145)
      1 frame
    4. MC Client
      Main.main
      1. net.minecraft.client.multiplayer.PlayerControllerMP.func_187099_a(PlayerControllerMP.java:463)
      2. net.minecraft.client.Minecraft.func_147121_ag(Minecraft.java:1518)
      3. net.minecraft.client.Minecraft.func_184117_aA(Minecraft.java:2184)
      4. net.minecraft.client.Minecraft.func_184118_az(Minecraft.java:1961)
      5. net.minecraft.client.Minecraft.func_71407_l(Minecraft.java:1749)
      6. net.minecraft.client.Minecraft.func_71411_J(Minecraft.java:1055)
      7. net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:371)
      8. net.minecraft.client.main.Main.main(SourceFile:124)
      8 frames
    5. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:497)
      4 frames
    6. Minecraft
      Launch.main
      1. net.minecraft.launchwrapper.Launch.launch(Launch.java:135)
      2. net.minecraft.launchwrapper.Launch.main(Launch.java:28)
      2 frames