为了账号安全,请及时绑定邮箱和手机立即绑定

java.io.IOException: 远程主机强迫关闭了一个现有的连接。

java.io.IOException: 远程主机强迫关闭了一个现有的连接。

car 2017-07-10 23:07:25
23:00:44.209 [Service socket Server] WARN com.meidusa.toolkit.net.ConnectionAcceptor - Server listening on /0:0:0:0:0:0:0:0:16800.23:00:44.214 [Service socket Server-Manager-0] INFO com.meidusa.toolkit.net.util.LoopingThread - Service socket Server-Manager-0 LoopingThread willStart....23:00:44.215 [Service socket Server-Manager-1] INFO com.meidusa.toolkit.net.util.LoopingThread - Service socket Server-Manager-1 LoopingThread willStart....23:00:44.215 [Service socket Server-Manager-3] INFO com.meidusa.toolkit.net.util.LoopingThread - Service socket Server-Manager-3 LoopingThread willStart....23:00:44.216 [Service socket Server-Manager-2] INFO com.meidusa.toolkit.net.util.LoopingThread - Service socket Server-Manager-2 LoopingThread willStart....23:00:48.987 [Connection Idle Checker] DEBUG venus.report.queue - server total queue=023:00:53.997 [Connection Idle Checker] DEBUG venus.report.queue - server total queue=023:00:59.003 [Connection Idle Checker] DEBUG venus.report.queue - server total queue=023:01:00.662 [Service socket Server] INFO com.meidusa.toolkit.net.AbstractConnection - toolkit max input packet limit=4194304, improved limit via set System property (-Dtoolkit.packet.max=newlimit)23:01:01.040 [Service socket Server-Manager-0-Eexecutor3] INFO com.meidusa.venus.io.extension.ExtensionResolver - Scanning URL [jar:file:/E:/repo/com/meidusa/venus/commons/venus-common-io/3.3.0/venus-common-io-3.3.0.jar!/META-INF/venus.io.extension.ini]23:01:01.074 [Service socket Server-Manager-0-Eexecutor3] INFO com.meidusa.venus.io.extension.ExtensionResolver - register type=bson, key=com.meidusa.venus.util.Range, class=com.meidusa.venus.io.range.RangeBsonSerializer23:01:01.135 [Service socket Server-Manager-0-Eexecutor3] INFO com.meidusa.venus.io.extension.ExtensionResolver - register type=json Deserializer, key=com.meidusa.venus.notify.InvocationListener, class=com.meidusa.venus.notify.io.json.ReferenceInvocationListenerDeserializer23:01:01.135 [Service socket Server-Manager-0-Eexecutor3] INFO com.meidusa.venus.io.extension.ExtensionResolver - register type=json Deserializer, key=com.meidusa.venus.util.Range, class=com.meidusa.venus.io.range.RangeObjectDeserializer23:01:01.143 [Service socket Server-Manager-0-Eexecutor3] INFO com.meidusa.venus.io.extension.ExtensionResolver - register type=json Serializer, key=com.meidusa.venus.util.Range, class=com.meidusa.venus.io.range.RangeObjectSerializer23:01:01.191 [Service socket Server-Manager-0-Eexecutor3] DEBUG venus.tracer - receive id=7a5c7e37-2253-4717-9f04-3a7971643e20,service=CouponService.getCount,params={"voucherid":1}23:01:01.202 [Service socket Server-Manager-0-Eexecutor3] DEBUG com.meidusa.venus.util.ThreadLocalMap - Added attribute to thread context: REQUEST_TRACE_ID = [B@32b02c3323:01:01.203 [Service socket Server-Manager-0-Eexecutor3] DEBUG com.meidusa.venus.util.ThreadLocalMap - Added attribute to thread context: _REQUEST_CONTEXT_ = com.meidusa.venus.backend.context.RequestContext@163525voucherid=123:01:01.221 [Service socket Server-Manager-0-Eexecutor3] DEBUG org.mybatis.spring.SqlSessionUtils - Creating a new SqlSession23:01:01.229 [Service socket Server-Manager-0-Eexecutor3] DEBUG org.mybatis.spring.SqlSessionUtils - SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@4218bc85] was not registered for synchronization because synchronization is not active23:01:01.703 [Service socket Server-Manager-0-Eexecutor3] DEBUG org.mybatis.spring.transaction.SpringManagedTransaction - JDBC Connection [com.mysql.jdbc.JDBC4Connection@1165aad8] will not be managed by Spring23:01:01.710 [Service socket Server-Manager-0-Eexecutor3] DEBUG com.saicmaxus.micro.api.coupon.service.CouponService.countByExample - ==>  Preparing: select count(*) from c_mycoupon where status=0 and use_status=0 AND voucherid = ? 23:01:01.742 [Service socket Server-Manager-0-Eexecutor3] DEBUG com.saicmaxus.micro.api.coupon.service.CouponService.countByExample - ==> Parameters: 1(Integer)23:01:01.763 [Service socket Server-Manager-0-Eexecutor3] DEBUG com.saicmaxus.micro.api.coupon.service.CouponService.countByExample - <==      Total: 123:01:01.765 [Service socket Server-Manager-0-Eexecutor3] DEBUG org.mybatis.spring.SqlSessionUtils - Closing non transactional SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@4218bc85]23:01:01.774 [Service socket Server-Manager-0-Eexecutor3] DEBUG venus.backend.performance - [165,565]ms, (*server*) traceID=7a5c7e37-2253-4717-9f04-3a7971643e20, api=CouponService.getCount, ip=127.0.0.1, sourceIP=127.0.0.1, clientID=1827886304, requestID=1, params={"voucherid":1}, result={"errorCode":0,"result":0}23:01:01.790 [Service socket Server-Manager-0] WARN com.meidusa.venus.io.network.VenusFrontendConnection - [thread=Service socket Server-Manager-0,class=VenusBackendFrontendConnection,host=127.0.0.1,port=52179]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:197) at sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:380) at com.meidusa.toolkit.net.AbstractConnection.read(AbstractConnection.java:197) at com.meidusa.toolkit.net.ConnectionManager.read(ConnectionManager.java:221) at com.meidusa.toolkit.net.ConnectionManager.iterate(ConnectionManager.java:180) at com.meidusa.toolkit.net.util.LoopingThread.run(LoopingThread.java:64)23:01:01.791 [Service socket Server-Manager-2] WARN com.meidusa.venus.io.network.VenusFrontendConnection - [thread=Service socket Server-Manager-2,class=VenusBackendFrontendConnection,host=127.0.0.1,port=52181]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:197) at sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:380) at com.meidusa.toolkit.net.AbstractConnection.read(AbstractConnection.java:197) at com.meidusa.toolkit.net.ConnectionManager.read(ConnectionManager.java:221) at com.meidusa.toolkit.net.ConnectionManager.iterate(ConnectionManager.java:180) at com.meidusa.toolkit.net.util.LoopingThread.run(LoopingThread.java:64)23:01:01.791 [Service socket Server-Manager-3] WARN com.meidusa.venus.io.network.VenusFrontendConnection - [thread=Service socket Server-Manager-3,class=VenusBackendFrontendConnection,host=127.0.0.1,port=52182]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:197) at sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:380) at com.meidusa.toolkit.net.AbstractConnection.read(AbstractConnection.java:197) at com.meidusa.toolkit.net.ConnectionManager.read(ConnectionManager.java:221) at com.meidusa.toolkit.net.ConnectionManager.iterate(ConnectionManager.java:180) at com.meidusa.toolkit.net.util.LoopingThread.run(LoopingThread.java:64)23:01:01.790 [Service socket Server-Manager-1] WARN com.meidusa.venus.io.network.VenusFrontendConnection - [thread=Service socket Server-Manager-1,class=VenusBackendFrontendConnection,host=127.0.0.1,port=52180]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:197) at sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:380) at com.meidusa.toolkit.net.AbstractConnection.read(AbstractConnection.java:197) at com.meidusa.toolkit.net.ConnectionManager.read(ConnectionManager.java:221) at com.meidusa.toolkit.net.ConnectionManager.iterate(ConnectionManager.java:180) at com.meidusa.toolkit.net.util.LoopingThread.run(LoopingThread.java:64)23:01:01.791 [Service socket Server-Manager-2] DEBUG com.meidusa.toolkit.net.AbstractConnection - conn=[thread=Service socket Server-Manager-2,class=VenusBackendFrontendConnection,host=127.0.0.1,port=52181], closed!!23:01:01.791 [Service socket Server-Manager-0] DEBUG com.meidusa.toolkit.net.AbstractConnection - conn=[thread=Service socket Server-Manager-0,class=VenusBackendFrontendConnection,host=127.0.0.1,port=52179], closed!!23:01:01.791 [Service socket Server-Manager-3] DEBUG com.meidusa.toolkit.net.AbstractConnection - conn=[thread=Service socket Server-Manager-3,class=VenusBackendFrontendConnection,host=127.0.0.1,port=52182], closed!!23:01:01.792 [Service socket Server-Manager-1] DEBUG com.meidusa.toolkit.net.AbstractConnection - conn=[thread=Service socket Server-Manager-1,class=VenusBackendFrontendConnection,host=127.0.0.1,port=52180], closed!!23:01:01.793 [Service socket Server-Manager-2] WARN com.meidusa.venus.io.network.VenusFrontendConnection - [thread=Service socket Server-Manager-2,class=VenusBackendFrontendConnection,host=127.0.0.1,port=52185]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:197) at sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:380) at com.meidusa.toolkit.net.AbstractConnection.read(AbstractConnection.java:197) at com.meidusa.toolkit.net.ConnectionManager.read(ConnectionManager.java:221) at com.meidusa.toolkit.net.ConnectionManager.iterate(ConnectionManager.java:180) at com.meidusa.toolkit.net.util.LoopingThread.run(LoopingThread.java:64)23:01:01.793 [Service socket Server-Manager-0] WARN com.meidusa.venus.io.network.VenusFrontendConnection - [thread=Service socket Server-Manager-0,class=VenusBackendFrontendConnection,host=127.0.0.1,port=52187]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:197) at sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:380) at com.meidusa.toolkit.net.AbstractConnection.read(AbstractConnection.java:197) at com.meidusa.toolkit.net.ConnectionManager.read(ConnectionManager.java:221) at com.meidusa.toolkit.net.ConnectionManager.iterate(ConnectionManager.java:180) at com.meidusa.toolkit.net.util.LoopingThread.run(LoopingThread.java:64)23:01:01.793 [Service socket Server-Manager-3] WARN com.meidusa.venus.io.network.VenusFrontendConnection - [thread=Service socket Server-Manager-3,class=VenusBackendFrontendConnection,host=127.0.0.1,port=52186]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:197) at sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:380) at com.meidusa.toolkit.net.AbstractConnection.read(AbstractConnection.java:197) at com.meidusa.toolkit.net.ConnectionManager.read(ConnectionManager.java:221) at com.meidusa.toolkit.net.ConnectionManager.iterate(ConnectionManager.java:180) at com.meidusa.toolkit.net.util.LoopingThread.run(LoopingThread.java:64)23:01:01.793 [Service socket Server-Manager-1] WARN com.meidusa.venus.io.network.VenusFrontendConnection - [thread=Service socket Server-Manager-1,class=VenusBackendFrontendConnection,host=127.0.0.1,port=52184]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:197) at sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:380) at com.meidusa.toolkit.net.AbstractConnection.read(AbstractConnection.java:197) at com.meidusa.toolkit.net.ConnectionManager.read(ConnectionManager.java:221) at com.meidusa.toolkit.net.ConnectionManager.iterate(ConnectionManager.java:180) at com.meidusa.toolkit.net.util.LoopingThread.run(LoopingThread.java:64)23:01:01.793 [Service socket Server-Manager-2] DEBUG com.meidusa.toolkit.net.AbstractConnection - conn=[thread=Service socket Server-Manager-2,class=VenusBackendFrontendConnection,host=127.0.0.1,port=52185], closed!!23:01:01.793 [Service socket Server-Manager-0] DEBUG com.meidusa.toolkit.net.AbstractConnection - conn=[thread=Service socket Server-Manager-0,class=VenusBackendFrontendConnection,host=127.0.0.1,port=52187], closed!!23:01:01.793 [Service socket Server-Manager-3] DEBUG com.meidusa.toolkit.net.AbstractConnection - conn=[thread=Service socket Server-Manager-3,class=VenusBackendFrontendConnection,host=127.0.0.1,port=52186], closed!!23:01:01.793 [Service socket Server-Manager-1] DEBUG com.meidusa.toolkit.net.AbstractConnection - conn=[thread=Service socket Server-Manager-1,class=VenusBackendFrontendConnection,host=127.0.0.1,port=52184], closed!!23:01:01.794 [Service socket Server-Manager-0] WARN com.meidusa.venus.io.network.VenusFrontendConnection - [thread=Service socket Server-Manager-0,class=VenusBackendFrontendConnection,host=127.0.0.1,port=52183]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:197) at sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:380) at com.meidusa.toolkit.net.AbstractConnection.read(AbstractConnection.java:197) at com.meidusa.toolkit.net.ConnectionManager.read(ConnectionManager.java:221) at com.meidusa.toolkit.net.ConnectionManager.iterate(ConnectionManager.java:180) at com.meidusa.toolkit.net.util.LoopingThread.run(LoopingThread.java:64)23:01:01.794 [Service socket Server-Manager-0] DEBUG com.meidusa.toolkit.net.AbstractConnection - conn=[thread=Service socket Server-Manager-0,class=VenusBackendFrontendConnection,host=127.0.0.1,port=52183], closed!!23:01:04.005 [Connection Idle Checker] DEBUG venus.report.queue - server total queue=023:01:09.005 [Connection Idle Checker] DEBUG venus.report.queue - server total queue=023:01:14.006 [Connection Idle Checker] DEBUG venus.report.queue - server total queue=0这是我后台输出的日志。我的服务器和客户在同一台机器,服务端和客户端在同一个项目地址127.0.0.1:16800,不知道错误在哪里
查看完整描述

1 回答

已采纳
?
胜利女神在微笑

TA贡献67条经验 获得超59个赞

端口太大了,改小点

查看完整回答
2 反对 回复 2017-08-03
  • 1 回答
  • 0 关注
  • 16422 浏览

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信