java.lang.ClassCastException: mekanism.common.EnergyNetwork cannot be cast to mekanism.api.gas.GasNetwork

GitHub | ShadowDrakken | 6 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

    Ticking block entity

    GitHub | 6 months ago | ShadowDrakken
    java.lang.ClassCastException: mekanism.common.EnergyNetwork cannot be cast to mekanism.api.gas.GasNetwork
  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

      mekanism.common.EnergyNetwork cannot be cast to mekanism.api.gas.GasNetwork

      at mekanism.common.multipart.PartPressurizedTube.func_73660_a()
    2. mekanism.common.multipart
      PartPressurizedTube.func_73660_a
      1. mekanism.common.multipart.PartPressurizedTube.func_73660_a(PartPressurizedTube.java:69)
      1 frame
    3. mcmultipart.block
      TileMultipartContainer$Ticking.func_73660_a
      1. mcmultipart.block.TileMultipartContainer$Ticking.func_73660_a(TileMultipartContainer.java:311)
      1 frame
    4. Minecraft
      World.func_72939_s
      1. net.minecraft.world.World.func_72939_s(World.java:1804)
      1 frame
    5. MC Client
      Main.main
      1. net.minecraft.client.Minecraft.func_71407_l(Minecraft.java:1789)
      2. net.minecraft.client.Minecraft.func_71411_J(Minecraft.java:1055)
      3. net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:371)
      4. net.minecraft.client.main.Main.main(SourceFile:124)
      4 frames
    6. 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:483)
      4 frames
    7. Minecraft
      Launch.main
      1. net.minecraft.launchwrapper.Launch.launch(Launch.java:135)
      2. net.minecraft.launchwrapper.Launch.main(Launch.java:28)
      2 frames