I have tried resetting ports, messing with the fire wall, reinstalling the server, and occult rituals to satan himself to attempt to fix it. Nothing has worked so far and I can't find a way to fix it from any logs. The error happens modded or non modded and I do not know what to do.
These errors have been happening ever since I reinstalled the server.
Internal Exception: com.google.common.util.concurrent.UncheckedExecutionException: java.lang.IllegalArgumentExeeption: The specified entry buildcraft.transport.item.ItemPluggableSimple@452b2d6c hasn't been registered in registry yet.
The new errors were because I updated and the mods were not up to date, so those are solved but the Can't serialize unregistered packet error is still plaguing my server.
the error Error : Internal Exception: io.netty.handler.codec.EncoderException: java.io.IOException: Can't serialize unregistered packet seems to be an encoding problem, but I have no clue what or how to fix it. Making a brand new minecraft server has not done any good either. Please help I am running out of ideas.
public class MessageSerializer extends MessageToByteEncoder {
private static final Logger logger = LogManager.getLogger();
private static final Marker RECEIVED_PACKET_MARKER = MarkerManager.getMarker("PACKET_SENT", NetworkManager.logMarkerPackets);
private final EnumPacketDirection direction;
public MessageSerializer(EnumPacketDirection direction) {
this.direction = direction;
}
This error has been in every single thing but it is different each time. I do now know why this happens yet and will have to do a bit more experimenting.
just had the sudden revelation that I should tell you that the mods have swapped from the old server and the new server. The new server mods and log will be posted below. The people joining are using the same mods.
Debug.log will be pasted in google drive because of it being way to big for pastebin.
After installing a mod (https://minecraft.curseforge.com/projects/randompatches) I was able to fix the problem but then it caused errors to be spammed when someone disconnect and massive amounts of lag. So I cannot use this mod for a permanent solution but for anyone with the same issue it should work as a temporary fix.
Finally a reply, but currently I am using a mod that seems to fix the error of Error : Internal Exception: io.netty.handler.codec.EncoderException: java.io.IOException: Can't serialize unregistered packet but instead of kicking people out because of the error, it doesn't allow them to join in the first place and spews out errors randomly. Removing this gives me the error again. My current modlist consists of all these mods.
this one is with the randompatches mod that seems to fix the error, but causes its own error. But I must note that this version is not the version I am currently using. As my friends have not been able to test the server with me to see if the latest version works.
Error : Internal Exception: io.netty.handler.codec.EncoderException: java.io.IOException: Can't serialize unregistered packet
I have tried resetting ports, messing with the fire wall, reinstalling the server, and occult rituals to satan himself to attempt to fix it. Nothing has worked so far and I can't find a way to fix it from any logs. The error happens modded or non modded and I do not know what to do.
These errors have been happening ever since I reinstalled the server.
Internal Exception : com.google.common.util.concurrent.UnchckedExecutionException : net.minecraftforge.dml.common.loaderExceptionModCrash: Caught exception from Minecraft Forge (forge)
Internal Exception: com.google.common.util.concurrent.UncheckedExecutionException: java.lang.IllegalArgumentExeeption: The specified entry buildcraft.transport.item.ItemPluggableSimple@452b2d6c hasn't been registered in registry yet.
Latest.log : https://pastebin.com/HcQ28N6E
Debug.log : https://pastebin.com/mCFGjCZf
The new errors were because I updated and the mods were not up to date, so those are solved but the Can't serialize unregistered packet error is still plaguing my server.
the error Error : Internal Exception: io.netty.handler.codec.EncoderException: java.io.IOException: Can't serialize unregistered packet seems to be an encoding problem, but I have no clue what or how to fix it. Making a brand new minecraft server has not done any good either. Please help I am running out of ideas.
looking at some code I found this
package net.minecraft.util;
import io.netty.buffer.ByteBuf;
import io.netty.channel.ChannelHandlerContext;
import io.netty.handler.codec.MessageToByteEncoder;
import net.minecraft.network.*;
import net.minecraft.network.play.server.S0CPacketSpawnPlayer;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.apache.logging.log4j.Marker;
import org.apache.logging.log4j.MarkerManager;
import java.io.IOException;
public class MessageSerializer extends MessageToByteEncoder {
private static final Logger logger = LogManager.getLogger();
private static final Marker RECEIVED_PACKET_MARKER = MarkerManager.getMarker("PACKET_SENT", NetworkManager.logMarkerPackets);
private final EnumPacketDirection direction;
public MessageSerializer(EnumPacketDirection direction) {
this.direction = direction;
}
protected void encode(ChannelHandlerContext p_encode_1_, Packet p_encode_2_, ByteBuf p_encode_3_) throws IOException {
Integer var4 = ((EnumConnectionState) p_encode_1_.channel().attr(NetworkManager.attrKeyConnectionState).get()).getPacketId(this.direction, p_encode_2_);
if (logger.isDebugEnabled()) {
logger.debug(RECEIVED_PACKET_MARKER, "OUT: [{}:{}] {}", new Object[]{p_encode_1_.channel().attr(NetworkManager.attrKeyConnectionState).get(), var4, p_encode_2_.getClass().getName()});
}
if (var4 == null) {
throw new IOException("Can\'t serialize unregistered packet");
} else {
PacketBuffer var5 = new PacketBuffer(p_encode_3_);
var5.writeVarIntToBuffer(var4.intValue());
try {
if (p_encode_2_ instanceof S0CPacketSpawnPlayer) {
p_encode_2_ = p_encode_2_;
}
p_encode_2_.writePacketData(var5);
} catch (Throwable var7) {
logger.error(var7);
}
}
}
protected void encode(ChannelHandlerContext p_encode_1_, Object p_encode_2_, ByteBuf p_encode_3_) throws IOException {
this.encode(p_encode_1_, (Packet) p_encode_2_, p_encode_3_);
}
}
The bolded text seem to be what is causing this error but I do not know enough about java to fix any of this
After looking through many people with the same error as me I have came to what is causing it.
[Server thread/ERROR] [FML]: Parsing error loading built-in advancement...
This error has been in every single thing but it is different each time. I do now know why this happens yet and will have to do a bit more experimenting.
The error seems less likely on vanilla minecraft but I still have no clue what to do. Any reply or suggestion will be considered.
EDIT: This is false. Modded is the only thing effected
just had the sudden revelation that I should tell you that the mods have swapped from the old server and the new server. The new server mods and log will be posted below. The people joining are using the same mods.
Debug.log will be pasted in google drive because of it being way to big for pastebin.
Debug.log: https://drive.google.com/open?id=1K0S6w4vyLVXQK0XRfsw8WjZhyaxlxk0N
After installing a mod (https://minecraft.curseforge.com/projects/randompatches) I was able to fix the problem but then it caused errors to be spammed when someone disconnect and massive amounts of lag. So I cannot use this mod for a permanent solution but for anyone with the same issue it should work as a temporary fix.
bump from the ancient world of 18 days later.
Finally a reply, but currently I am using a mod that seems to fix the error of Error : Internal Exception: io.netty.handler.codec.EncoderException: java.io.IOException: Can't serialize unregistered packet but instead of kicking people out because of the error, it doesn't allow them to join in the first place and spews out errors randomly. Removing this gives me the error again. My current modlist consists of all these mods.
https://minecraft.curseforge.com/projects/buildcraft/files/2560476
https://minecraft.curseforge.com/projects/tinkers-construct/files/2568000
https://minecraft.curseforge.com/projects/gravestone-mod/files/2524880
https://minecraft.curseforge.com/projects/mantle/files/2550550
https://minecraft.curseforge.com/projects/ore-excavation/files/2552367
https://minecraft.curseforge.com/projects/jei/files/2556235
https://minecraft.curseforge.com/projects/aether-legacy/files/2553665
https://minecraft.curseforge.com/projects/industrial-craft/files/2547175
https://minecraft.curseforge.com/projects/chest-transporter/files/2524058
https://minecraft.curseforge.com/projects/projecte/files/2557247
https://minecraft.curseforge.com/projects/iron-chests/files/2550378
https://minecraft.curseforge.com/projects/flatbedrockx/files/2440978
https://minecraft.curseforge.com/projects/hammer-core/files/2569991
https://minecraft.curseforge.com/projects/expanded-equivalence/files/2570042
*****************************************
SERVER ONLY
https://minecraft.curseforge.com/projects/randompatches/files/2571955
I still have no clue what could be causing the problem. Sorry for the late reply.
https://pastebin.com/aVfFsGrP
this one is with the randompatches mod that seems to fix the error, but causes its own error. But I must note that this version is not the version I am currently using. As my friends have not been able to test the server with me to see if the latest version works.
and thanks to Carbonawk's help I have discovered the problem, had 2 javas. One was 32 bit. Outdates tech too.