java.net.SocketException: Connection reset错误 [问题点数:20分,结帖人dawnwater]

Bbs1
本版专家分:0
结帖率 100%
Bbs6
本版专家分:9213
Bbs2
本版专家分:478
Bbs3
本版专家分:901
Bbs2
本版专家分:188
Bbs1
本版专家分:76
Bbs2
本版专家分:119
Bbs3
本版专家分:918
Bbs1
本版专家分:0
Bbs6
本版专家分:6001
Bbs3
本版专家分:991
Bbs2
本版专家分:478
Bbs2
本版专家分:303
Bbs2
本版专家分:303
Bbs4
本版专家分:1230
Bbs1
本版专家分:1
Bbs1
本版专家分:0
CS两端TLS版本不适配导致Connection reset问题
n欢迎访问陈同学博客原文nn问题背景n近期平台在公司的一个出口IP流量偶尔抖动,在与运营商扯皮无结果后,IT帮忙开了一条新的专线。我们需要把域名在公网的DNS指向新的出口IP。n下面是简图:nn旧:流量经公网IP 126,采用端口映射直接到平台的代理机,然后再转发给后端具体的业务代理。n新:流量经公网IP 189,然后经公司统一代理(Proxy A),由代理把流量转发到我们自己的代理上。nn切换D...
socket 编程中 Connection reset 出现的原因,以及 bufferedwriter 写数据需要注意的问题
出现原因是因为,通信双方 有一方socket 关闭,而 另一方正在读取 数据造成的。nn有个注意点是 ,使用BufferedReader   .readline()方法读数据时要注意 其读完一行的标志是 \r\n 也就是换行符,所以,另一方使用bufferedWriter .writer(),方法一定要记得 跟上换行符(\r\n).nn不然的话,读取方读不到数据。。。nn ...
TCP中使用ObjectOutputStream传输数据对象抛出**Connection reset**的异常。
特别注意: n在使用ObjectOutputStream基于TCP传输时客户端在发送完ObjectOutputStream oos = new ObjectOutputStream(ops); n oos.writeObject(p);一定要记得调用oos.flush(); n socket.shutdownOutput();flush()是为了刷新缓冲区,socket.
ClientAbortException: java.net.SocketException: Connection reset
高手们帮我看看怎么解决?rn我用的是Tomcat6rnrnrnrnClientAbortException: java.net.SocketException: Connection <em>reset</em>rn at org.apache.catalina.connector.OutputBuffer.realWriteBytes(OutputBuffer.java:358)rn at org.apache.tomcat.util.buf.ByteChunk.append(ByteChunk.java:354)rn at org.apache.catalina.connector.OutputBuffer.writeBytes(OutputBuffer.java:381)rn at org.apache.catalina.connector.OutputBuffer.write(OutputBuffer.java:370)rn at org.apache.catalina.connector.CoyoteOutputStream.write(CoyoteOutputStream.java:89)rn at org.apache.catalina.servlets.DefaultServlet.copy(DefaultServlet.java:1708)rn at org.apache.catalina.servlets.DefaultServlet.serveResource(DefaultServlet.java:809)rn at org.apache.catalina.servlets.DefaultServlet.doGet(DefaultServlet.java:325)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at net.javato.framework.filter.PersistenceFilter.doFilter(PersistenceFilter.java:63)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at net.javato.framework.filter.RequestFilter.continueFilter(RequestFilter.java:295)rn at net.javato.framework.filter.RequestFilter.doFilter(RequestFilter.java:167)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:96)rn at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:75)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)rn at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)rn at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)rn at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)rn at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)rn at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)rn at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)rn at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)rn at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)rn at java.lang.Thread.run(Thread.java:619)rnCaused by: java.net.SocketException: Connection <em>reset</em>rn at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:96)rn at java.net.SocketOutputStream.write(SocketOutputStream.java:136)rn at org.apache.coyote.http11.InternalOutputBuffer.realWriteBytes(InternalOutputBuffer.java:740)rn at org.apache.tomcat.util.buf.ByteChunk.flushBuffer(ByteChunk.java:434)rn at org.apache.tomcat.util.buf.ByteChunk.append(ByteChunk.java:349)rn at org.apache.coyote.http11.InternalOutputBuffer$OutputStreamOutputBuffer.doWrite(InternalOutputBuffer.java:764)rn at org.apache.coyote.http11.filters.IdentityOutputFilter.doWrite(IdentityOutputFilter.java:118)rn at org.apache.coyote.http11.InternalOutputBuffer.doWrite(InternalOutputBuffer.java:573)rn at org.apache.coyote.Response.doWrite(Response.java:560)rn at org.apache.catalina.connector.OutputBuffer.realWriteBytes(OutputBuffer.java:353)rn ... 32 more
Caused by: java.net.SocketException: Connection reset
13:50:17,093 WARN com.mchange.v2.resourcepool.BasicResourcePool:1841 - com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask@1c7d56b -- Acquisition Attempt Failed!!! Clearing pending acquires. While trying to acquire a needed new resource, we failed to succeed more than the maximum number of allowed acquisition attempts (3). Last acquisition attempt exception: rnjava.sql.SQLException: I/O Error: Connection <em>reset</em>rn at net.sourceforge.jtds.jdbc.TdsCore.nextToken(TdsCore.java:2311)rn at net.sourceforge.jtds.jdbc.TdsCore.login(TdsCore.java:603)rn at net.sourceforge.jtds.jdbc.ConnectionJDBC2.(ConnectionJDBC2.java:357)rn at net.sourceforge.jtds.jdbc.ConnectionJDBC3.(ConnectionJDBC3.java:50)rn at net.sourceforge.jtds.jdbc.Driver.connect(Driver.java:184)rn at com.mchange.v2.c3p0.DriverManagerDataSource.getConnection(DriverManagerDataSource.java:134)rn at com.mchange.v2.c3p0.WrapperConnectionPoolDataSource.getPooledConnection(WrapperConnectionPoolDataSource.java:182)rn at com.mchange.v2.c3p0.WrapperConnectionPoolDataSource.getPooledConnection(WrapperConnectionPoolDataSource.java:171)rn at com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool$1PooledConnectionResourcePoolManager.acquireResource(C3P0PooledConnectionPool.java:137)rn at com.mchange.v2.resourcepool.BasicResourcePool.doAcquire(BasicResourcePool.java:1014)rn at com.mchange.v2.resourcepool.BasicResourcePool.access$800(BasicResourcePool.java:32)rn at com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask.run(BasicResourcePool.java:1810)rn at com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread.run(ThreadPoolAsynchronousRunner.java:547)rnCaused by: java.net.SocketException: Connection <em>reset</em>rn at java.net.SocketInputStream.read(SocketInputStream.java:168)rn at java.io.DataInputStream.readFully(DataInputStream.java:178)rn at java.io.DataInputStream.readFully(DataInputStream.java:152)rn at net.sourceforge.jtds.jdbc.SharedSocket.readPacket(SharedSocket.java:842)rn at net.sourceforge.jtds.jdbc.SharedSocket.getNetPacket(SharedSocket.java:723)rn at net.sourceforge.jtds.jdbc.ResponseStream.getPacket(ResponseStream.java:466)rn at net.sourceforge.jtds.jdbc.ResponseStream.read(ResponseStream.java:103)rn at net.sourceforge.jtds.jdbc.TdsCore.nextToken(TdsCore.java:2206)rn ... 12 morernrnrn/*-----------------------------------------------------------------------------*/rnrn启动服务器时候。报以上<em>错误</em>。用的是SQL Server数据库。
关于:java.net.SocketException: Connection reset
大家好:rn我写了一个网络交易程序,原理按照ibm的socket教程做的,是服务器端使用ServerSocket建立监听,客户端创建Socket进行连接,客户端发送一条信息给服务器,服务器返回一条信息给客户端,然后断开连接。rn开始一切都很好,但目前出现这个问题,当程序运行一段时间后(可能几个小时或10几个小时),当客户端程序向服务端发送信息时,服务器端一开始提示进行有新的连接建立,然后在读socket时抛出例外java.net.SocketException: Connection <em>reset</em>。rn
java.net.SocketException: Connection reset by peer: Connection reset by peer
java.net.SocketException: Connection <em>reset</em> by peer: Connection <em>reset</em> by peer 这个异常是怎么引起的?
java.net.socketexception connection reset
小弟我用java实现了一个联通SGIP发送,接收短信的程序。rn不过在接收过程中,由于联通发送完deliver命令后要间隔16秒才发送unbind命令,此时作为服务器端的我的程序抛出rn<em>java.net.socketexception</em> <em>connection</em> <em>reset</em><em>错误</em>!rn因为我在接收数据的时候inputstread.read(bytes[])是一个阻塞函数,如果没有接收到输入流就会阻塞住不动,但是<em>错误</em>的信息应该是socket已经断开。所以让我很奇怪,搞了一周也没有解决这个问题,请大伙帮忙啊!
java.net.SocketException: Connection reset问题
java.net.SocketException: Connection <em>reset</em>rn at java.net.SocketInputStream.read(SocketInputStream.java:168)rn at java.io.BufferedInputStream.fill(BufferedInputStream.java:218)rn at java.io.BufferedInputStream.read1(BufferedInputStream.java:258)rn at java.io.BufferedInputStream.read(BufferedInputStream.java:317)rn at sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:687)rn at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:632)rn at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:652)rn at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1049)rn一开始用Apache的httpClient包来做的,遇到这个异常,搞不懂怎么回事,就换了原始的url.openConnection()来建立连接,还没几天就又坏了。而且不是偶然,每次都报这个异常了。而且,Connection <em>reset</em>的意思该怎么理解呢?rn搜索这个异常比较多是这么说 的:rna。maybe:rn1,网络编程时未正确捕获java.net.SocketException, 客户端先关闭就会报这个异常;rn2,数据库和应用服务器的网段不同.rnrnb。好像说防火墙的比较多。。。。rn大部分是网络的原因。提交post的东西多,然后服务器接收就超时了。。。 rn后面扯到WebLogic的就不贴了,我这是纯Java 的。rn贴一下我建立连接的这段代码:rn[code=Java]rnWebUtil webUtil = WebUtil.getInstance();rn URL url = webUtil.getUrlByString(searchUrl);rn rn tryrn URLConnection conn = url.openConnection();rn conn.setRequestProperty("accept", "*/*");rn conn.setRequestProperty("<em>connection</em>", "Keep-Alive");rn conn.setRequestProperty("user-agent", "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)");rn conn.setRequestProperty("Referer", Constants.INDEX);rn conn.setDoInput(true);rn conn.setDoOutput(true);rn conn.connect();rn rn BufferedReader reader = new BufferedReader(new InputStreamReader(rn conn.getInputStream(), "GBK"));//这里抛的异常rn while((line = reader.readLine()) != null)rn if(count > START_COUNT)rn html.add(line);rn elsern count++;rn rn rn reader.close();rn catch(Exception e)rn log.error("获取网页代码出错", e);rn return null;rn rn[/code]rn另一方面 的怀疑就是,我访问的目标网站是不是有保护,根据IP的访问量到一定程度就屏蔽我了?但我过段时间再重新运行,又能采到的。rn第一次做这方面的程序,没什么经验,请各位前辈帮忙,指点!非常感谢!
记录一次redis异常
java操作redis,放数或者取数,从上手程度上看-不难。但是,一次一次的异常以及解决会让我们对redis client进一步了解。一个存数据的java redis客户端项目,测试时能够存放数十条数据,使用pipeline的方式。但是,一旦存放千万乃至亿级数据的时候,每次导入数据必定会报同一个错:<em>connection</em> <em>reset</em>                          Object ...
JMeter(二)——使用Jmeter进行压测
Jmeter压测
求助 Caused by: java.net.SocketException: Connection reset
严重: Exception starting filter struts2rnClass: java.net.SocketInputStreamrnFile: SocketInputStream.javarnMethod: readrnLine: 168 - java/net/SocketInputStream.java:168:-1rnat com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadConfigurationFiles(XmlConfigurationProvider.java:835)rnat com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadDocuments(XmlConfigurationProvider.java:131)rnat com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.init(XmlConfigurationProvider.java:100)rnat com.opensymphony.xwork2.config.impl.DefaultConfiguration.reload(DefaultConfiguration.java:130)rnat com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:52)rnat org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:395)rnat org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:452)rnat org.apache.struts2.dispatcher.FilterDispatcher.init(FilterDispatcher.java:201)rnat org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:275)rnat org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:397)rnat org.apache.catalina.core.ApplicationFilterConfig.(ApplicationFilterConfig.java:108)rnat org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3693)rnat org.apache.catalina.core.StandardContext.start(StandardContext.java:4342)rnat org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:761)rnat org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:741)rnat org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)rnat org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:920)rnat org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:883)rnat org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)rnat org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138)rnat org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)rnat org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120)rnat org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1023)rnat org.apache.catalina.core.StandardHost.start(StandardHost.java:719)rnat org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1015)rnat org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)rnat org.apache.catalina.core.StandardService.start(StandardService.java:448)rnat org.apache.catalina.core.StandardServer.start(StandardServer.java:710)rnat org.apache.catalina.startup.Catalina.start(Catalina.java:552)rnat sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rnat sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)rnat sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)rnat java.lang.reflect.Method.invoke(Method.java:597)rnat org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)rnat org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)rnCaused by: Connection <em>reset</em> - Class: java.net.SocketInputStreamrnFile: SocketInputStream.javarnMethod: readrnLine: 168 - java/net/SocketInputStream.java:168:-1rnat com.opensymphony.xwork2.util.DomHelper.parse(DomHelper.java:123)rnat com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadConfigurationFiles(XmlConfigurationProvider.java:830)rn... 34 morernCaused by: java.net.SocketException: Connection <em>reset</em>rnat java.net.SocketInputStream.read(SocketInputStream.java:168)rnat java.io.BufferedInputStream.fill(BufferedInputStream.java:218)rnat java.io.BufferedInputStream.read1(BufferedInputStream.java:258)rnat java.io.BufferedInputStream.read(BufferedInputStream.java:317)rnat sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:647)rnat sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:592)rnat sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:612)rnat sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1004)rnat com.sun.org.apache.xerces.internal.impl.XMLEntityManager.setupCurrentEntity(XMLEntityManager.java:677)rnat com.sun.org.apache.xerces.internal.impl.XMLEntityManager.startEntity(XMLEntityManager.java:1316)rnat com.sun.org.apache.xerces.internal.impl.XMLEntityManager.startDTDEntity(XMLEntityManager.java:1283)rnat com.sun.org.apache.xerces.internal.impl.XMLDTDScannerImpl.setInputSource(XMLDTDScannerImpl.java:283)rnat com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$DTDDriver.dispatch(XMLDocumentScannerImpl.java:1168)rnat com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$DTDDriver.next(XMLDocumentScannerImpl.java:1068)rnat com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$PrologDriver.next(XMLDocumentScannerImpl.java:988)rnat com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:645)rnat com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:140)rnat com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:508)rnat com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:807)rnat com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737)rnat com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:107)rnat com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1205)rnat com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:522)rnat javax.xml.parsers.SAXParser.parse(SAXParser.java:395)rnat com.opensymphony.xwork2.util.DomHelper.parse(DomHelper.java:121)rn... 35 morern2010-4-22 10:27:58 org.apache.catalina.core.StandardContext startrn严重: Error filterStartrn2010-4-22 10:27:58 org.apache.catalina.core.StandardContext startrn严重: Context [/base3] startup failed due to previous errorsrnrn怎么解决啊??
ant-eclipse-1.0.bin.tar.bz2
ant-eclipse-1.0 nutch
java.net.SocketException: Connection reset是什么意思
如题,程序需要长时间运行,可是运行一段时间后,就显示这个<em>错误</em>
Hadoop+Hive TTransportException: java.net.SocketException: Connection reset
各位大神。。。最近遇到点问题。关于Hive的。rn我将HiveServer启动后,刚开始运行没有问题。大概运行一天。就开始报错。rn报错信息如下。[code=text]java.sql.SQLException: org.apache.thrift.transport.rn at org.apache.hadoop.hive.jdbc.HiveStatement.executeQuery(HiveStatement.java:191)rn at org.apache.hadoop.hive.jdbc.HiveStatement.execute(HiveStatement.java:127)rn at org.apache.hadoop.hive.jdbc.HiveConnection.configureConnection(HiveConnection.java:126)rn at org.apache.hadoop.hive.jdbc.HiveConnection.(HiveConnection.java:121)rn at org.apache.hadoop.hive.jdbc.HiveDriver.connect(HiveDriver.java:104)rn at java.sql.DriverManager.getConnection(DriverManager.java:582)rn at java.sql.DriverManager.getConnection(DriverManager.java:154)rn at com.dareway.pub.commons.jdbc.HivePool.getConnection(HivePool.java:65)rn at com.dareway.pub.util.Hql.prepare(Hql.java:431)rn at com.dareway.pub.util.Hql.executeUpdate(Hql.java:339)rn at com.dareway.dataShateDate.compute.EMpVolCurve.getEMpVolCurve(EMpVolCurve.java:470)rn at com.dareway.dataShateDate.compute.EMpVolCurve.main(EMpVolCurve.java:822)[/code]rn经过监测:后台进程、端口、都正常。rn已经困扰多天了。。。rnrn
请教大侠:java.net.SocketException: Connection reset
请问,有几种<em>错误</em>有可能出现如下异常?rnrn rn
求助!异常:java.net.SocketException: Connection reset
这是小弟写的一部分数据库连接程序,rn.......rnClass.forName("com.mysql.jdbc.Driver").newInstance();rnConnection con=DriverManager.getConnection("jdbc:mysql://61.144.192.107:1433/lonwinjs?user=lon123&password=lon123");rnStatement stmt=con.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE,ResultSet.CONCUR_UPDATABLE);rnResultSet rs;rnrs=stmt.executeQuery(sql);rnrn if(rs.next()) //若记录存在,则执行以下语句,该语句一直到倒数第8行为止rnrnrs.last();rn......rnrn但运行时,老报错:javax.servlet.ServletException: Communication link failure: java.net.SocketException, underlying cause: Connection <em>reset</em>rnrn** BEGIN NESTED EXCEPTION ** rnrnjava.net.SocketExceptionrnMESSAGE: Connection <em>reset</em>rnrnSTACKTRACE:rnrnjava.net.SocketException: Connection <em>reset</em>rn.......rnrn请教各位大哥,这问题怎么解决??!
求java.net.SocketException: Connection reset解决办法
最近在做电信短信网关的项目时遇到这个问题,当程序初始化请求与服务器连接的时候老报java.net.SocketException: Connection <em>reset</em><em>错误</em>,就是连不上。询问了用户,配置的服务器IP,端口,uesr/pwd都没问题,他那边也把这个IP加入了充许连接的IP池里了,可还是连不上。请求各位高手,有遇到过类似的问题吗,如何解决呢?谢谢了!
java.net.SocketException: Connection reset异常的问题
我写了个客户端程序连接服务器rnSocket socket = new Socket("xxx.xxx.xxx.xxx", PORT);rnOutputStream os = socket.getOutputStream();rnos.write(buffer);rnInputStream is = socket.getInputStream();rnwhile ((n = is.read())!=-1)rnrn System.out.println(n);rnrnrn在os.write后rnrn就进入循环,读服务器发来的数据rn在is.read()时抛出异常了rnrnjava.net.SocketException: Connection <em>reset</em>rn at java.net.SocketInputStream.read(Unknown Source)rn at java.net.SocketInputStream.read(Unknown Source)rnrn这大概是什么原因?
Logstash5版本接收log4j数据异常
异常描述logstash版本:5.1.1log4j.properties配置:log4j.rootLogger=WARN, Console, RollingFile, logstashlog4j.appender.logstash=org.apache.log4j.net.SocketAppendernlog4j.appender.logstash.Port=4560nlog4j.appender.
Connection reset 异常原因及解决
第三方访问外网提供的接口,出现Connection <em>reset</em> 异常,自己调用外网接口无问题,第三方调不通nn最后发现原因为第三方使用的jdk版本为1.7,而我们使用的是1.8,jdk1.7默认https 请求是TLS1不支持TLS1.2,我们服务器设置的是1.2,因此在他们访问时直接拒绝,出现Connection <em>reset</em> 异常。nn解决方法:在nginx中nginx.conf文件中设置ssl...
控制台报Connection reset问题(转)
最近启动tomcat时总是报有一些错,一开始没怎么注意,因为对项目操作没什么大的影响,今天闲下来看了看。rnrnrn rn[2011-02-28 10:36:01] - getParameters()rnrnrnorg.apache.commons.fileupload.FileUploadException: Connection <em>reset</em>rnrnrn at org.apache.common...
分析一下java.net.SocketException: Connection reset by peer: Connection reset by peer
使用jakarta-common-net编写了一个ftp客户端上传程序。rnrn运行一段时间后,会抛出上述异常。rn查看API文档后发现是由与setSoTimeout方法引起,该方法实际使用的是java.net.Socket的setSoTimeout,但是我还是不能确定产生异常的确切原因,rnSocketException - if there is an error in the underlying protocol, such as a TCP error.rn请大家帮忙分析一下。谢谢!
TCP复位报文段与常见网络连接错误
rnrn原创文章,转载请注明出处:http://jameswxx.iteye.com/blog/2065445rnTCP包头中有6个标志,其中有一个复位标志(RST),这个标志其实跟网络程序中很多的<em>错误</em>描述相关。常见的比如:rnUnable to connect to remote host: Connection refusedrnread error: Connection <em>reset</em> by ...
Linux连接总是报:connection reset by peer问题!!!程序退出的解决办法
求救:Linux连接总是报:<em>connection</em> <em>reset</em> by peer问题!!!nn各位大哥:小弟我在Linux下写的服务程序,当压力很大(连接客户量多频繁、发送请求频繁)的时候,服务总是会部分连接报<em>connection</em> <em>reset</em> by peer<em>错误</em>,结果我的服务把它关闭! n  查了部分资料,大部分是认为Linux有个tcp_wrap守护服务程序来管理tcp,默认值为一秒只能连一个上来。...
SSH连接阿里云错误:Connection reset by peer解决
SSH连接阿里云的ECS服务器centos 7报错:rnOpenSSH_7.2p2 Ubuntu-4ubuntu2.2, OpenSSL 1.0.2g  1 Mar 2016rndebug1: Reading configuration data /etc/ssh/ssh_configrndebug1: /etc/ssh/ssh_config line 19: Applying options f
mybatis遇到的错误问题
在xml中写sql,如果使用&amp;lt;if&amp;gt;标签判断,如果判断的是&quot;1&quot;数字类型,有可能会出错,是由于编码问题,所以尽量不要用数字的字符串.在mapper接口中,参数如果不是对象等类型,直接传字符串等类型,使用@Param注解,避免<em>错误</em>.在xml中,传入的参数不能用作sql语句使用,例如c.name = '高杨',不能这样写concat('c',#{name}) = '高杨'....
servlet文件下载,出现ClientAbortException: java.net.SocketException: Connection reset
小弟最近做了个servlet文件下载, 在浏览器中会弹出下载框, 但是点击取消下载按钮的时候, 控制台出现了<em>错误</em>,rnClientAbortException: java.net.SocketException: Connection <em>reset</em> rn,时间一长,tomcat就卡死了。rnrnrn我的servlet:rnrnpublic void doPost(HttpServletRequest request, HttpServletResponse response)rn throws ServletException, IOException rnrn response.setHeader("Cache-Control","no-cache");rn response.setContentType("application/x-msdownload");rn response.setCharacterEncoding("UTF-8");rn String tempid = request.getParameter("id").toString();rn if(tempid!=null || !tempid.equals(""))rn String basePath = getServletContext().getRealPath("/");rn String url = basePath+getUrlById(tempid); //文件路径rn //创建输出流rn OutputStream out = null;rn FileInputStream fis = null;rn try rn out = response.getOutputStream();rn //打开输入流rn File file = new File(url);rn fis = new FileInputStream(file);rn String fname = file.getName(); //获取文件名rn response.setContentLength((int)file.length()); //设置文件流大小, 弹出下载框显示进度rn response.addHeader("Content-disposition","attachment;filename=" + new String(fname.getBytes("gbk"),"iso-8859-1"));rn rn rn byte[] b = new byte[1024];rn int i =0;rn while((i=fis.read(b,0,b.length))!=-1)rn out.write(b,0,i);rn rn out.flush();rn catch (IOException e) rn e.printStackTrace();rn finallyrn fis.close();rn out.close();rn rn rn rn rnrnrnrnrnrn控制台:rnrnrnClientAbortException: java.net.SocketException: Connection <em>reset</em> by peer: socket write errorrn at org.apache.catalina.connector.OutputBuffer.realWriteBytes(OutputBuffer.java:358)rn at org.apache.tomcat.util.buf.ByteChunk.flushBuffer(ByteChunk.java:434)rn at org.apache.tomcat.util.buf.ByteChunk.append(ByteChunk.java:349)rn at org.apache.catalina.connector.OutputBuffer.writeBytes(OutputBuffer.java:381)rn at org.apache.catalina.connector.OutputBuffer.write(OutputBuffer.java:370)rn at org.apache.catalina.connector.CoyoteOutputStream.write(CoyoteOutputStream.java:89)rn at one.DownloadMobile.doPost(DownloadMobile.java:45)rn at one.DownloadMobile.doGet(DownloadMobile.java:16)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at org.ecside.filter.ECSideFilter.doFilter(ECSideFilter.java:188)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:96)rn at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:75)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)rn at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)rn at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)rn at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)rn at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)rn at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)rn at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849)rn at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)rn at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454)rn at java.lang.Thread.run(Unknown Source)rnCaused by: java.net.SocketException: Connection <em>reset</em> by peer: socket write errorrn at java.net.SocketOutputStream.socketWrite0(Native Method)rn at java.net.SocketOutputStream.socketWrite(Unknown Source)rn at java.net.SocketOutputStream.write(Unknown Source)rn at org.apache.coyote.http11.InternalOutputBuffer.realWriteBytes(InternalOutputBuffer.java:740)rn at org.apache.tomcat.util.buf.ByteChunk.flushBuffer(ByteChunk.java:434)rn at org.apache.tomcat.util.buf.ByteChunk.append(ByteChunk.java:349)rn at org.apache.coyote.http11.InternalOutputBuffer$OutputStreamOutputBuffer.doWrite(InternalOutputBuffer.java:764)rn at org.apache.coyote.http11.filters.IdentityOutputFilter.doWrite(IdentityOutputFilter.java:118)rn at org.apache.coyote.http11.InternalOutputBuffer.doWrite(InternalOutputBuffer.java:573)rn at org.apache.coyote.Response.doWrite(Response.java:560)rn at org.apache.catalina.connector.OutputBuffer.realWriteBytes(OutputBuffer.java:353)rn ... 28 morernrnrnrn希望各位大侠看了之后给小弟指点一下
java.net.SocketException: recvfrom failed: ECONNRESET (Connection reset by peer)
[code=java]rnrnpublic static String doPost(String url,String execResult)rn String result = "";rn // 向服务器传送数据rn HttpPost httpPost = new HttpPost(url);rn // 先封装一个json对象rn JSONObject param = new JSONObject();rn List params = new ArrayList();rn SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");//设置日期格式rn String time = df.format(new Date());rn params.add(new BasicNameValuePair("time",time));rn params.add(new BasicNameValuePair("phone",EnterActivity.edit_phone.getText().toString()));rn params.add(new BasicNameValuePair("model","自助排障"));rn params.add(new BasicNameValuePair("op_type", FlowPanelActivity.flow_name));rn params.add(new BasicNameValuePair("op_detail ", execResult));rn params.add(new BasicNameValuePair("op_result","成功"));rn // 绑定到entityrn try rn StringEntity entity = new StringEntity(params.toString());rn httpPost.setEntity(new UrlEncodedFormEntity(params, HTTP.UTF_8));rn HttpResponse response = new DefaultHttpClient().execute(httpPost);rn if (response.getStatusLine().getStatusCode() == 200) rn result = EntityUtils.toString(response.getEntity());rn rn catch (Exception e) rn result = "提交失败";rn e.printStackTrace();rn rn return result;rn rn[/code]rnrn其他的都一切正常 就是response里面不执行 然后直接跳到了exception 显示异常rnrnjava.net.SocketException: recvfrom failed: ECONNRESET (Connection <em>reset</em> by peer)。rnrn求助!
java.net.SocketException: Connection reset --> when occurs, how to resolve
[phenomenon]rnrnThere is the error occurs sometimes when our web application system is transferred into so low-speed the net entironmentrnrnjava.net.SocketException: Connection <em>reset</em>rnat java.net.SocketInputStream.read(Unknown Source)rnat java.io.BufferedInputStream.fill(Unknown Source)rnat java.io.BufferedInputStream.read1(Unknown Source)rnat java.io.BufferedInputStream.read(Unknown Source)rnat sun.net.www.http.ChunkedInputStream.fastRead(Unknown Source)rnat sun.net.www.http.ChunkedInputStream.read(Unknown Source)rn......rn......rnrnOur web application system is based Apache server. There is an client applet to get data from service before client-printing every time.rnBut when getting data sometimes, there is that error.rnrn[perplexed]rnrnIf you have a look at that exception stack information, you could see it is a problem relative JDK, not relative business application. Maybe is it a bug of JAVA?rnWho can teach me the following questions:rn1, Whether is it a bug of JAVA?rn2, When is this error occurred?rn3, How to avoid it, or if it is occurred, how to resolve this error?rnrnHope for your answer! Expecting!rnrn简单的用中文描述,就是在高速网络状况下没有问题,极低速网络状况下出现那个exception,什么原因?这是否是java的bug?那个exception通常在什么时候会出现?如果出现了,如何解决?rnrn请高手指教!rn
ClientAbortException: java.net.SocketException: Connection reset by peer: socke
在做文件下载的时候,出现了这个<em>错误</em>,找了很久没有找到,希望高手指点,但是文件可以顺利的下载下来,小文件下载不会出错,如果是100多M的文件下载就会出错。不知道为什么连接下载的那个jsp会执行很多次,也就是下面的代码会被循环很多次执行。我下载的代码是写在jsp中,如下:rn0) rn for(File f:fs)rn if(f.getName().equals(filename)) rn path = path +file.separator+ f.getName();rn flag = false;rn break; rn rn rn else rn %>rn rn rn rn rn<em>错误</em>信息:rnClientAbortException: java.net.SocketException: Connection <em>reset</em> by peer: socket write errorrn at org.apache.catalina.connector.OutputBuffer.realWriteBytes(OutputBuffer.java:358)rn at org.apache.tomcat.util.buf.ByteChunk.flushBuffer(ByteChunk.java:434)rn at org.apache.tomcat.util.buf.ByteChunk.append(ByteChunk.java:349)rn at org.apache.catalina.connector.OutputBuffer.writeBytes(OutputBuffer.java:381)rn at org.apache.catalina.connector.OutputBuffer.write(OutputBuffer.java:370)rn at org.apache.catalina.connector.CoyoteOutputStream.write(CoyoteOutputStream.java:89)rn at org.apache.catalina.connector.CoyoteOutputStream.write(CoyoteOutputStream.java:83)rn at org.apache.jsp.jsp.common.jsp.downloadpoliy_jsp._jspService(downloadpoliy_jsp.java:112)rn at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)rn at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:377)rn at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)rn at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at org.apache.struts2.dispatcher.ActionContextCleanUp.doFilter(ActionContextCleanUp.java:99)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)rn at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)rn at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)rn at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)rn at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)rn at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)rn at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:852)rn at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)rn at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)rn at java.lang.Thread.run(Unknown Source)rnCaused by: java.net.SocketException: Connection <em>reset</em> by peer: socket write errorrn at java.net.SocketOutputStream.socketWrite0(Native Method)rn at java.net.SocketOutputStream.socketWrite(Unknown Source)rn at java.net.SocketOutputStream.write(Unknown Source)rn at org.apache.coyote.http11.InternalOutputBuffer.realWriteBytes(InternalOutputBuffer.java:741)rn at org.apache.tomcat.util.buf.ByteChunk.flushBuffer(ByteChunk.java:434)rn at org.apache.tomcat.util.buf.ByteChunk.append(ByteChunk.java:349)rn at org.apache.coyote.http11.InternalOutputBuffer$OutputStreamOutputBuffer.doWrite(InternalOutputBuffer.java:765)rn at org.apache.coyote.http11.filters.IdentityOutputFilter.doWrite(IdentityOutputFilter.java:118)rn at org.apache.coyote.http11.InternalOutputBuffer.doWrite(InternalOutputBuffer.java:574)rn at org.apache.coyote.Response.doWrite(Response.java:560)rn at org.apache.catalina.connector.OutputBuffer.realWriteBytes(OutputBuffer.java:353)rn ... 28 more
Input/output error: java.net.SocketException: Connection reset
快速点击页面中多个超连接的时候,weblogic报:Input/output error: java.net.SocketException: Connection <em>reset</em>rn但是好像并不影响程序执行。rn在google搜到的说明:rn在页面上快速点击多个超链接,最好是在发送一个请求后前端页面还没有完全响应的时候点击另外一个超链接,多试几次就会出现这个异常。rn问题出现的原因是当SERVLET完成业务逻辑的处理后,向响应页面输出结果时,前端客户切换到了另外一个页面,所以就会出现sockets write error。这种<em>错误</em>对系统运行是没有什么影响的,只是在后台输出很多异常信息让人很郁闷。rnrnrn不知道有什么好的解决办法没有?rn
求助:java.net.SocketException: Connection reset 问题 急
Socket fromSt = new Socket(8989);rnfromDis = new DataInputStream(new BufferedInputStream(fromSt.getInputStream())); rnbyte[] buf = new byte[2048];rnint read = 0;rnwhile((read=fromDis.read(buf)) != -1) rnrn...rnrnrnfromDis是一个DataInputStream对象rnrn就是在循环读取fromDis时出现了java.net.SocketException: Connection <em>reset</em>异常。rn循环前几次正常 然后莫名的就抛出这个异常了。rn请高手指教rn
java.net.SocketException: Connection reset by peer: socket write error
[size=18px]我用以下代码实现文件下载:[/size]rnrn[code]rnrnrnrnrn rn rn rn rn rn rn rnrn[/code]rn[size=18px]rn下载doc和txt格式的文件还可以,没有报错,可是下载ppt格式的文件他就报如下<em>错误</em>:[/size]rnrn[code=Java]rnjava.net.SocketException: Connection <em>reset</em> by peer: socket write errorrn at java.net.SocketOutputStream.socketWrite0(Native Method)rn at java.net.SocketOutputStream.socketWrite(Unknown Source)rn at java.net.SocketOutputStream.write(Unknown Source)rn at org.apache.coyote.http11.InternalOutputBuffer.realWriteBytes(InternalOutputBuffer.java:750)rn at org.apache.tomcat.util.buf.ByteChunk.flushBuffer(ByteChunk.java:432)rn at org.apache.tomcat.util.buf.ByteChunk.append(ByteChunk.java:347)rn at org.apache.coyote.http11.InternalOutputBuffer$OutputStreamOutputBuffer.doWrite(InternalOutputBuffer.java:773)rn at org.apache.coyote.http11.filters.IdentityOutputFilter.doWrite(IdentityOutputFilter.java:118)rn at org.apache.coyote.http11.InternalOutputBuffer.doWrite(InternalOutputBuffer.java:583)rn at org.apache.coyote.Response.doWrite(Response.java:560)rn at org.apache.catalina.connector.OutputBuffer.realWriteBytes(OutputBuffer.java:361)rn at org.apache.tomcat.util.buf.ByteChunk.flushBuffer(ByteChunk.java:432)rn at org.apache.tomcat.util.buf.ByteChunk.append(ByteChunk.java:347)rn at org.apache.catalina.connector.OutputBuffer.writeBytes(OutputBuffer.java:392)rn at org.apache.catalina.connector.OutputBuffer.write(OutputBuffer.java:381)rn at org.apache.catalina.connector.CoyoteOutputStream.write(CoyoteOutputStream.java:89)rn at org.apache.catalina.servlets.DefaultServlet.copyRange(DefaultServlet.java:2083)rn at org.apache.catalina.servlets.DefaultServlet.copy(DefaultServlet.java:1796)rn at org.apache.catalina.servlets.DefaultServlet.serveResource(DefaultServlet.java:874)rn at org.apache.catalina.servlets.DefaultServlet.doGet(DefaultServlet.java:376)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:627)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)rn at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:679)rn at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:461)rn at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:399)rn at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)rn at org.apache.jsp.mainViews.downloadAction_jsp._jspService(downloadAction_jsp.java:74)rn at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)rn at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:331)rn at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)rn at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)rn at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:679)rn at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:461)rn at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:399)rn at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)rn at org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1063)rn at org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:386)rn at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:229)rn at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194)rn at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:627)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)rn at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)rn at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:172)rn at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)rn at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)rn at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)rn at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)rn at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:875)rn at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)rn at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)rn at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)rn at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)rn at java.lang.Thread.run(Unknown Source)rn[/code]rnrn[size=18px]请问有谁知道原因的吗?[/size]
java.net.SocketException: Connection reset 帮忙看下什么原因
import javax.net.ssl.SSLSocketFactory;rnimport javax.net.ssl.SSLSocket;rnrnimport com.sun.net.ssl.SSLContext;rnimport com.sun.net.ssl.TrustManager;rnimport com.sun.net.ssl.X509TrustManager;rnrnimport java.net.URL;rnimport java.net.UnknownHostException;rnimport java.security.KeyManagementException;rnimport java.security.NoSuchAlgorithmException;rnimport java.security.cert.CertificateException;rnimport java.security.cert.X509Certificate;rnimport java.util.Properties;rnimport java.io.IOException;rnimport java.io.*;rnimport java.net.MalformedURLException;rnimport javax.net.ssl.HandshakeCompletedEvent;rnimport javax.net.ssl.HandshakeCompletedListener;rnimport java.net.SocketException;rnimport com.sun.net.ssl.internal.www.protocol.https.HttpsURLConnection;rnrnrnpublic class SSLTest rnrn public static void main(String args[])rn rnrn System.setProperty("javax.net.ssl.trustStore", "E://Java//jdk1.5.0_06//jre//lib//jdk-cacerts");rn System.setProperty("javax.net.ssl.trustStorePassword", "changeit");rn rnrnrnrn rn SSLSocketFactory factory =(SSLSocketFactory)SSLSocketFactory.getDefault();rn SSLSocket socket=null;rn rn tryrnrn rn socket =(SSLSocket)factory.createSocket("172.25.73.225", 443);rn System.out.println("Conntion succeed!");rnrn rn catch(UnknownHostException e1)rn rn System.out.println("Conntion fail 1!");rn e1.printStackTrace();rn catch(IOException e2)rn rn System.out.println("Conntion fail 2!");rn e2.printStackTrace();rn rn rn rn String getRequest = "GET " + "https://172.25.73.225/GS/Admin/Welcome.asp" + " HTTP/1.1";rn String hostSpecification = "Host: " + "172.25.73.225";rn System.out.println(getRequest);rn System.out.println(hostSpecification);rn rn rn tryrn rnrn PrintWriter out = new PrintWriter(rn new BufferedWriter(rn new OutputStreamWriter(rn socket.getOutputStream()))); rn out.println(getRequest);rn out.println(hostSpecification);rn out.println();rn out.flush();rnrn if (out.checkError())rn System.out.println("SSLSocketClient: java.io.PrintWriter error");rnrn // read response rn rn BufferedReader in = new BufferedReader(rn new InputStreamReader(socket.getInputStream()));rnrn String inputLine;rn while ((inputLine = in.readLine()) != null)rn rn System.out.println(inputLine);rn rn rnrn in.close();rn out.close();rn socket.close();rnrn rn catch(Exception e)rn rn System.out.println("Conntion fail 3!");rn e.printStackTrace();rn rn rnrn rn rnrn/////////////////////////////////////////////////////////////////////////////rn用IE可以打开改网页rn但是程序 读出的是rnConntion succeed!rnGET https://172.25.73.225/GS/Admin/Welcome.asp HTTP/1.1rnHost: 172.25.73.225rnHTTP/1.1 302 Object movedrnServer: Microsoft-IIS/5.0rnDate: Fri, 29 Sep 2006 06:29:21 GMTrnX-Powered-By: ASP.NETrnLocation: /GS/Admin/Login.asprnContent-Length: 121rnContent-Type: text/html; Charset=utf-8rnExpires: Fri, 29 Sep 2006 06:28:21 GMTrnSet-Cookie: ASPSESSIONIDQSBABQRS=DGEKHCIAPNNCNEMPJKFBECBO; path=/rnCache-control: privaternrn Object movedrn Object MovedThis object may be found here.rnConntion fail 3!rnrn并且有异常rnjava.net.SocketException: Connection <em>reset</em>rnrn是什么原因rnrnrnrnrn
React Native在Android Studio配置中遇到的问题
1、jcenter、maven总是提示sync failednn在国内普通方式访问不通,使用vpn还是不通,想了无数办法,最后在偶然的机会换了一个电信的网络,通了,真是欲哭无泪。nn2、Cannot resolve symbol 'ReactApplication/ReactNativeHost'nnnallprojects {n repositories {n mavenLo...
cliementine 服务器异常: java.net.SocketException: Connection reset
cliementine对模型进行分析,最后分析进行执行的时候,出现类似于内存出现异常,xxxxxx号异常,内存不能引用。rn具体的cliementine提示<em>错误</em>是::rn 服务器异常: java.net.SocketException: Connection <em>reset</em>,别人的机器上都没有问题,这是怎么回事,
java.net.SocketException: Connection reset 分高,在线等!!!!
老是解决不了 跪求帮忙!rn代码如下rn服务器:rn[code=Java]package Server;rnrnimport java.io.*;rnimport java.awt.*;rnimport javax.swing.*;rnrnimport java.awt.event.*;rnimport java.net.*;rnpublic class MyServer extends JFrame implements ActionListener rnrn public static void main(String[] args) rn // TODO Auto-generated method stubrn MyServer ms=new MyServer();rn rn JPanel jp=null;rn JTextArea jta;rn JTextField jt=null;rn JScrollPane jsp=null;rn JButton jb=null;rn PrintWriter pw=null;rn rn public MyServer()rn rn jp=new JPanel();rn jt=new JTextField(15);rn jb=new JButton("发送"); rn jb.addActionListener(this);rn jta=new JTextArea();rn jsp=new JScrollPane(jta);rn rn jp.add(jt);rn jp.add(jb);rn rn this.add(jsp,"Center");rn this.add(jp,"South");rn this.setSize(300,200);rn this.setTitle("服务器");rn this.setVisible(true);rn rn try rn ServerSocket ss=new ServerSocket(8888);rn //System.out.println("这是服务器 端口是9988。。。。。");rn Socket s=ss.accept();rn rn InputStreamReader isr=new InputStreamReader(s.getInputStream());rn BufferedReader br=new BufferedReader(isr);rn pw=new PrintWriter(s.getOutputStream(),true);rn // s.close();rn while(true)rn rn String info=br.readLine();rn jta.append("客户端对你说: "+info+"\r\n");rn rn rn rn catch (IOException e) rn // TODO Auto-generated catch blockrn e.printStackTrace();rn rn rn rnrn @Overridern public void actionPerformed(ActionEvent e) rn // TODO Auto-generated method stubrn if(e.getSource()==jb)rn rn String info=jt.getText();rn jta.append("你对客户端说: "+info + "\r\n");rn pw.print(info);rn jt.setText("");rn rn rn rn rnrn[/code]rn---------------------------------------------------------------------------------------------------------------rn客户端rn[code=Java]package Client;rnrnimport java.io.*;rnimport java.awt.*;rnimport javax.swing.*;rnrnimport java.awt.event.*;rnimport java.net.*;rnpublic class MyClient extends JFrame implements ActionListenerrnrn public static void main(String[] args) rn // TODO Auto-generated method stubrn MyClient ms=new MyClient();rn rn JPanel jp=null;rn JTextArea jta;rn JTextField jt=null;rn JScrollPane jsp=null;rn JButton jb=null;rn PrintWriter pw;rn public MyClient()rn rn jp=new JPanel();rn jt=new JTextField(15);rn jb=new JButton("发送");rn jb.addActionListener(this);rn jta=new JTextArea();rn jsp=new JScrollPane(jta);rn rn jp.add(jt);rn jp.add(jb);rn rn this.add(jsp,"Center");rn this.add(jp,"South");rn this.setSize(300,200);rn this.setTitle("客户端");rn this.setVisible(true);rn rn try rn Socket s=new Socket("127.0.0.1",8888);rn InputStreamReader isr2=new InputStreamReader(s.getInputStream());rn BufferedReader br=new BufferedReader(isr2);rn pw=new PrintWriter(s.getOutputStream(),true);rn //s.close();rn while(true)rn rn String info=br.readLine();rn jta.setText("服务器对你说: "+info+"\r\n"); rn rn rn catch (IOException e) rn // TODO Auto-generated catch blockrn e.printStackTrace();rn rn rn @Overridern public void actionPerformed(ActionEvent e) rn // TODO Auto-generated method stubrn if(e.getSource()==jb)rn rn String info=jt.getText();rn jta.append("你对服务器说: "+info+"\r\n");rn pw.print(info);rn jt.setText("");rn rn rn rn rn[/code]
ClientAbortException: java.net.SocketException: Connection reset by peer: sock
各位大哥!rnrn我的WEB系统,用着用着,客户端浏览器就假死,即出现白屏,屏幕很久打不开.感觉好象就是没有得到数据库连接.rn但是服务器日志不报错.rnrn在这个出现之前有报rn ClientAbortException: java.net.SocketException: Connection <em>reset</em> by peer: socket write errorrnrn这个<em>错误</em>,不知道是否有联系.各位我该如何应对?郁闷啊rn
http请求出现java.net.SocketException: Connection reset,求助!
抓取发现了bad case,请求的url是:http://food.39.net/a/2012322/1995027.htmlrn起初以为是httpclient的问题,后来使用java http<em>connection</em>也还是抛出相同的异常,但是浏览器能访问,使用ruby脚本也能正常请求数据,不知道java的http<em>connection</em>读数据时出现了什么偏差。没google原因,有的说是java检查http请求严格造成的,不知道这里有谁遇到这个问题???
java.net.SocketException: Connection reset时出时不出
最近写一个很简单的TCP通信的程序,问题的详细情况是这样的:服务器端在电脑上,客户端在android手机上,android手机连上学校里的无线可以正常连接。现在我用运行着服务器端的电脑上的360免费wifi开无线,android手机连上电脑开的这个无线再进行连接的时候就会抛出java.net.SocketException: Connection <em>reset</em>的<em>错误</em>!为什么呢?难道是TCP通信对网络有限制???
为什么报这个错:java.net.SocketException: Connection reset
Hi,大家好rnrn对socket不是很了解,也查看很多关于Connection <em>reset</em>得贴,很多都是说服务器关闭掉了。rnrn但是我rn System.out.println(server.isBound()); Trn System.out.println(server.isConnected()); Trn System.out.println(server.isClosed()); Frn System.out.println(server.isInputShutdown()); Frn System.out.println(server.isOutputShutdown());Frnserver是连接得,并且I/O也没有关闭。rnrnrnSystem.out.println(server.getReceiveBufferSize());rnSystem.out.println(server.getInputStream().toString()); rn上面两个并不报错。rnrnSystem.out.println(server.getInputStream().read()); 当这句运行得时候就报错了rnjava.net.SocketException: Connection <em>reset</em>rnrn请教各位有经验得人。 谢谢
如何解决ERR_CONNECTION_RESET网络错误
解决·ERR_CONNECTION_RESET网络问题nn第一步 点击开始查找cmd,并点击cmd.exe 。nnnn第二步 打开的界面中输入ipconfig /flushdns,然后回车即可。nn
SSH连接出错问题收集
问题1: nSSH登陆<em>错误</em> (WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!)[root@myUbuntu ~]# ssh root@192.168.100.106n@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@n@ WARNING: REMOTE HOST IDENTIF
Redis远程连接失败-“Connection reset by peer”的解决方式(Win10以及Ubuntu)
每篇一句:nnn The business of life is the acquisition of memories. In the end that’s all there is. nnnnnnn问题出现:nn今天在在本机(Windows 10)以及虚拟机(Ubuntu 16.04)中分别安装了Redis服务,nnnWindows 10安装 : Redis-x64-3.2.100.msin...
JMeter并发测试遇到Socket closed错误解决方案
n n n JMeter并发测试遇到Socket closed<em>错误</em>解决方案nIntron最近在用 JMeter 测试服务的性能,并发测试的时候,当线程数超过500,就会出现 socket closed 的<em>错误</em>,在网上查阅了一番资料之后,找到了下面的解决方案:nn第一步,调整默认文件数n第二步调整HttpClient的IdletimeoutnnSolutionn调整文件...
自动发布到远程tomcat,解决Cannot invoke Tomcat Manager 异常
要确保第一步和第三步   用户名和密码一致,否则就会出现Cannot invoke Tomcat Manager 异常。第三部注意一点就是server是要加上去的,当正确之后,你会在服务器的webapps文件看到你发布的文件。使用 tomcat内部manager 程序,进行项目热部署 (需要远程tomcat 必须开启的 ) 远程发布        第一步: 在 tomcat/conf/tomcat...
关于tomcat“java.net.SocketException: Connection reset by peer: socket write error”的错误
我这是tomcat+oraclern后台取数据放入页面时,随着点击次数越高,页面显示越来越慢,到最后干脆就是一白页了,后台就报一下面这个<em>错误</em>在:rnClientAbortException: java.net.SocketException: Connection <em>reset</em> by peer: socket write errorrn at org.apache.coyote.tomcat5.OutputBuffer.realWriteBytes(OutputBuffer.jarnva:373)rn at org.apache.tomcat.util.buf.ByteChunk.append(ByteChunk.java:323)rn at org.apache.coyote.tomcat5.OutputBuffer.writeBytes(OutputBuffer.java:4rn01)rn at org.apache.coyote.tomcat5.OutputBuffer.write(OutputBuffer.java:388)rn at org.apache.coyote.tomcat5.CoyoteOutputStream.write(CoyoteOutputStreamrn.java:76)rn at org.apache.coyote.tomcat5.CoyoteOutputStream.write(CoyoteOutputStreamrn.java:70)rn at com.iss.inut.workflow.webmanage.web.WfDefineCtrl.preview(WfDefineCtrlrn.java:111)rn at sun.reflect.GeneratedMethodAccessor248.invoke(Unknown Source)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccesrnsorImpl.java:25)rn at java.lang.reflect.Method.invoke(Method.java:324)rn at com.iss.system.base.BaseAction.execute(BaseAction.java:334)rn at org.apache.struts.action.RequestProcessor.processActionPerform(RequesrntProcessor.java:421)rn at org.apache.struts.action.RequestProcessor.process(RequestProcessor.jarnva:226)rn at org.apache.struts.action.ActionServlet.process(ActionServlet.java:116rn4)rn at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:397)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplrnicationFilterChain.java:237)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFrnilterChain.java:157)rn at com.iss.common.CharacterEncodingFilter.doFilter(CharacterEncodingFiltrner.java:102)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplrnicationFilterChain.java:186)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFrnilterChain.java:157)rn at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperVrnalve.java:214)rn at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValvrneContext.java:104)rn at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.javrna:520)rn at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardrnContextValve.java:198)rn at org.apache.catalina.core.StandardContextValve.invoke(StandardContextVrnalve.java:152)rn at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValvrneContext.java:104)rn at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.javrna:520)rn at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.jrnava:137)rn at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValvrneContext.java:104)rn at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.jrnava:118)rn at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValvrneContext.java:102)rn at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.javrna:520)rn at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValrnve.java:109)rn at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValvrneContext.java:104)rn at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.javrna:520)rn at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)rnrn at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:16rn0)rn at org.apache.coyote.http11.Http11Processor.process(Http11Processor.javarn:799)rn at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.procernssConnection(Http11Protocol.java:705)rn at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.javarn:577)rn at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPrnool.java:683)rn at java.lang.Thread.run(Thread.java:534)rn我应该怎么解决啊?我在网上查了很多,但都没给出一个确切的解决方法啊。
java connection reset错误
我写的是一个聊天室程序,但是现在老师出现<em>connection</em> <em>reset</em>这个<em>错误</em>,麻烦哪位高人指点一下。rn客户端程序:rnimport java.awt.*;rnimport java.awt.event.*;rnimport java.io.*;rnimport java.net.*;rnrnpublic class ChatClient extends Framernrn Socket s=null;rn DataOutputStream dos=null;rn DataInputStream dis=null;rn private boolean bconnected=false;rn rn TextField tfText=new TextField();rn TextArea taContent=new TextArea();rn rn public static void main(String[] args)rn rn new ChatClient().lanuchFrame();rn rn public void lanuchFrame()rn rn this.setLocation(400,300);rn this.setSize(300,300);rn this.add(taContent,BorderLayout.NORTH);rn this.add(tfText,BorderLayout.SOUTH);rn this.pack(); rn this.addWindowListener(new WindowAdapter()rn rn public void windowClosing(WindowEvent e)rn rn disconnect();rn System.exit(0);rn rn );rn tfText.addActionListener(new TFListener());rn this.setVisible(true);rn connect();rn new Thread(new RecvThread()).start();rn rn public void connect()rn rn tryrn rn s=new Socket("127.0.0.1",8888);rn System.out.println("connected!");rn dos=new DataOutputStream(s.getOutputStream());rn dis=new DataInputStream(s.getInputStream());rn bconnected=true;rn rn catch (UnknownHostException e)rn rn e.printStackTrace();rn rn catch (IOException e)rn rn e.printStackTrace();rn rn rn public void disconnect()rn rn tryrn rn dos.close();rn dis.close();rn s.close();rn rn catch (IOException e)rn rn e.printStackTrace();rn rn rn rn private class TFListener implements ActionListenerrnrn rn @Overridern public void actionPerformed(ActionEvent e)rn rn String str=tfText.getText().trim();rn tfText.setText("");rn taContent.setText(str);rn tryrn rn dos.writeUTF(str);rn dos.flush();rn rn catch (IOException e1)rn rn e1.printStackTrace();rn rn rn rn rn public class RecvThread implements Runnablern rn public void run()rn rn tryrn rn while(bconnected)rn rn String str=dis.readUTF();rn System.out.println(str);rn rn rn catch(IOException e)rn rn e.printStackTrace();rn rn rn rn rnrnrn服务器端程序:rnmport java.io.*;rnimport java.net.*;rnimport java.util.*;rnrnrnpublic class ChatServerrnrn ServerSocket ss=null; rn boolean started=false;rn rn List clients=new ArrayList();rn rn public static void main(String[] args)rn rn new ChatServer().start();rn rn public void start()rn rn tryrn rn ss=new ServerSocket(8888);rn started=true;rn rn catch(BindException e)rn rn System.out.println("端口使用中....");rn System.out.println("请关掉相关程序,重新运行服务器!");rn System.exit(0);rn rn catch (IOException e)rn rn e.printStackTrace();rn rn tryrn rn while(started)rn rn Socket s=ss.accept();rn System.out.println("a Client connected!");rn Client c=new Client(s); rn new Thread(c).start();rn rn rn catch (IOException e)rn rn e.printStackTrace();rn rn finallyrn rn tryrn rn ss.close();rn rn catch (IOException e)rn rn e.printStackTrace();rn rn rn rn rn class Client implements Runnablern rn private Socket s;rn private DataInputStream dis=null;rn private DataOutputStream dos=null;rn rn private boolean bconnected=false;rn rn public Client(Socket s)rn rn tryrn rn this.s=s;rn dis=new DataInputStream(s.getInputStream());rn dos=new DataOutputStream(s.getOutputStream());rn bconnected=true;rn rn catch (IOException e)rn rn e.printStackTrace();rn rn rn rn public void send(String str)rn rn tryrn rn dos.writeUTF(str);rn rn catch (IOException e)rn rn e.printStackTrace();rn rn rn rn public void run()rn rn tryrn rn while(bconnected)rn rn String str = dis.readUTF();rn System.out.println(str);rn for(int i=0;i it=clients.iterator();it.hasNext();)rn rn Client c=it.next();rn c.send(str);rn rn rn Iterator it=clients.iterator();rn while(it.hasNext())rn rn Client c=it.next();rn c.send(str);rn rn */rn rn rn catch(EOFException e)rn rn System.out.println("Client Closed!");rn rn catch (IOException e)rn rn e.printStackTrace();rn rn finallyrn rn tryrn rn if(dis!=null)rn rn dis.close();rn dis=null;rn rn if(dos!=null)rn rn dos.close();rn dos=null;rn rn if(s!=null)rn rn s.close();rn s=null;rn rn rn catch (IOException e1)rn rn e1.printStackTrace();rn rn rn rn rnrn<em>错误</em>提示:rna Client connected!rna Client connected!rnnihaornjava.net.SocketException: Connection <em>reset</em>rn at java.net.SocketInputStream.read(SocketInputStream.java:168)rn at java.net.SocketInputStream.read(SocketInputStream.java:182)rn at java.io.DataInputStream.readUnsignedShort(DataInputStream.java:320)rn at java.io.DataInputStream.readUTF(DataInputStream.java:572)rn at java.io.DataInputStream.readUTF(DataInputStream.java:547)rn at ChatServer$Client.run(ChatServer.java:102)rn at java.lang.Thread.run(Thread.java:662)rn不胜感激!
帮忙看下这个错误 java.net.SocketException: Connection reset
这个<em>错误</em>可能会是什么<em>错误</em> rnjava.net.SocketException: Connection <em>reset</em>rnjava.net.SocketException: Connection <em>reset</em>rn at java.net.SocketInputStream.read(SocketInputStream.java(Compiled Code)rn at weblogic.socket.PosixSocketMuxer.readBytesProblem(PosixSocketMuxer.j)rn at weblogic.socket.PosixSocketMuxer.deliverGoodNews(PosixSocketMuxer.ja)rn at weblogic.socket.PosixSocketMuxer.processSockets(PosixSocketMuxer.jav)rn at weblogic.socket.SocketReaderRequest.execute(SocketReaderRequest.java)rn at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:213)rn at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:189)rn>rn
redis 老是报java.net.SocketException: Connection reset错误,求大神帮忙
org.springframework.web.util.NestedServletException: Request processing failed; nested exception is redis.clients.jedis.exceptions.JedisConnectionException: java.net.SocketException: Connection <em>reset</em>rn org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:659)rn org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:552)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:621)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:722)rn org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88)rn org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)rnroot causernrnredis.clients.jedis.exceptions.JedisConnectionException: java.net.SocketException: Connection <em>reset</em>rn redis.clients.jedis.Protocol.process(Protocol.java:79)rn redis.clients.jedis.Protocol.read(Protocol.java:131)rn redis.clients.jedis.Connection.getBinaryBulkReply(Connection.java:182)rn redis.clients.jedis.Connection.getBulkReply(Connection.java:171)rn redis.clients.jedis.Jedis.get(Jedis.java:67)rn com.shakecheck.service.RedisService.get(RedisService.java:79)rn com.shakecheck.controller.HCountController.Homecount(HCountController.java:53)rn sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)rn sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)rn java.lang.reflect.Method.invoke(Unknown Source)rn org.springframework.web.bind.annotation.support.HandlerMethodInvoker.doInvokeMethod(HandlerMethodInvoker.java:710)rn org.springframework.web.bind.annotation.support.HandlerMethodInvoker.invokeHandlerMethod(HandlerMethodInvoker.java:167)rn org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.invokeHandlerMethod(AnnotationMethodHandlerAdapter.java:414)rn org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.handle(AnnotationMethodHandlerAdapter.java:402)rn org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:771)rn org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:716)rn org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:647)rn org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:552)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:621)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:722)rn org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88)rn org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)rnroot causernrnjava.net.SocketException: Connection <em>reset</em>rn java.net.SocketInputStream.read(Unknown Source)rn java.net.SocketInputStream.read(Unknown Source)rn java.net.SocketInputStream.read(Unknown Source)rn redis.clients.util.RedisInputStream.fill(RedisInputStream.java:109)rn redis.clients.util.RedisInputStream.readByte(RedisInputStream.java:45)rn redis.clients.jedis.Protocol.process(Protocol.java:64)rn redis.clients.jedis.Protocol.read(Protocol.java:131)rn redis.clients.jedis.Connection.getBinaryBulkReply(Connection.java:182)rn redis.clients.jedis.Connection.getBulkReply(Connection.java:171)rn redis.clients.jedis.Jedis.get(Jedis.java:67)rn com.shakecheck.service.RedisService.get(RedisService.java:79)rn com.shakecheck.controller.HCountController.Homecount(HCountController.java:53)rn sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)rn sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)rn java.lang.reflect.Method.invoke(Unknown Source)rn org.springframework.web.bind.annotation.support.HandlerMethodInvoker.doInvokeMethod(HandlerMethodInvoker.java:710)rn org.springframework.web.bind.annotation.support.HandlerMethodInvoker.invokeHandlerMethod(HandlerMethodInvoker.java:167)rn org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.invokeHandlerMethod(AnnotationMethodHandlerAdapter.java:414)rn org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.handle(AnnotationMethodHandlerAdapter.java:402)rn org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:771)rn org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:716)rn org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:647)rn org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:552)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:621)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:722)rn org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88)rn org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
求助:Connection Reset的错误
应用部署在WebLogic 6.1 (sp6)上,过一段时间就会跑出Connection Reset的<em>错误</em>,而且会出现无法登陆的问题。请教各位大虾该如何解决呢?rnrnBTW:DB和Application部署在不同的机器上,中间有防火墙。rnrnrn rn rn rn
Connection reset by peer的常见原因及解决办法
1,如果一端的Socket被关闭(或主动关闭,或因为异常退出而 引起的关闭),另一端仍发送数据,发送的第一个数据包引发该异常(Connect <em>reset</em> by peer)。 nnSocket默认连接60秒,60秒之内没有进行心跳交互,即读写数据,就会自动关闭连接。nn2,一端退出,但退出时并未关闭该连接,另一端如果在从连接中读数据则抛出该异常(Connection <em>reset</em>)。 nnn 简单的...
http请求:Connection reset问题粗略解析
向http://****发起请求时抛出异常,异常信息为:Connection <em>reset</em>nn(1)Connection <em>reset</em>:一端退出,但退出时并未关闭该连接,另一端如果从连接中读取数据则抛出该异常;nn(2)Connection <em>reset</em> by peer:一端的Socket被关闭(或主动关闭或者因为异常退出而引起的关闭),另一端扔发送数据,发送的第一个数据包引发该异常。nn粗略解释为连接...
Software caused connection abort: recv failed
Software caused <em>connection</em> abort: recv failed
codis迁移引发的问题
首先介绍下codis的迁移: ncodis将所有的数据预分配为1024个slot,做一次典型的数据迁移,其最小单位就是一个slot,其流程大致是这样的(以下文字主要来自Codis作者huangdongxu的博客):由dashboard通过ZK向所有proxy下发一个pre_migrate命令,如pre_migrate slot_1 to group 2.n当所有proxy都收到并且回复了pre_mi
什么情况下会产生Connection reset
什么情况下会产生Connection <em>reset</em>?nn导致“Connection <em>reset</em>”的原因是服务器端因为某种原因关闭了Connection,而客户端依然在读写数据,此时服务器会返回复位标志“RST”,然后此时客户端就会提示“java.net.SocketException: Connection <em>reset</em>”。nn网上搜一下,很多这样的打包附送的答案,如下:nnn第1个异常是java.n...
git 错误reset的解决
昨天在公司上班的时候, 因为旧版本临时有了一些改动, 需要修改另一个分支上的代码. boss在我电脑上看了下, 说: “这些改动可以 <em>reset</em> 吧? 好像用不到? 你到另一个分支去改一下东西.”我当时脑子有点懵, 嗯了一下, 然后亲眼看着他<em>reset</em>, 然后checkout, 然后我接过键盘开始改…两个小时后, 当我转回来继续之前的工作时…妈呀, 我的天, 刚才发生了什么! @%&$%& 苍天呐
ECS云主机SSH连接提示“Connection reset by peer”的解决办法和解决思路
    三周前刚从上家公司换到新的公司,这家公司与上家公司相比对阿里云的云计算环境更加的依赖,使用的ECS实例和其他服务如SLB、RDS、OSS等更多了一个数量级。这篇文章的背景就是为了解决阿里云ECS云主机SSH连接的一个问题,从故障发现到故障排除到最后反思的一个详细过程。文章比较长,图片众多,建议有时间仔细阅读,没时间就阅读文末的“总结和反思”部分即可。故障发现:    2017-05-23 ...
记一次压测问题定位:connection reset by peer,TCP三次握手后服务端发送RST
问题描述    这两天用Go做一个比较简单的task:后端有HTTPServer和TCPServer。客户端通过http接入到HTTPServer,HTTPServer通过RPC将请求发送到TCPServer,所有的业务逻辑都由TCPServer处理。    压测:自己的mac电脑(CPU:Intel i7, 4核,2.7GHz。内存:16G),硬件够用。客户端用Go编写,1个goruntine启...
求助:linux服务器间Socket异常问题:Connection reset
在一台服务器上有两个tomcatA、tomcatB;rntomcatA上部署了项目a以专门对外提供Webservice服务;rntomcatB上部署了针对 项目a 的web测试项目;rn需求是:通过web测试项目对项目a提供的各种Webservice服务进行测试;rn现在的问题:在web测试项目上调用Webservice服务时报错:rn07-04 19:03:52 [TP-Processor255
JDBC Connection Reset导致项目无法启动的问题
n n n 问题出现的背景:最近在写一个项目的代码时,出现了一个问题,项目(Spring Boot项目)打包后放在Linux服务器执行启动脚本时,发现数据库连接池在创建数据连接时总被服务端重置,导致项目无法启动,具体的异常信息下。nnnnnnnnnnnn问题排查:依照之前的经验,出现这个问题后对以下几点进行了排查,最后发现都没有解决这个问题。1.检查数据库连接池、数据...
MongoDB复制错误及处理方法
MongoDB复制<em>错误</em>及处理方法转载自:http://blog.163.com/ji_1006/blog/static/10612341201332564823593/通过在主节点上面运行 rs.status() 可以看到相应的errormsg具体解决办法如下:1、Error creating index  13111 field not found, expected type 16在执行mon...
JAVA.NET.SOCKETEXCEPTION TOO MANY OPEN FILES解决方法
JAVA.NET.SOCKETEXCEPTION TOO MANY OPEN FILES解决方法,三种方案,临时,永久,根治
数据库报错 io 连接错误 长时间报错
NULL 博文链接:https://jian1120java.iteye.com/blog/1974813
Nagios学习(三)nrpe的安装与配置
nRemote host端的安装配置 n安装Nagios的插件nnnnn#cd /tmpn// source下载n#wget http://nagios-plugins.org/download/nagios-plugins-2.2.1.tar.gzn// 解压源码n#tar xzf nagios-plugins-2.2.1.tar.gzn#cd nagios-plugins-2.2.1n// 编...
authware作品下载
课程设计 authware作品 毕业设计 相关下载链接:[url=//download.csdn.net/download/hhxxttsw/507778?utm_source=bbsseo]//download.csdn.net/download/hhxxttsw/507778?utm_source=bbsseo[/url]
java面试题及答案下载
很好用的一套题 大家下载看看 希望在面试的时候能帮助你们! 相关下载链接:[url=//download.csdn.net/download/jigfkgjogjor53459038/2127571?utm_source=bbsseo]//download.csdn.net/download/jigfkgjogjor53459038/2127571?utm_source=bbsseo[/url]
绿色vf 6.0简版下载
绿色vf 6.0简版 绿色vf 6.0简版 相关下载链接:[url=//download.csdn.net/download/chenghaicys/2425847?utm_source=bbsseo]//download.csdn.net/download/chenghaicys/2425847?utm_source=bbsseo[/url]
文章热词 机器学习教程 Objective-C培训 交互设计视频教程 颜色模型 设计制作学习
相关热词 mysql关联查询两次本表 native底部 react extjs glyph 图标 学习java容易犯的错误 怎么学习互联网大数据
我们是很有底线的