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

在k8s环境里,telnet 连接出错 java.lang.UnsupportedOperationException: Handle this case gracefully #1032

Closed
hengyunabc opened this issue Feb 20, 2020 · 1 comment
Labels
bug Something isn't working
Milestone

Comments

@hengyunabc
Copy link
Collaborator

attach是成功了的,telent也可以连接上。但当在shell里输入字符时,连接就会断开,日志里的错误:

Arthas server agent start...
Arthas server already bind.
01 2020-02-20 15:44:15.930 INFO [nioEventLoopGroup-2-1:i.n.h.l.LoggingHandler] [id: 0x1ed033da, L:/0.0.0.0:3658] READ: [id: 0xe4666e8b, L:/127.0.0.1:3658 - R:/127.0.0.1:33915]
01 2020-02-20 15:44:15.931 INFO [nioEventLoopGroup-2-1:i.n.h.l.LoggingHandler] [id: 0x1ed033da, L:/0.0.0.0:3658] READ COMPLETE
01 2020-02-20 15:44:16.937 INFO [nioEventLoopGroup-2-5:arthas] [] [] [] Loaded arthas keymap file from com/taobao/arthas/core/shell/term/readline/inputrc
01 2020-02-20 15:44:29.251 ERROR [nioEventLoopGroup-2-5:i.t.c.io_error] Reported io error => closing
java.lang.UnsupportedOperationException: Handle this case gracefully
  at io.termd.core.util.Helper.computePosition(Helper.java:230)
  at io.termd.core.readline.LineBuffer.getPosition(LineBuffer.java:286)
  at io.termd.core.readline.LineBuffer.getCursorPosition(LineBuffer.java:272)
  at io.termd.core.readline.LineBuffer$Update.<init>(LineBuffer.java:325)
  at io.termd.core.readline.LineBuffer.update(LineBuffer.java:306)
  at io.termd.core.readline.Readline$Interaction.refresh(Readline.java:403)
  at io.termd.core.readline.Readline$Interaction.refresh(Readline.java:389)
  at io.termd.core.readline.Readline$Interaction.handle(Readline.java:288)
  at io.termd.core.readline.Readline$Interaction.access$200(Readline.java:189)
  at io.termd.core.readline.Readline.deliver(Readline.java:123)
  at io.termd.core.readline.Readline.access$500(Readline.java:41)
  at io.termd.core.readline.Readline$Interaction$2.accept(Readline.java:437)
  at io.termd.core.readline.Readline$Interaction$2.accept(Readline.java:431)
  at io.termd.core.tty.TtyEventDecoder.accept(TtyEventDecoder.java:93)
  at io.termd.core.tty.TtyEventDecoder.accept(TtyEventDecoder.java:26)
  at io.termd.core.tty.ReadBuffer.accept(ReadBuffer.java:44)
  at io.termd.core.tty.ReadBuffer.accept(ReadBuffer.java:28)
  at io.termd.core.io.BinaryDecoder.write(BinaryDecoder.java:117)
  at io.termd.core.io.BinaryDecoder.write(BinaryDecoder.java:65)
  at io.termd.core.telnet.TelnetTtyConnection.onData(TelnetTtyConnection.java:139)
  at io.termd.core.telnet.TelnetConnection.flushData(TelnetConnection.java:267)
  at io.termd.core.telnet.TelnetConnection.flushDataIfNecessary(TelnetConnection.java:257)
  at io.termd.core.telnet.TelnetConnection.receive(TelnetConnection.java:108)
  at io.termd.core.telnet.netty.TelnetChannelHandler.channelRead(TelnetChannelHandler.java:47)
  at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:374)
  at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:360)
  at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:352)
  at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1421)
  at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:374)
  at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:360)
  at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:930)
  at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:163)
  at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:697)
  at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:632)
  at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:549)
  at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:511)
  at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:918)
  at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)
  at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
  at java.lang.Thread.run(Thread.java:745)
@hengyunabc
Copy link
Collaborator Author

应该和这个问题一致: #26

@hengyunabc hengyunabc changed the title 在k8s环境里,telnet 连接出错 在k8s环境里,telnet 连接出错 java.lang.UnsupportedOperationException: Handle this case gracefully Feb 20, 2020
@hengyunabc hengyunabc added the bug Something isn't working label Feb 20, 2020
@hengyunabc hengyunabc added this to the 3.1.8 milestone Feb 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant