Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DecoderException:java.lang.IndexOutOfBoundsException #357

Open
jacs opened this issue Aug 1, 2024 · 1 comment
Open

DecoderException:java.lang.IndexOutOfBoundsException #357

jacs opened this issue Aug 1, 2024 · 1 comment

Comments

@jacs
Copy link

jacs commented Aug 1, 2024

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
@chuailiwu
Copy link
Collaborator

Please upgrade to the latest version(1.6.10) first to see if the exception still persists

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants