io.netty.handler.codec.DecoderException: java.lang.ArrayIndexOutOfBoundsException: -1

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via GitHub by PrinceOfAmber
, 1 year ago
java.lang.ArrayIndexOutOfBoundsException: -1
via GitHub by PrinceOfAmber
, 5 months ago
java.lang.ArrayIndexOutOfBoundsException: -1
via GitHub by Cerenator
, 1 year ago
java.lang.NullPointerException: Undefined message for discriminator -1 in channel thaumcraft
via GitHub by Dinoboy64
, 7 months ago
java.lang.IndexOutOfBoundsException: readerIndex(4) + length(2) exceeds writerIndex(5): SlicedByteBuf(ridx: 4, widx: 5, cap: 5/5, unwrapped: UnpooledHeapByteBuf(ridx: 1, widx: 6, cap: 6))
via GitHub by Dinoboy64
, 1 year ago
java.lang.IndexOutOfBoundsException: readerIndex(4) + length(2) exceeds writerIndex(5): SlicedByteBuf(ridx: 4, widx: 5, cap: 5/5, unwrapped: UnpooledHeapByteBuf(ridx: 1, widx: 6, cap: 6))
via issuehub.io by Unknown author, 2 years ago
java.lang.IndexOutOfBoundsException: readerIndex(4) + length(2) exceeds writerIndex(5): SlicedByteBuf(ridx: 4, widx: 5, cap: 5/5, unwrapped: UnpooledHeapByteBuf(ridx: 1, widx: 6, cap: 6))
java.lang.ArrayIndexOutOfBoundsException: -1
at de.universallp.va.core.network.messages.MessageSetFieldClient.fromBytes(MessageSetFieldClient.java:71)
at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.decodeInto(SimpleIndexedCodec.java:36)
at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.decodeInto(SimpleIndexedCodec.java:26)
at net.minecraftforge.fml.common.network.FMLIndexedMessageToMessageCodec.decode(FMLIndexedMessageToMessageCodec.java:103)
at io.netty.handler.codec.MessageToMessageCodec$2.decode(MessageToMessageCodec.java:81)
at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:89)
at io.netty.handler.codec.MessageToMessageCodec.channelRead(MessageToMessageCodec.java:111)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:333)
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:319)
at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:787)
at net.minecraft.network.NetworkManager.channelRead0(NetworkManager.java:149)
at io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:105)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:333)
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:319)
at net.minecraftforge.fml.common.network.handshake.NetworkDispatcher.handleClientSideCustomPacket(NetworkDispatcher.java:407)
at net.minecraftforge.fml.common.network.handshake.NetworkDispatcher.channelRead0(NetworkDispatcher.java:273)
at io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:105)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:333)
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:319)
at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:787)
at io.netty.channel.local.LocalChannel.finishPeerRead(LocalChannel.java:326)
at io.netty.channel.local.LocalChannel.access$400(LocalChannel.java:45)
at io.netty.channel.local.LocalChannel$5.run(LocalChannel.java:312)
at io.netty.channel.local.LocalEventLoop.run(LocalEventLoop.java:33)
at io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:116)
at java.lang.Thread.run(Thread.java:745)

Users with the same issue

You are the first who have seen this exception.

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.