io.netty.handler.codec.EncoderException

java.lang.RuntimeException: An internal error occured.

Samebug tips0

There are no available Samebug tips for this exception. If you know how to solve this issue, help other users by writing a short tip.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web15

  • via GitHub by swan201
    , 1 year ago
    java.lang.RuntimeException: An internal error occured.
  • via GitHub by Z609
    , 1 year ago
    java.lang.RuntimeException: An internal error occured.
  • java.lang.RuntimeException: An internal error occured.
  • Stack trace

    • io.netty.handler.codec.EncoderException: java.lang.RuntimeException: An internal error occured. at io.netty.handler.codec.MessageToByteEncoder.write(MessageToByteEncoder.java:125) at com.comphenix.protocol.injector.netty.ChannelInjector$3.write(ChannelInjector.java:263) at io.netty.channel.AbstractChannelHandlerContext.invokeWrite(AbstractChannelHandlerContext.java:658) at io.netty.channel.AbstractChannelHandlerContext.write(AbstractChannelHandlerContext.java:716) at io.netty.channel.AbstractChannelHandlerContext.write(AbstractChannelHandlerContext.java:651) at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:112) at io.netty.channel.AbstractChannelHandlerContext.invokeWrite(AbstractChannelHandlerContext.java:658) at io.netty.channel.AbstractChannelHandlerContext.write(AbstractChannelHandlerContext.java:716) at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:706) at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:741) at io.netty.channel.DefaultChannelPipeline.writeAndFlush(DefaultChannelPipeline.java:895) at io.netty.channel.AbstractChannel.writeAndFlush(AbstractChannel.java:240) at com.comphenix.protocol.injector.netty.ChannelProxy.writeAndFlush(ChannelProxy.java:327) at net.minecraft.server.v1_8_R3.NetworkManager$4.run(NetworkManager.java:198) at com.comphenix.protocol.injector.netty.ChannelInjector$5$3.run(ChannelInjector.java:340) at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:380) at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:357) at io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:116) at java.lang.Thread.run(Thread.java:745) Caused by: java.lang.RuntimeException: An internal error occured. at com.comphenix.protocol.reflect.accessors.DefaultMethodAccessor.invoke(DefaultMethodAccessor.java:20) at com.comphenix.protocol.injector.netty.ChannelInjector.encode(ChannelInjector.java:485) at com.comphenix.protocol.injector.netty.ChannelInjector$3.encode(ChannelInjector.java:257) at io.netty.handler.codec.MessageToByteEncoder.write(MessageToByteEncoder.java:107) ... 18 more Caused by: io.netty.handler.codec.DecoderException: The received a byte array longer than allowed 73984 > 32767 at net.minecraft.server.v1_8_R3.PacketDataSerializer.readByteArray(PacketDataSerializer.java:56) at net.minecraft.server.v1_8_R3.PacketDataSerializer.a(PacketDataSerializer.java:51) at protocolsupport.protocol.PacketDataSerializer.a(PacketDataSerializer.java:216) at protocolsupport.protocol.PacketDataSerializer.readArray(PacketDataSerializer.java:258) at protocolsupport.protocol.transformer.middlepacket.clientbound.play.MiddleChunkSingle.readFromServerData(MiddleChunkSingle.java:22) at protocolsupport.protocol.transformer.v_1_7.PacketEncoder.encode(PacketEncoder.java:207) at protocolsupport.protocol.core.wrapped.WrappedEncoder.encode(WrappedEncoder.java:28) at protocolsupport.protocol.core.wrapped.WrappedEncoder.encode(WrappedEncoder.java:10) at sun.reflect.GeneratedMethodAccessor50.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at us.myles.ViaVersion.util.PipelineUtil.callEncode(PipelineUtil.java:47) at us.myles.ViaVersion.classgenerator.generated.ViaEncodeHandler.encode(ViaEncodeHandler.java:39) at sun.reflect.GeneratedMethodAccessor49.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at com.comphenix.protocol.reflect.accessors.DefaultMethodAccessor.invoke(DefaultMethodAccessor.java:16) ... 21 more

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    You’re the first here who have seen this exception.