DecoderException:java.lang.IndexOutOfBoundsException #357
Open
Description
Your question
客户端发送数据到服务器,流程没有进入ProtocolCodeBasedDecoder的decodeProtocolCode,直接抛出了DecoderException,在ConnectionEventHandler的exceptionCaught打印了错误的信息,由于没有打印堆栈,不知道具体报错的代码位置,这是什么原因
具体打印的报错信息如下:
2024-08-01 03:55:31,743 WARN [RpcConnectionEventHandler#49] [Rpc-netty-server-worker-1-thread-2] ExceptionCaught in connection: local[172.26.10.250:
8884], remote[223.64.173.65:1152], close the connection! Cause[DecoderException:java.lang.IndexOutOfBoundsException: readerIndex(46) + length(2366) e
xceeds writerIndex(47): PooledUnsafeDirectByteBuf(ridx: 46, widx: 47, cap: 4096)]
Your scenes
Your advice
希望可以看看具体的报错原因,或者有其他人提出过此问题的原因吗
Environment
- SOFABolt version: 1.6.2
- JVM version (e.g.
java -version
): OpenJDK 64-Bit Server VM (build 25.292-b10, mixed mode) - OS version (e.g.
uname -a
): Linux ip-172-26-10-250.us-west-2.compute.internal 3.10.0-1160.15.2.el7.x86_64 (doc) modify docs #1 SMP Wed Feb 3 15:06:38 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux - Maven version: 3.8.1
- IDE version: IDEA 2021.2.1
Metadata
Assignees
Labels
No labels