AbrarSyed / SecretRoomsMod-forge

The official SecretRoomsMod repo
GNU Lesser General Public License v3.0
39 stars 35 forks source link

Secret Iron Door Server Crash #156

Closed Sir-Will closed 9 years ago

Sir-Will commented 9 years ago

Version: secretroomsmod-1.7.10-4.7.1.376

Just placed a secret iron door and the server crashed:

java.lang.IllegalArgumentException: TileEntity data is NULL!
    at com.github.abrarsyed.secretroomsmod.network.PacketCamo.<init>(PacketCamo.java:43)
    at com.github.abrarsyed.secretroomsmod.blocks.TileEntityCamo.func_145844_m(TileEntityCamo.java:84)
    at net.minecraft.entity.player.EntityPlayerMP.func_147097_b(EntityPlayerMP.java:699)
    at net.minecraft.entity.player.EntityPlayerMP.func_70071_h_(EntityPlayerMP.java:374)
    at net.minecraft.world.World.func_72866_a(World.java:2647)
    at net.minecraft.world.WorldServer.func_72866_a(WorldServer.java:838)
    at net.minecraft.world.World.func_72870_g(World.java:2600)
    at net.minecraft.world.World.func_72939_s(World.java:2412)
    at net.minecraft.world.WorldServer.func_72939_s(WorldServer.java:669)
    at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:943)
    at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:423)
    at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:798)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:658)
    at java.lang.Thread.run(Thread.java:745)

A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------

-- Head --
Stacktrace:
    at com.github.abrarsyed.secretroomsmod.network.PacketCamo.<init>(PacketCamo.java:43)
    at com.github.abrarsyed.secretroomsmod.blocks.TileEntityCamo.func_145844_m(TileEntityCamo.java:84)
    at net.minecraft.entity.player.EntityPlayerMP.func_147097_b(EntityPlayerMP.java:699)
    at net.minecraft.entity.player.EntityPlayerMP.func_70071_h_(EntityPlayerMP.java:374)
    at net.minecraft.world.World.func_72866_a(World.java:2647)
    at net.minecraft.world.WorldServer.func_72866_a(WorldServer.java:838)
    at net.minecraft.world.World.func_72870_g(World.java:2600)

-- Entity being ticked --
Details:
    Entity Type: null (micdoodle8.mods.galacticraft.core.entities.player.GCEntityPlayerMP)
    Entity ID: 40035
    Entity Name: SirWilli
    Entity's Exact location: 2236.80, 68.00, -3851.04
    Entity's Block location: World: (2236,68,-3852), Chunk: (at 12,4,4 in 139,-241; contains blocks 2224,0,-3856 to 2239,255,-3841), Region: (4,-8; contains chunks 128,-256 to 159,-225, blocks 2048,0,-4096 to 2559,255,-3585)
    Entity's Momentum: 0.00, -0.08, 0.00
Stacktrace:
    at net.minecraft.world.World.func_72939_s(World.java:2412)
    at net.minecraft.world.WorldServer.func_72939_s(WorldServer.java:669)
Sir-Will commented 9 years ago

Also if I place it I get kicked first and if I reconnect then the server crashes.

[23:12:35 WARN]: Failed to handle packet for *******
java.lang.NullPointerException
>       at com.github.abrarsyed.secretroomsmod.blocks.TileEntityCamo.func_145841_b(TileEntityCamo.java:63) ~[TileEntityCamo.class:?]
>       at org.bukkit.craftbukkit.v1_7_R4.block.CraftBlockState.<init>(CraftBlockState.java:47) ~[CraftBlockState.class:git-Cauldron-MCPC-Plus-1.7.10-1.1236.05.210]
>       at org.bukkit.craftbukkit.v1_7_R4.block.CraftBlockState.getBlockState(CraftBlockState.java:85) ~[CraftBlockState.class:git-Cauldron-MCPC-Plus-1.7.10-1.1236.05.210]
>       at net.minecraftforge.event.world.BlockEvent$PlaceEvent.<init>(BlockEvent.java:150) ~[BlockEvent$PlaceEvent.class:git-Cauldron-MCPC-Plus-1.7.10-1.1236.05.210]
>       at net.minecraftforge.event.ForgeEventFactory.onPlayerBlockPlace(ForgeEventFactory.java:59) ~[ForgeEventFactory.class:git-Cauldron-MCPC-Plus-1.7.10-1.1236.05.210]
>       at net.minecraftforge.common.ForgeHooks.onPlaceItemIntoWorld(ForgeHooks.java:544) ~[ForgeHooks.class:git-Cauldron-MCPC-Plus-1.7.10-1.1236.05.210]
>       at net.minecraft.item.ItemStack.func_77943_a(ItemStack.java:149) ~[add.class:?]
>       at net.minecraft.server.management.ItemInWorldManager.func_73078_a(ItemInWorldManager.java:489) ~[mx.class:?]
>       at net.minecraft.network.NetHandlerPlayServer.func_147346_a(NetHandlerPlayServer.java:875) ~[nh.class:?]
>       at net.minecraft.network.play.client.C08PacketPlayerBlockPlacement.func_148833_a(SourceFile:60) ~[jo.class:?]
>       at net.minecraft.network.play.client.C08PacketPlayerBlockPlacement.func_148833_a(SourceFile:9) ~[jo.class:?]
>       at net.minecraft.network.NetworkManager.func_74428_b(NetworkManager.java:244) ~[ej.class:?]
>       at net.minecraft.network.NetworkSystem.func_151269_c(NetworkSystem.java:173) [nc.class:?]
>       at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:980) [MinecraftServer.class:?]
>       at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:423) [lt.class:?]
>       at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:798) [MinecraftServer.class:?]
>       at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:658) [MinecraftServer.class:?]
>       at java.lang.Thread.run(Thread.java:745) [?:1.7.0_72]
[23:12:35 INFO]: SirWilli lost connection: Internal server error
[23:12:35 ERROR]: A TileEntity type com.github.abrarsyed.secretroomsmod.blocks.TileEntityCamo has throw an exception trying to write state. It will not persist. Report this to the mod author
java.lang.NullPointerException
>       at com.github.abrarsyed.secretroomsmod.blocks.TileEntityCamo.func_145841_b(TileEntityCamo.java:63) ~[TileEntityCamo.class:?]
>       at net.minecraft.world.chunk.storage.AnvilChunkLoader.func_75820_a(AnvilChunkLoader.java:391) [aqk.class:?]
>       at net.minecraft.world.chunk.storage.AnvilChunkLoader.func_75816_a(AnvilChunkLoader.java:218) [aqk.class:?]
>       at net.minecraft.world.gen.ChunkProviderServer.func_73242_b(ChunkProviderServer.java:338) [ms.class:?]
>       at net.minecraft.world.gen.ChunkProviderServer.func_73156_b(ChunkProviderServer.java:483) [ms.class:?]
>       at net.minecraft.world.WorldServer.func_72835_b(WorldServer.java:254) [mt.class:?]
>       at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:920) [MinecraftServer.class:?]
>       at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:423) [lt.class:?]
>       at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:798) [MinecraftServer.class:?]
>       at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:658) [MinecraftServer.class:?]
>       at java.lang.Thread.run(Thread.java:745) [?:1.7.0_72]
flagoss commented 9 years ago

Hi I have the exact same issue. I added the mod to the FTB Direwolf20 1.7 PACK

AbrarSyed commented 9 years ago

duplicate of #153