io.netty.channel.DefaultChannelPipeline onUnhandledInboundException

news/2024/7/15 16:47:33 标签: netty

九月 19, 2018 9:59:01 下午 io.netty.channel.DefaultChannelPipeline onUnhandledInboundException
警告: An exceptionCaught() event was fired, and it reached at the tail of the pipeline. It usually means the last handler in the pipeline did not handle the exception.
java.io.IOException: 远程主机强迫关闭了一个现有的连接。
    at sun.nio.ch.SocketDispatcher.read0(Native Method)
    at sun.nio.ch.SocketDispatcher.read(SocketDispatcher.java:43)
    at sun.nio.ch.IOUtil.readIntoNativeBuffer(IOUtil.java:223)
    at sun.nio.ch.IOUtil.read(IOUtil.java:192)
    at sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:380)
    at io.netty.buffer.PooledUnsafeDirectByteBuf.setBytes(PooledUnsafeDirectByteBuf.java:288)
    at io.netty.buffer.AbstractByteBuf.writeBytes(AbstractByteBuf.java:1108)
    at io.netty.channel.socket.nio.NioSocketChannel.doReadBytes(NioSocketChannel.java:347)
    at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:148)
    at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:628)
    at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:563)
    at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:480)
    at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:442)
    at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:884)
    at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
    at java.lang.Thread.run(Thread.java:745)

结果返回,却netty服务器报错,解决方案:

 


 


http://www.niftyadmin.cn/n/1621285.html

相关文章

go mod vendor 如何使用

目录1. go vendor1.1. go mod vendor 如何使用1.2. vendor 里面的 package 要更新1.3. Update All Go Modules1.4. replace modules2. golang 使用 vendor 目录来管理依赖包2.1. Vendor 目录介绍2.2. 一些建议2.3. 举个例子2.4. 为什么用 vendor 目录2.5. 推荐2.5.1. Glide2.6.…

cocos creator 底部按钮touch延迟

cocos论坛里有这个问题: http://forum.cocos.com/t/ios-touchstart-bug/63367我的引擎版本:"engine_version": "Cocos2d-x-lite v1.8.2",同样会有问题。 最后是通过移动按钮的位置享受解决的,1536的高度,按钮…

python 语法

这里写目录标题python下划线 __ 开头的变量示例公有变量名半私有变量名私有变量名魔法方法错误与异常raise 错误Python 命名中下划线的含义python 下划线 __ 开头的变量 示例 # 以数字、字母开头: 正常的公有变量名 a 1 def aa():pass# 以单下划线开头: 半私有的变量名 _…

一、Netty执行流程和回调机制实战

netty的执行流程机制,我们先通过代码案例直接熟悉上手,后面然后拆开分别详细深入剖析,及相关核心代码的源码解析; 我们使用gradle: compile group: io.netty, name: netty-all, version: 4.1.29.Finalpackage com.zh…

Redo current损坏

如果损坏的是current redo log (select group#,sequence#,archived,status from v$log;) 有两种情况: A、 数据库是正常关闭的。当前日志组的损坏就可以直接用alter database clear unarchived logfile group n来重建。 启动数据库到mount状…

ASP.NET Web API 之一 入门篇

一、基于RESTful标准的Web Api 原文讲解:https://www.cnblogs.com/lori/p/3555737.html 微软的web api是在vs2012上的mvc4项目绑定发行的,它提出的web api是完全基于RESTful标准的,完全不同于之前的(同是SOAP协议的)wc…

Golang 不定参数类型

这里写目录标题1. Golang 不定参数类型1.1. 不定参数类型1.2. 不定参数的传递1.3. 任意类型的不定参数1. Golang 不定参数类型 1.1. 不定参数类型 不定参数是指函数传入的参数个数为不定数量。 package mainimport ("fmt" )//不定参数函数 func Add(a int, args .…