Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

DecoderException:java.lang.IndexOutOfBoundsException #357

Copy link
Copy link
@jacs

Description

@jacs
Issue body actions

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

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.