Getting disconnected from Server when opening ender pouch

  • The FTB Forum is now read-only, and is here as an archive. To participate in our community discussions, please join our Discord! https://ftb.team/discord
Status
Not open for further replies.

The_xy

New Member
Jul 29, 2019
31
0
0
Hello,
When opening my ender pouch on my server, i get disconnected with "Internal Server Error" as error message.
Here is the server error log:
Code:
2012-11-17 18:42:07 [INFO] [Minecraft] User The_xy connecting with mods [BuildCraft|Silicon, TwilightForest, BuildCraft|Transport, GraviSuite, IC2NuclearControl, BuildCraft|Core, ThermalExpansion|Factory, ObsidiPlates, IC2, ThermalExpansion|Energy, ExtraBees, StevesCarts, ExtrabiomesXL, Mystcraft, Forestry, ComputerCraft, AdvancedMachines, AdvancedSolarPanel, BuildCraft|Factory, ThermalExpansion|Core, IronChest, BuildCraft|Energy, Railcraft, GregTech_Addon, PortalGun, CCTurtle, ModularForceFieldSystem, factorization, ForgeIRC, BuildCraft|Builders]
2012-11-17 18:42:07 [INFO] [ForgeModLoader] User The_xy connecting with mods [BuildCraft|Silicon, TwilightForest, BuildCraft|Transport, GraviSuite, IC2NuclearControl, BuildCraft|Core, ThermalExpansion|Factory, ObsidiPlates, IC2, ThermalExpansion|Energy, ExtraBees, StevesCarts, ExtrabiomesXL, Mystcraft, Forestry, ComputerCraft, AdvancedMachines, AdvancedSolarPanel, BuildCraft|Factory, ThermalExpansion|Core, IronChest, BuildCraft|Energy, Railcraft, GregTech_Addon, PortalGun, CCTurtle, ModularForceFieldSystem, factorization, ForgeIRC, BuildCraft|Builders]
2012-11-17 18:42:07 [INFO] [Minecraft] The_xy[/ip.is.redacted.here:sport] logged in with entity id 716 at (-706.6593665645416, 10.0, 778.621384912422)
2012-11-17 18:42:08 [INFO] [STDOUT] Loading Player: The_xy
2012-11-17 18:42:08 [INFO] [STDOUT] Sending serverside check to: The_xy
2012-11-17 18:42:08 [INFO] [STDOUT] [Portal Gun 1.4.2v0.2] Recieved client info from The_xy
2012-11-17 18:42:10 [INFO] [STDOUT] [Portal Gun 1.4.2v0.2] The_xy received world props successfully.
 
+++ Login was successful, now let me open my ender pouch. +++
 
2012-11-17 18:42:25 [SEVERE] [ForgeModLoader] A critical server error occured handling a packet, kicking 716
java.lang.ClassCastException: bl cannot be cast to bh
        at codechicken.enderstorage.EnderStorageManager$EnderStorageInv.loadItems(EnderStorageManager.java:82)
        at codechicken.enderstorage.EnderStorageManager$EnderStorageInv.<init>(EnderStorageManager.java:65)
        at codechicken.enderstorage.EnderStorageManager.getStorage(EnderStorageManager.java:389)
        at codechicken.enderstorage.ContainerEnderStorage.<init>(ContainerEnderStorage.java:16)
        at codechicken.enderstorage.EnderStorageManager.openChestGui(EnderStorageManager.java:438)
        at codechicken.enderstorage.ItemEnderPouch.a(ItemEnderPouch.java:54)
        at tv.a(SourceFile:98)
        at ii.a(ItemInWorldManager.java:337)
        at im.a(NetServerHandler.java:513)
        at fc.a(SourceFile:58)
        at bx.b(TcpConnection.java:441)
        at im.d(NetServerHandler.java:82)
        at in.b(NetworkListenThread.java:55)
        at hk.b(SourceFile:30)
        at net.minecraft.server.MinecraftServer.r(MinecraftServer.java:664)
        at hg.r(DedicatedServer.java:241)
        at net.minecraft.server.MinecraftServer.q(MinecraftServer.java:585)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:492)
        at fp.run(SourceFile:818)
2012-11-17 18:42:25 [WARNING] [Minecraft] Failed to handle packet: java.lang.ClassCastException: bl cannot be cast to bh
java.lang.ClassCastException: bl cannot be cast to bh
        at codechicken.enderstorage.EnderStorageManager$EnderStorageInv.loadItems(EnderStorageManager.java:82)
        at codechicken.enderstorage.EnderStorageManager$EnderStorageInv.<init>(EnderStorageManager.java:65)
        at codechicken.enderstorage.EnderStorageManager.getStorage(EnderStorageManager.java:389)
        at codechicken.enderstorage.ContainerEnderStorage.<init>(ContainerEnderStorage.java:16)
        at codechicken.enderstorage.EnderStorageManager.openChestGui(EnderStorageManager.java:438)
        at codechicken.enderstorage.ItemEnderPouch.a(ItemEnderPouch.java:54)
        at tv.a(SourceFile:98)
        at ii.a(ItemInWorldManager.java:337)
        at im.a(NetServerHandler.java:513)
        at fc.a(SourceFile:58)
        at bx.b(TcpConnection.java:441)
        at im.d(NetServerHandler.java:82)
        at in.b(NetworkListenThread.java:55)
        at hk.b(SourceFile:30)
        at net.minecraft.server.MinecraftServer.r(MinecraftServer.java:664)
        at hg.r(DedicatedServer.java:241)
        at net.minecraft.server.MinecraftServer.q(MinecraftServer.java:585)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:492)
        at fp.run(SourceFile:818)
2012-11-17 18:42:25 [INFO] [STDOUT] Unloading Player: The_xy

Modifications to the modpack: I added Optifine client-side, but i don't think this should matter here. Everything else is unmodified.

Here is some information about the server where i run the FTBserver on:
Code:
$ lsb_release -d
Description:    Debian GNU/Linux 6.0.6 (squeeze)
$ cat /etc/debian_version
6.0.6
$ uname -srvm
Linux 2.6.32-274.7.1.el5.028stab095.1 #1 SMP Mon Oct 24 20:49:24 MSD 2011 i686
$ java -version
java version "1.6.0_26"
Java(TM) SE Runtime Environment (build 1.6.0_26-b03)
Java HotSpot(TM) Server VM (build 20.1-b02, mixed mode)
 

Wabbit

New Member
Jul 29, 2019
443
0
0
I'm not too sure about this, I've never gotten around to using an ender pouch. Is this your server you're playing on?

EDIT: DAMN I'm slow. I just noticed you already answered this. As Ash said, check the configs for conflicts between the client's file and the server's.
 

The_xy

New Member
Jul 29, 2019
31
0
0
I just took the whole "config" folder of the server and copied it over. I replaced all my configs.
Then i logged in and tried again. Opening the ender pouch will still disconnect me, with the same error.
There is only one config which is different: ForgeIRC.cfg, but i really doubt that should matter since it only is a chat relay mod.
 

Meldiron

New Member
Jul 29, 2019
641
0
0
The ender storage mod didn't show up on the list of mods you had when you joined the server. But not sure if it should eigther tbh.
Could you confirm that ender storage is present in the mod tab in the minecraft main menu?
 

Vauthil

New Member
Jul 29, 2019
1,491
-14
1
Yeah, I'm unable to effectively add any troubleshooting to this while Mojang's services are on the fritz.

(No, seriously, now their service for checking service status is down. Downed Services-ception).
 

The_xy

New Member
Jul 29, 2019
31
0
0
Try a clean reinstall of the server and client.
That did work. However copying back the world directory to the server caused the same problem again. So i thought it must be some corrupted file in the world save.
I tracked down the problem to the serverside file world/EnderStorage/global/0.dat. Moving that file away lets me open my ender pouch again, however all my items in the pouch are gone. Anyway, I am glad about not having to delete the whole world.
It seems that this file somehow was corrupted, this could be a bug.
 

Vauthil

New Member
Jul 29, 2019
1,491
-14
1
Very likely, we're a bit behind on EnderStorage versions (for example: DO NOT shift-click items into Ender Storage inventories for now!).
 

The_xy

New Member
Jul 29, 2019
31
0
0
I already experienced that error and crashed my client with that often.
Avoiding that is hard when you are used to shift-clicking all the time.
 

Vauthil

New Member
Jul 29, 2019
1,491
-14
1
Yeah, thankfully that one at least will get fixed, probably with the next update to the mod pack itself (I already tested that one with the latest EnderStorage version in my test environment and it was working).
 

Ashzification

New Member
Jul 29, 2019
7,425
1
0
Yeah, thankfully that one at least will get fixed, probably with the next update to the mod pack itself (I already tested that one with the latest EnderStorage version in my test environment and it was working).
I've been avoiding them entirely until they're fixed in game. Actually trying to avoid everything that is causing stability problems at this point lol
 

qap

New Member
Jul 29, 2019
30
0
0
The most current version of Enderstorage for 1.4.2 does fix the errors stated above, shift-clicking works, servers start up again without hickups.
See changelog here-> http://www.minecraftforum.net/topic/909223-125145-smp-chickenbones-mods/
The link to the older version archive is on that page, too. I refrain from linking directly to it, as the author gets some bugs if you follow his link.
Note, if you are running a Server, the file to be replaced on both ends, client and server.
 

The_xy

New Member
Jul 29, 2019
31
0
0
Hello,
I was just playing the updated version of FTB and noticed the same bug again. I have some information which might help fixing the bug.
On opening my ender pouch, the server kicked me with "Internal Server Error". The printed error log/trace was the same as in the original post.
About the 0.dat: It is a NBT file, but unlike the usual minecraft NBT files, it is not gzipped.
When comparing a backup of an old 0.dat and a new 0.dat, i noticed something: there were NUL (\x00) bytes at the beginning of the file before the first newline. The corrupted file refused to open in an nbt editor, too.
After deleting these NUL bytes (51167 bytes) before the first newline, the 0.dat file started working again. It also was again editable using nbtedit -n (from http://pypi.python.org/pypi/nbt2yaml).
I don't know much about mod developing, but I can think of a "monkey patch" solving this: strip any NUL bytes before the first newline character at every open of the nbt file.
I hope this helps.

EDIT: The file just corrupted again, this time a different number of bytes, so it isn't always the same.
 
Status
Not open for further replies.