Connection reset by peer 求助 [问题点数:50分]

Bbs1
本版专家分:15
结帖率 91.39%
Bbs7
本版专家分:13074
Bbs3
本版专家分:839
Bbs1
本版专家分:15
Bbs1
本版专家分:0
connection reset by peer?
上位机(客户端)定时给下位机(服务端)发查询命令.rn服务端去查询,数据库,如果有新数据,返回给客户端,如果没,告诉客户端没有新数据.rn运行了,10个小时左右,rn提示,<em>connection</em>g <em>reset</em> by <em>peer</em>rn这个错误,一般是什么情况下给出的。rn大家,是否遇到过这类问题.后来怎么解决的.
java.io.IOException: Connection reset by peer
java.io.IOException: Connection <em>reset</em> by <em>peer</em>rn at sun.nio.ch.FileDispatcher.read0(Native Method)rn at sun.nio.ch.SocketDispatcher.read(SocketDispatcher.java:21)rn at sun.nio.ch.IOUtil.readIntoNativeBuffer(IOUtil.java:233)rn at sun.nio.ch.IOUtil.read(IOUtil.java:206)rn at sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:207)rn at org.apache.mina.transport.socket.nio.NioProcessor.read(NioProcessor.java:179)rn at org.apache.mina.transport.socket.nio.NioProcessor.read(NioProcessor.java:41)rn at org.apache.mina.core.polling.AbstractPollingIoProcessor.read(AbstractPollingIoProcessor.java:585)rn at org.apache.mina.core.polling.AbstractPollingIoProcessor.process(AbstractPollingIoProcessor.java:563)rn at org.apache.mina.core.polling.AbstractPollingIoProcessor.process(AbstractPollingIoProcessor.java:552)rn at org.apache.mina.core.polling.AbstractPollingIoProcessor.access$400(AbstractPollingIoProcessor.java:56)rn at org.apache.mina.core.polling.AbstractPollingIoProcessor$Processor.run(AbstractPollingIoProcessor.java:891)rn at org.apache.mina.util.NamePreservingRunnable.run(NamePreservingRunnable.java:64)rn at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)rn at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)rn at java.lang.Thread.run(Thread.java:595)rn 请教高手,这个错误是如何引起的,如何解决?不甚感激!
Connection reset by peer
服务端和客户端都是用idUDPServer;服务端的ThreadEven为Truernrn为何运行一段时间(接收数据一段时间)后,会出现:如下错误rnConnection <em>reset</em> by <em>peer</em>.rnSocket Error # 10054
java.net.SocketException: Connection reset by peer
socket客户端总异常,不知道怎么解决
Connection reset by peer?
今天我连接一个服务端rnbttrack.9you.comrn6969rnconnect成功了 但是刚开始接收数据就出现Connection <em>reset</em> by <em>peer</em>错误,接收recv反回-1rn请问这是怎么回事情.rnrnps.服务端是www.9you.com游戏公司的提供下载游戏的 rn
分析一下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请大家帮忙分析一下。谢谢!
关于connection reset by peer的错误
我们开发了一套系统。在使用过程中总是出现<em>connection</em> <em>reset</em> by <em>peer</em>这个错误。是什么原因造成的。怎么解决呢!!rnrn
connection reset by peer 是怎么回事?
我的jsp程序在运行时老是在tomcat中出现“<em>connection</em> <em>reset</em> by <em>peer</em> socket write error” 是怎么回事阿?还有我的程序虽然出现这种问题,但是有正常结果出来,请各位仁兄指点。rn 而且,程序在刷新是老是出现空指针异常(我的程序中进行了数据库访问),不知道与这有没有关系?rn 谢谢有能力的大侠指点
write error: connection reset by peer
在linux下用C写网络通讯时rnwrite error: <em>connection</em> <em>reset</em> by <em>peer</em>rn这个是什么错误,什么的原因引起的rn解决方案是什么?
connection reset by peer 10054错误
使用IDDY10的idtcpClient:rn程序中,使用一个计时器,检查idTcpClient的状态,代码如下:rntryrn if not idTcpClient.Connected thenrn beginrn idTcpClient1.connect('127.0.0.1',9099);rn end;rnexceptrn //rnend;rn当服务器强制断开,就出现如题所示的错误信息。rn我在Except中却无法获取。rnrn问,怎么才能不出现这样的错误提示。
SQL SERVER7 Connection reset by peer
我使用SQL SERVER7,用JDBC连接使用一段时间后出现 rn10054 Connection <em>reset</em> by <em>peer</em> 错误,请问这是我的哪儿的配置有问题 rn我看了MICROSOFT的在线帮助,只是说在服务器上的错误(Connecting to SQL Server from TCP/IP Sockets Clients rn),具体没说明,请各位 rn帮助。谢
socket error#10054 connection reset by peer
客户端和服务器连接的时候就出现以上问题。。在本机上的客户端连接本机运行的服务器没有问题,但是在其他机器上的客户端连接就出问题了。。rn rn客户端rnrnunit UnitLogin;rnrninterfacernrnusesrn Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,rn Dialogs, StdCtrls,HttpApp,inifiles, ScktComp, IdBaseComponent,rn IdComponent, IdIPWatch, Menus, Sockets, IdTCPConnection, IdTCPClient,rn ExtCtrls, IdAntiFreezeBase, IdAntiFreeze;rntypern User_Info=recordrn User_Number:String[8];//登录的JJ号rn User_Password:String[12];//登录密码rn User_IpAddress:String[15];//用户的IP地址rnend;rntypern TFormlogin = class(TForm)rn LabelLoginName: TLabel;rn LabelPassword: TLabel;rn EditPassword: TEdit;rn ButtonLogin: TButton;rn ComboBoxLoginName: TComboBox;rn ButtonSet: TButton;rn Button1: TButton;rn IdIPWatch1: TIdIPWatch;rn IdTCPClient1: TIdTCPClient;rn Timer1: TTimer;rn IdAntiFreeze1: TIdAntiFreeze;rn procedure ComboBoxLoginNameKeyPress(Sender: TObject; var Key: Char);rn procedure EditPasswordKeyPress(Sender: TObject; var Key: Char);rn procedure ButtonLoginClick(Sender: TObject);rn procedure ButtonSetClick(Sender: TObject);rn procedure FormShow(Sender: TObject);rn procedure FormCreate(Sender: TObject);rn procedure Button1Click(Sender: TObject);rn procedure IdTCPClient1Disconnected(Sender: TObject);rn procedure IdTCPClient1Connected(Sender: TObject);rn privatern Private declarations rn publicrn Public declarations rn end;rnrnvarrn Formlogin: TFormlogin;rn info:user_info;rn Str:String;rn td:DWORD;rn doConnect:Boolean;rnimplementationrnrnuses UnitSet, UnitChat, server;rnrn$R *.dfmrnprocedure readthread;rnvarrn s:String;rnbeginrn while doConnect dorn beginrn s:=FormLogin.IdTCPClient1.ReadLn;rn sleep(100);rn end;rnend;rnrnprocedure TFormlogin.ComboBoxLoginNameKeyPress(Sender: TObject;rn var Key: Char);rnbeginrn case Key ofrn '0'..'9',#8:;rn #27:ComboBoxLoginName.Text:='';rn #13:self.EditPassword.SetFocus;rn else Key:=#0;rn end;rnend;rnrnprocedure TFormlogin.EditPasswordKeyPress(Sender: TObject; var Key: Char);rnbeginrn case Key ofrn '0'..'9','a'..'z','A'..'Z',#8:;rn #27:EditPassword.Text:='';rn #13:self.ButtonLoginClick(self);rn else Key:=#0;rn end;rnend;rnrnprocedure TFormlogin.ButtonLoginClick(Sender: TObject);rnvarrn recInfo:String;rnbeginrn //CreateThread(nil,0,@ReadThread,nil,0,td);rn if self.IdTCPClient1.Connected thenrn idtcpclient1.Disconnect;rn if (self.ComboBoxLoginName.Text<>'') and (self.EditPassword.Text<>'') thenrn beginrn IdTCPClient1.Host:=intToStr(ini.ReadInteger('config','ip0',192))+'.'+intToStr(ini.ReadInteger('config','ip1',168))+'.'+intToStr(ini.ReadInteger('config','ip2',0))+'.'+intToStr(ini.ReadInteger('config','ip3',87));rn IdTCPClient1.Port:=8088;rn IdTCPClient1.Connect;rn info.User_Number:=comboboxLoginName.Text;rn info.User_Password:=EditPassword.Text;rn info.User_IpAddress:=IdIPWatch1.LocalIP;rn IdTCPClient1.WriteBuffer(info,sizeof(info),true);rn recinfo:=IdTCPClient1.ReadLn;rn if recInfo='ls' thenrn beginrn showmessage('登陆成功');rn self.Hide;rn formchat.Show;rn endrn elsern beginrn showmessage('登录失败');rn idtcpclient1.Disconnect;rn end;rn endrn elsern beginrn showmessage('用户名或密码不能为空');rn end;rnend;rnprocedure TFormlogin.ButtonSetClick(Sender: TObject);rnrnbeginrn formSet.Show;rn ButtonSet.Enabled:=false;rnend;rnrnprocedure TFormlogin.FormShow(Sender: TObject);rnbeginrn ComboboxLoginName.SetFocus();rnend;rnrnprocedure TFormlogin.FormCreate(Sender: TObject);rnbeginrn showmessage('本机的IP地址为'+self.IdIPWatch1.LocalIP);rn inifileName:=Extractfilepath(application.ExeName)+'ip.ini';rn ini:=TiniFile.Create(iniFileName);rnend;rnrnprocedure TFormlogin.Button1Click(Sender: TObject);rnbeginrn formServer.show;rnend;rnprocedure TFormlogin.IdTCPClient1Disconnected(Sender: TObject);rnbeginrn formserver.StatusBar1.Panels[0].Text:='客户端'+IdIPWatch1.LocalIP+'断开连接';rnend;rnrnprocedure TFormlogin.IdTCPClient1Connected(Sender: TObject);rnbeginrn formserver.StatusBar1.Panels[0].Text:='客户端'+IdIPWatch1.LocalIP+'已经连接';rnend;rnrnend.rn--------------------------------------------------------------------------------------------------------------rn--------------------------------------------------------------------------------------------------------------rn-----------------------------------------服务器端-------------------------------------------------------------rnrnrnunit server;rnrninterfacernrnusesrn Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,rn Dialogs, ExtCtrls, ScktComp, ToolWin, ComCtrls, StdCtrls, FileCtrl, Menus,rn DB, ADODB, IdBaseComponent, IdComponent, IdTCPServer;rnrnconstrn CMax=10;rnrntypern User_Info1=recordrn User_Number:String[8];//登录的JJ号rn User_Password:String[12];//登录密码rn User_IpAddress:String[15];//用户的IP地址rnend;rnrntypern TformServer = class(TForm)rn ControlBar1: TControlBar;rn ToolBar1: TToolBar;rn ButtonConnect: TButton;rn ButtonBreak: TButton;rn ButtonClose: TButton;rn StatusBar1: TStatusBar;rn Memo1: TMemo;rn Edit1: TEdit;rn ListBox1: TListBox;rn ADOConnection1: TADOConnection;rn ADOQuery1: TADOQuery;rn IdTCPServer1: TIdTCPServer;rnrn procedure ButtonCloseClick(Sender: TObject);rn procedure FormClose(Sender: TObject; var Action: TCloseAction);rn procedure IdTCPServer1Connect(AThread: TIdPeerThread);rn procedure ButtonConnectClick(Sender: TObject);rn procedure IdTCPServer1Exception(AThread: TIdPeerThread;rn AException: Exception);rn procedure IdTCPServer1Status(ASender: TObject;rn const AStatus: TIdStatus; const AStatusText: String);rn procedure IdTCPServer1Execute(AThread: TIdPeerThread);rn procedure ButtonBreakClick(Sender: TObject);rnrn privatern Private declarations rn publicrn Public declarations rn end;rnrnvarrn formServer: TformServer;rn info1:User_Info1;rnimplementationrnrnuses UnitLogin;rnrn$R *.dfmrnrnprocedure TformServer.ButtonCloseClick(Sender: TObject);rnbeginrn close;rn IdTCPServer1.Destroy;rn self.IdTCPServer1.Active:=false;rn self.StatusBar1.Panels[0].Text:='服务器已关闭';rnend;rnrnprocedure TformServer.FormClose(Sender: TObject; var Action: TCloseAction);rnbeginrn self.ADOQuery1.Free;rn self.ADOConnection1.Free;rn IdTCPServer1.Destroy;rn if formlogin.IdTCPClient1.connected thenrn formLogin.IdTCPClient1.Disconnect;rnend;rnrnrnprocedure TformServer.IdTCPServer1Connect(AThread: TIdPeerThread);rnbeginrn Athread.Connection.ReadBuffer(info1,sizeof(info1));rn self.ADOQuery1.SQL.Clear;rn self.ADOQuery1.SQL.Add('select * from users where user_Number='+info1.User_Number+' and user_password="'+info1.User_Password+'"');rn self.ADOQuery1.Open;rn if not ADOQuery1.IsEmpty thenrn beginrn Athread.Connection.WriteLn('ls');rn endrn elsern beginrn athread.Connection.WriteLn('lf');rn end;rn ADOQuery1.Close;rnrnend;rnrnprocedure TformServer.ButtonConnectClick(Sender: TObject);rnbeginrn IdTCPServer1.Active:=true;rn self.IdTCPServer1.DefaultPort:=8088;rn self.StatusBar1.Panels[0].Text:='服务器已开启';rnend;rnrnprocedure TformServer.IdTCPServer1Exception(AThread: TIdPeerThread;rn AException: Exception);rnbeginrn showmessage(Athread.Connection.Socket.Binding.PeerIP+Aexception.Message);rnend;rnrnprocedure TformServer.IdTCPServer1Status(ASender: TObject;rn const AStatus: TIdStatus; const AStatusText: String);rnbeginrn showmessage('这是状态选项里的文本'+AStatusText);rnend;rnrnprocedure TformServer.IdTCPServer1Execute(AThread: TIdPeerThread);rnbeginrn // Athread.FreeOnTerminate:=true;rnrnend;rnrnprocedure TformServer.ButtonBreakClick(Sender: TObject);rnbeginrn self.IdTCPServer1.Active:=false;rn self.StatusBar1.Panels[0].Text:='服务器已关闭';rnend;rnrnend.
thrift异常 Connection reset by peer
代码如下,并发量大时几秒就会出现这么个异常:rn [ Thread-0:5281012 ] - [ WARN ] Got an IOException in internalRead!rnjava.io.IOException: Connection <em>reset</em> by <em>peer</em>rn at sun.nio.ch.FileDispatcherImpl.read0(Native Method)rn at sun.nio.ch.SocketDispatcher.read(SocketDispatcher.java:39)rn at sun.nio.ch.IOUtil.readIntoNativeBuffer(IOUtil.java:223)rn at sun.nio.ch.IOUtil.read(IOUtil.java:197)rn at sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:379)rn at org.apache.thrift.transport.TNonblockingSocket.read(TNonblockingSocket.java:141)rn at org.apache.thrift.server.AbstractNonblockingServer$FrameBuffer.internalRead(AbstractNonblockingServer.java:515)rn at org.apache.thrift.server.AbstractNonblockingServer$FrameBuffer.read(AbstractNonblockingServer.java:305)rn at org.apache.thrift.server.AbstractNonblockingServer$AbstractSelectThread.handleRead(AbstractNonblockingServer.java:202)rn at org.apache.thrift.server.TThreadedSelectorServer$SelectorThread.select(TThreadedSelectorServer.java:576)rn at org.apache.thrift.server.TThreadedSelectorServer$SelectorThread.run(TThreadedSelectorServer.java:536)rnrn服务端运行时发生的异常,是什么原因造成的?rn服务端代码:rn TNonblockingServerSocket socket = new TNonblockingServerSocket(servicePort); rn final TDistinct.Processor processor = new TDistinct.Processor(new TDistinctImpl()); rn TThreadedSelectorServer.Args args = new TThreadedSelectorServer.Args(socket);rn args.protocolFactory(new TCompactProtocol.Factory());rn args.transportFactory(new TFramedTransport.Factory()); rn args.processorFactory(new TProcessorFactory(processor));rn TServer server = new TThreadedSelectorServer(args.selectorThreads(60).workerThreads(20));rn server.serve();rn客户端也在使用过TTransport后关闭了,哪位遇到这种问题,求解!
502 Connection reset by peer错误
VMWare中安装了虚拟机ubuntu 16.04,虚拟网路使用的NAT模式,rn因为在公司访问外网需要有代理,所以将/etc/apt/apt.conf配置了如下内容,rnAcquire::http::proxy "http://username:passwd@proxy.*****.com:8080/";rnAcquire::https::proxy "https://username:passwd@proxy.*****.com:8080/";rnAcquire::ftp::proxy "ftp://username:passwd@proxy.*****.com:8080/";rnAcquire::socks::proxy "socks://username:passwd@proxy.*****.com:8080/";rn但是执行sudo apt install vim后,点击Y后,还是会在显示0%rn[Waiting for headers]一会后,显示502 Connection <em>reset</em> by <em>peer</em>错误,需要注意的是502,网上找不到相关的解决办法,我也参考着试了好多办法都不行。特别的是打开火狐浏览器后,输入代理用户/密码,可以取得apt命令中无法下载的package。求大神拯救我,上火了都~~
Connection reset by peer: getsockname的问题
我用php写了一个论坛,apache做web服务器。rnapache的error_log中有些时候,一般是1,2天一次,突然出现下面的报错信息:rn[Fri Jan 25 16:02:15 2002] [error] (54)Connection <em>reset</em> by <em>peer</em>: getsocknamern[Fri Jan 25 16:02:24 2002] [error] (54)Connection <em>reset</em> by <em>peer</em>: getsocknamern[Fri Jan 25 16:02:24 2002] [error] (54)Connection <em>reset</em> by <em>peer</em>: getsocknamern[Fri Jan 25 16:02:25 2002] [error] (54)Connection <em>reset</em> by <em>peer</em>: getsocknamern[Fri Jan 25 16:02:25 2002] [error] (54)Connection <em>reset</em> by <em>peer</em>: getsocknamern[Fri Jan 25 16:02:26 2002] [error] (54)Connection <em>reset</em> by <em>peer</em>: getsocknamern[Fri Jan 25 16:02:26 2002] [error] (54)Connection <em>reset</em> by <em>peer</em>: getsocknamern[Fri Jan 25 16:02:34 2002] [error] (54)Connection <em>reset</em> by <em>peer</em>: getsocknamern[Fri Jan 25 16:02:34 2002] [error] (54)Connection <em>reset</em> by <em>peer</em>: getsocknamern[Fri Jan 25 16:02:35 2002] [error] (54)Connection <em>reset</em> by <em>peer</em>: getsocknamern[Fri Jan 25 16:02:35 2002] [error] (54)Connection <em>reset</em> by <em>peer</em>: getsocknamern[Fri Jan 25 16:02:35 2002] [error] (54)Connection <em>reset</em> by <em>peer</em>: getsocknamern[Fri Jan 25 16:02:35 2002] [error] (54)Connection <em>reset</em> by <em>peer</em>: getsocknamern[Fri Jan 25 16:02:35 2002] [error] (54)Connection <em>reset</em> by <em>peer</em>: getsocknamern[Fri Jan 25 16:02:35 2002] [error] (54)Connection <em>reset</em> by <em>peer</em>: getsocknamern[Fri Jan 25 16:02:36 2002] [error] (54)Connection <em>reset</em> by <em>peer</em>: getsocknamernrn然后这个机器的服务就停止了,也不能远程登录了,只能够重起。但是能ping通这个机器。重起后服务一切正常。。。。。。rn请问大家,这个error的来源是什么?rn谢谢
linux网络编程 Connection reset by peer错误
服务器向客户端发送了数据,客户端没有接收就关闭了,服务器read就会发生Connection <em>reset</em> by <em>peer</em>错误。rn我试验了一下,确是如此。rn同学们遇到过这个问题吗?
Connection reset by peer: socket write error!!!
[color=#FF0000]为帮助保护您的安全,Internet Explorer已经阻止从此站点下载文件到您的计算机。点击此处查看选项....[/color]rn为什么会出现这个问题啊???如何解决。。。?rnrn[code=Java]ClientAbortException: java.net.SocketException: Connection <em>reset</em> by <em>peer</em>: socket write errorrn at org.apache.catalina.connector.OutputBuffer.doFlush(OutputBuffer.java:319)rn at org.apache.catalina.connector.OutputBuffer.flush(OutputBuffer.java:288)rn at org.apache.catalina.connector.CoyoteOutputStream.flush(CoyoteOutputStream.java:98)rn at org.apache.tools.zip.ZipOutputStream.flush(ZipOutputStream.java:508)rn at com.estar.web.mon.ExportAllAction.getZip(ExportAllAction.java:180)rn at com.estar.web.mon.ExportAllAction.handgetzip(ExportAllAction.java:120)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)rn at java.lang.reflect.Method.invoke(Method.java:597)rn at com.opensymphony.xwork2.DefaultActionInvocation.invokeAction(DefaultActionInvocation.java:440)rn at com.opensymphony.xwork2.DefaultActionInvocation.invokeActionOnly(DefaultActionInvocation.java:279)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:242)rn at com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor.doIntercept(DefaultWorkflowInterceptor.java:163)rn at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn at com.opensymphony.xwork2.validator.ValidationInterceptor.doIntercept(ValidationInterceptor.java:249)rn at org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor.doIntercept(AnnotationValidationInterceptor.java:68)rn at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn at com.opensymphony.xwork2.interceptor.ConversionErrorInterceptor.intercept(ConversionErrorInterceptor.java:122)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn at com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:195)rn at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn at com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:195)rn at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn at com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept(StaticParametersInterceptor.java:148)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn at org.apache.struts2.interceptor.CheckboxInterceptor.intercept(CheckboxInterceptor.java:93)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn at org.apache.struts2.interceptor.FileUploadInterceptor.intercept(FileUploadInterceptor.java:235)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn at com.opensymphony.xwork2.interceptor.ModelDrivenInterceptor.intercept(ModelDrivenInterceptor.java:89)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn at com.opensymphony.xwork2.interceptor.ScopedModelDrivenInterceptor.intercept(ScopedModelDrivenInterceptor.java:128)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn at org.apache.struts2.interceptor.ProfilingActivationInterceptor.intercept(ProfilingActivationInterceptor.java:104)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn at org.apache.struts2.interceptor.debugging.DebuggingInterceptor.intercept(DebuggingInterceptor.java:267)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn at com.opensymphony.xwork2.interceptor.ChainingInterceptor.intercept(ChainingInterceptor.java:126)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn at com.opensymphony.xwork2.interceptor.PrepareInterceptor.doIntercept(PrepareInterceptor.java:138)rn at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn at com.opensymphony.xwork2.interceptor.I18nInterceptor.intercept(I18nInterceptor.java:148)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn at org.apache.struts2.interceptor.ServletConfigInterceptor.intercept(ServletConfigInterceptor.java:164)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn at com.opensymphony.xwork2.interceptor.AliasInterceptor.intercept(AliasInterceptor.java:128)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn at com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor.intercept(ExceptionMappingInterceptor.java:176)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)rn at org.apache.struts2.impl.StrutsActionProxy.execute(StrutsActionProxy.java:52)rn at org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:468)rn at org.apache.struts2.dispatcher.ng.ExecuteOperations.executeAction(ExecuteOperations.java:77)rn at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:76)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.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:198)rn at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)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:76)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> by <em>peer</em>: socket write errorrn at java.net.SocketOutputStream.socketWrite0(Native Method)rn at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)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.coyote.http11.InternalOutputBuffer.flush(InternalOutputBuffer.java:299)rn at org.apache.coyote.http11.Http11Processor.action(Http11Processor.java:964)rn at org.apache.coyote.Response.action(Response.java:183)rn at org.apache.catalina.connector.OutputBuffer.doFlush(OutputBuffer.java:314)rn ... 78 morern[/code]
ClientAbortException: java.net.SocketException: Connection reset by peer: socke
在做文件下载的时候,出现了这个错误,找了很久没有找到,希望高手指点,但是文件可以顺利的下载下来,小文件下载不会出错,如果是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错误信息:rnClientAbortException: java.net.SocketException: Connection <em>reset</em> by <em>peer</em>: 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 <em>peer</em>: 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
Connection reset by peer: socket closed.是怎么回事?
[04-7-28 16:01:23:375 CST] 3d28474b MCWrapper E J2CA0081E: 尝试在资源 No longer available 的 ManagedConnection com.ibm.ws.rsadapter.spi.WSRdbManagedConnectionImpl@791447a6 上执行方法 destroy 时方法 destroy 失败。捕捉到异常:com.ibm.ws.exception.WsException: DSRA0080E: An exception was received by the Data Store Adapter. See original exception message: Io exception: Connection <em>reset</em> by <em>peer</em>: socket closed.rnrn系统环境rn使用websphere 5.02 的连接池连接rn另外一台机器上的Oracle rnOracle8i Enterprise Edition Release 8.1.7.0.0 - 64bit ProductionrnWith the Partitioning and Parallel Server optionsrnJServer Release 8.1.7.0.0 - 64bit Productionrnrn这个错误出现的时候我的页面就无法打开,静态部分出来了动态部分很慢出不来。rn大概5分钟左右就会好。出这个问题的时候访问量并不大。rnrn困扰我好久了,不知道怎么回事,该怎样解决?谢谢了!!!
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 <em>peer</em>)。rnrn<em>求助</em>!
Connection reset by peer: socket write error
我从数据库读图片时,有以下的错误Connection <em>reset</em> by <em>peer</em>: socket write error,这是怎么回事呢?rnrnjava.net.SocketException: Connection <em>reset</em> by <em>peer</em>: 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$OutputStreamOutputBuffer.doWrite(InternalOutputBuffer.java:764)rn at org.apache.coyote.http11.filters.ChunkedOutputFilter.doWrite(ChunkedOutputFilter.java:124)rn at org.apache.coyote.http11.InternalOutputBuffer.doWrite(InternalOutputBuffer.java:570)rn at org.apache.coyote.Response.doWrite(Response.java:560)rn at org.apache.catalina.connector.OutputBuffer.realWriteBytes(OutputBuffer.java:353)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.connector.CoyoteOutputStream.write(CoyoteOutputStream.java:83)rn at org.apache.jsp.picturenews.testimageout_jsp._jspService(testimageout_jsp.java:84)rn at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)rn at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:393)rn at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)rn at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)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.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)rn at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)rn at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)rn at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)rn at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)rn at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:261)rn at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)rn at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:581)rn at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)rn at java.lang.Thread.run(Unknown Source)rnrn我在网上找了老长时间也没找到很好的答案,请各位高手指教!
Connection reset by peer: socket write error什么原因
警告: Error sending end packetrnjava.net.SocketException: Connection <em>reset</em> by <em>peer</em>: 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.jk.common.ChannelSocket.send(ChannelSocket.java:531)rn at org.apache.jk.common.JkInputStream.endMessage(JkInputStream.java:121)rn at org.apache.jk.core.MsgContext.action(MsgContext.java:301)rn at org.apache.coyote.Response.action(Response.java:183)rn at org.apache.coyote.Response.finish(Response.java:305)rn at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:195)rn at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:283)rn at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:767)rn at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:697)rn at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:889)rn at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:686)rn at java.lang.Thread.run(Unknown Source)rn2009-7-28 12:24:15 org.apache.jk.common.ChannelSocket processConnectionrn警告: processCallbacks status 2rn我是APACH整合TOMCAT的,我日志里几乎都是这个异常,是什么原因造成的啊!
Connection reset by peer这个错误怎么改
public class Serverrnrn rn rn Socket s;rn rn public Server(Socket s)rn rn this.s=s;rn rn rn public static void ServerStart() rn try rn ServerSocket ss=new ServerSocket(6000);rn while(true)rn rn Socket s = ss.accept();rn rn new ServerThread(s).start();rn rn rnrn rn catch (Exception ex) rn ex.printStackTrace();rn rn rn rn rn public static void main(String[] args) rn rn new Database(); rn rn ServerStart();rn rnrnrnrnrnrn在serverThread里rn ObjectOutputStream oos = new ObjectOutputStream(s.getOutputStream());rn就抛出异常了rnrnrn
Connection reset by peer:socket write error
Connection <em>reset</em> by <em>peer</em>:socket write error rn报这样的异常是因为用户在发出一个请求之后,还未等待其响应又发出了另外一个请求所导致的,rn有没有办法避免这种异常的发生呢?
求救 Connection reset by peer: socket write error
我在jboss上发布一个应用,其中一个页面有一些连接,点击后将回下载avi到本地播放,但是jboss会报错:rn13:47:10,453 ERROR [Engine] StandardWrapperValve[default]: Servlet.service() for servlet default threw exceptionrnjava.net.SocketException: Connection <em>reset</em> by <em>peer</em>: socket write errorrn at java.net.SocketOutputStream.socketWrite0(Native Method)rn at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)rn at java.net.SocketOutputStream.write(SocketOutputStream.java:136)rn at org.apache.coyote.http11.InternalOutputBuffer$OutputStreamOutputBuffernr.doWrite(InternalOutputBuffer.java:668)rn at org.apache.coyote.http11.filters.IdentityOutputFilter.doWrite(IdentitrnyOutputFilter.java:160)rn at org.apache.coyote.http11.InternalOutputBuffer.doWrite(InternalOutputBrnuffer.java:523)rn at org.apache.coyote.Response.doWrite(Response.java:524)rn at org.apache.coyote.tomcat4.OutputBuffer.realWriteBytes(OutputBuffer.jarnva:384)rn at org.apache.tomcat.util.buf.ByteChunk.flushBuffer(ByteChunk.java:439)rn at org.apache.tomcat.util.buf.ByteChunk.append(ByteChunk.java:359)rn at org.apache.coyote.tomcat4.OutputBuffer.writeBytes(OutputBuffer.java:4rn11)rn at org.apache.coyote.tomcat4.OutputBuffer.write(OutputBuffer.java:398)rn at org.apache.coyote.tomcat4.CoyoteOutputStream.write(CoyoteOutputStreamrn.java:110)rn at org.apache.catalina.servlets.DefaultServlet.copyRange(DefaultServlet.rnjava:1996)rn at org.apache.catalina.servlets.DefaultServlet.copy(DefaultServlet.java:rn1745)rn at org.apache.catalina.servlets.DefaultServlet.serveResource(DefaultServrnlet.java:1073)rn at org.apache.catalina.servlets.DefaultServlet.doGet(DefaultServlet.javarn:506)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplrnicationFilterChain.java:247)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFrnilterChain.java:193)rn at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperVrnalve.java:256)rn at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContexrnt.invokeNext(StandardPipeline.java:643)rn at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.javrna:480)rn at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)rnrn at org.apache.catalina.core.StandardContextValve.invoke(StandardContextVrnalve.java:191)rn at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContexrnt.invokeNext(StandardPipeline.java:643)rn at org.jboss.web.tomcat.security.JBossSecurityMgrRealm.invoke(JBossSecurrnityMgrRealm.java:220)rn at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContexrnt.invokeNext(StandardPipeline.java:641)rn at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValvern.java:246)rn at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContexrnt.invokeNext(StandardPipeline.java:641)rn at org.jboss.web.tomcat.tc4.statistics.ContainerStatsValve.invoke(ContairnnerStatsValve.java:76)rn at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContexrnt.invokeNext(StandardPipeline.java:641)rn at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.javrna:480)rn at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)rnrn at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:rn2416)rn at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.jrnava:180)rn at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContexrnt.invokeNext(StandardPipeline.java:643)rn at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatchernrValve.java:171)rn at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContexrnt.invokeNext(StandardPipeline.java:641)rn at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.jrnava:172)rn at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContexrnt.invokeNext(StandardPipeline.java:641)rn at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecuritrnyAssociationValve.java:65)rn at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContexrnt.invokeNext(StandardPipeline.java:641)rn at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:rn577)rn at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContexrnt.invokeNext(StandardPipeline.java:641)rn at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.javrna:480)rn at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)rnrn at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValrnve.java:174)rn at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContexrnt.invokeNext(StandardPipeline.java:643)rn at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.javrna:480)rn at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)rnrn at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:22rn3)rn at org.apache.coyote.http11.Http11Processor.process(Http11Processor.javarn:601)rn at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.procernssConnection(Http11Protocol.java:392)rn at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.javarn:565)rn at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPrnool.java:619)rn at java.lang.Thread.run(Thread.java:536)rnrn请教各位大虾如何解决这个问题.
请教一个Weblogic的Connection reset by peer 问题
碰到一个怪异问题:rn Bea Weblogic 8.1 + SP3 (813), 上面部署一个web application(xxx.war)rn 用IE 访问xxx.war 中的页面工作正常,rn 用FireFox页面也显示正常,但在控制台上显示出错误信息:rn java.net.SocketException: Connection <em>reset</em> by <em>peer</em>.rn at jrockit.net.SocketNativeIO.write(IIIZ)I(Unknown Source)rn at jrockit.net.SocketNativeIO.write(III)I(Unknown Source)rn at jrockit.io.NativeIO.write(Ljava.io.FileDescriptor;II)I(Unknown Source)rn at java.net.AbstractSocketImpl$2.write(II)V(Unknown Source)rn at jrockit.io.NativeIOOutputStream.write(I[BI)V(Unknown Source)rn at jrockit.io.NativeIOOutputStream.write([BII)V(Unknown Source)rn ...rn rn我的理解是:当Servlet(jsp)完成业务逻辑的处理后,向响应页面输出结果时,前端客户切换到了另外一个页面,所以就会出现sockets write error。不知正确与否.rnrn虽然此错误对运行没有影响,但老显示在控制台上用户也不能接受rnrn请教各位达人,这是什么原因引起的?如何解决?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格式的文件他就报如下错误:[/size]rnrn[code=Java]rnjava.net.SocketException: Connection <em>reset</em> by <em>peer</em>: 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]
#define ECONNRESET 73 /* Connection reset by peer */
这个错误表示什么意思?是服务器的问题还是客户端的问题?
Linux下客户端提示104,Connection reset by peer
我在linux下编写了一个linux客户端程序,连接windows服务器的时候经常出现错误号104,Connection <em>reset</em> by <em>peer</em>。再次发送的时候提示:错误号:32,Broken pipe。rn 而此时服务器端的连接还是存在的,根本没有检测到断开的信号。rn 麻烦大家帮帮忙。谢谢。代码如下:rnrnint len=0;rn char szbuff[1024]=0;rn int count = 0;rn int nNetTimeout=8000;rn int nRevTimeout=8000;rn string strBuff;rn // GetFileBuff(fileName,strBuff);rn int ret = 0;rn struct sockaddr_in addr;rnrn SOCKET data_s = socket(AF_INET,SOCK_STREAM,0);rn addr.sin_family = AF_INET;rn addr.sin_port = htons(g_iPort);rn addr.sin_addr.s_addr = inet_addr(g_cServerIp);rn ret = connect(data_s,(SOCKADDR*)&addr,sizeof(addr));rn if (ret!=0)rn rn printf("[%s %s] connect file Port falied\n",GetDate().c_str(),GetTime().c_str());rn ::close(data_s);rn ////closesocket(pCtx->control_s);rn exit(0) ;rn rnrn while(1)rn rn sleep(1);rn rn int ret = send(data_s,"1111111111111111111111111111111111111111111111111111111",100,0);rn //int ret = send(data_s,"1234567890",10,0);rn printf("[%s %s]send %d,%d,%s\n",GetDate().c_str(),GetTime().c_str(),ret,errno,strerror(errno));rn if (ret !=100)rn rn //close(data_s);rn //exit(0);rn rn rn shutdown(data_s,0);rn sleep(1);rn ::close(data_s);
Socket Error # 10054 Connection reset by peer
[img=http://bbs.2ccc.com/attachments/2013/tp26021340_201353116537.jpg][/img]rnrnDebugger Exception Notificationrn---------------------------rnProject Server.exe raised exception class EIdSocketError with message 'Socket Error # 10054rnConnection <em>reset</em> by <em>peer</em>.'.rn---------------------------rnBreak Continue Help rn---------------------------rn不知道为什么最近客户端连接服务端就就自动关闭,把服务端程序打开跟进报 图片中的错误。寻找解决方法。 rnrnIndy10 更换为最新的,开发工具采用xe2 + Remobject通讯 rnrn各位 帮忙看看。
ClientAbortException: java.net.SocketException: Connection reset by peer: sock
各位大哥!rnrn我的WEB系统,用着用着,客户端浏览器就假死,即出现白屏,屏幕很久打不开.感觉好象就是没有得到数据库连接.rn但是服务器日志不报错.rnrn在这个出现之前有报rn ClientAbortException: java.net.SocketException: Connection <em>reset</em> by <em>peer</em>: socket write errorrnrn这个错误,不知道是否有联系.各位我该如何应对?郁闷啊rn
sendto failed:ECONNRESET(Connection reset by peer)
android调用webservice的一个函数,如果参数的内容太长,在调用时会出现sendto failed:ECONNRESET(Connection <em>reset</em> by <em>peer</em>)问题,但是在出现这个问题后,如果我在次调用,就正常了。rn我测试的时候,专门通过性能监视器查看当前连接,故意等到连接断掉时,在调用,正常情况下,会有一个新的连接建立,但是数据量大的时候,有时候就没有建立,而是报错:sendto failed:ECONNRESET(Connection <em>reset</em> by <em>peer</em>),数据量小的时候,就不存在这个问题。我的IIS超时连接设置的是180秒。rnrnrn求大神帮忙分析下问题可能的原因?
netty服务器报错:java.io.IOException: Connection reset by peer
请问你们遇到过吗 报的以下错误rnrnrnMay 04, 2018 12:26:39 PM io.netty.channel.DefaultChannelPipeline onUnhandledInboundExceptionrnWARNING: 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.rnjava.io.IOException: Connection <em>reset</em> by <em>peer</em>rn at sun.nio.ch.FileDispatcherImpl.read0(Native Method)rn at sun.nio.ch.SocketDispatcher.read(SocketDispatcher.java:39)rn at sun.nio.ch.IOUtil.readIntoNativeBuffer(IOUtil.java:223)rn at sun.nio.ch.IOUtil.read(IOUtil.java:192)rn at sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:380)rn at io.netty.buffer.PooledUnsafeDirectByteBuf.setBytes(PooledUnsafeDirectByteBuf.java:288)rn at io.netty.buffer.AbstractByteBuf.writeBytes(AbstractByteBuf.java:1108)rn at io.netty.channel.socket.nio.NioSocketChannel.doReadBytes(NioSocketChannel.java:345)rn at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:126)rn at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:645)rn at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:580)rn at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:497)rn at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:459)rn at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:886)rn at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)rn at java.lang.Thread.run(Thread.java:748)
Connection reset by peer的常见原因及解决办法
1,如果一端的Socket被关闭(或主动关闭,或因为异常退出而 引起的关闭),另一端仍发送数据,发送的第一个数据包引发该异常(Connect <em>reset</em> by <em>peer</em>)。 Socket默认连接60秒,60秒之内没有进行心跳交互,即读写数据,就会自动关闭连接。 2,一端退出,但退出时并未关闭该连接,另一端如果在从连接中读数据则抛出该异常(Connection <em>reset</em>)。 简单的...
Idhttp遭遇10054 connection reset by peer !!!
以下这个代码报错#10054rn_content := IdHTTP1.Get('http://HMM3Y.ibc168.com/ValidateTicket.aspx?c=scSvzU4AfYg=&t=87763481&l=en&f=nReSaj6pl4g=&o=16GPeAjqfVU5kfIPYgw1Tg==');rn情况描述:rn1、通过www.ibc168.com地址进行登录成功。rn2、服务器指示跳转到另一台服务器http://HMM3Y.ibc168.com的时候无法访问#10054,服务器系统是IIS6。rnrn3、通过IE直接访问出错的地址,可以访问,并有数据响应。rn4、通过Idhttp访问出错的地址,不可以访问,没有数据相应。rn5、对比IE请求数据的http包和idhttp的http包,没有不用之处。rnrn本人猜测:rnrn1、http://HMM3Y.ibc168.com服务器设置的防火墙,拒绝了Idhttp的访问。rnrn<em>求助</em>:rn1、故障原因是什么?rn2、如何解决。rnrn请指导解决,谢谢!!!!!rn
indy Connection reset by peer如何最终解决
有一个深层次的问题:当连接成功后,服务器端断开,客户端没有得到通知时,如果用rnidTcpClient1.Connectioned来检查是否连接,则会出现indy Connection <em>reset</em> by <em>peer</em>这个问题,不知道是什么原因,也没有根除办法,rn只好重新创建idTcpClient1对象,这样问题是解决了,但感觉不太漂亮,始终不知道解决的办法。rnrn有谁有最漂亮的解决办法?
Android GPRS访问出错:Connection reset by peer
先前开发一款Android APP,在WIFI环境下测试,是没问题的,但是在GPRS下测试,问题就来了。平均访问5次网路才可以得到1次结果,其余4次几乎1秒不到就报错,Log如下:rnrnrn06-21 16:36:08.265: W/System.err(6788): java.net.SocketException: Connection <em>reset</em> by <em>peer</em>rn06-21 16:36:08.273: W/System.err(6788): at org.apache.harmony.luni.platform.OSNetworkSystem.read(Native Method)rn06-21 16:36:08.277: W/System.err(6788): at dalvik.system.BlockGuard$WrappedNetworkSystem.read(BlockGuard.java:273)rn06-21 16:36:08.281: W/System.err(6788): at org.apache.harmony.luni.net.PlainSocketImpl.read(PlainSocketImpl.java:458)rn06-21 16:36:08.281: W/System.err(6788): at org.apache.harmony.luni.net.SocketInputStream.read(SocketInputStream.java:85)rn06-21 16:36:08.285: W/System.err(6788): at org.apache.http.impl.io.AbstractSessionInputBuffer.fillBuffer(AbstractSessionInputBuffer.java:103)rn06-21 16:36:08.285: W/System.err(6788): at org.apache.http.impl.io.AbstractSessionInputBuffer.readLine(AbstractSessionInputBuffer.java:191)rn06-21 16:36:08.289: W/System.err(6788): at org.apache.http.impl.conn.DefaultResponseParser.parseHead(DefaultResponseParser.java:82)rnrnrn求指点,网上找了一天了...
吐血一问:Connection reset by peer是什么意思?
jboss控制台经常输出:rn[jbossweb]WARNING:Exception for /include/fun.js: java.net.SocketException: Connection <em>reset</em> by <em>peer</em>: socket write errorrn这是什么意思?是什么原因导致这个东西出现?
tomcat的连接池出现connection reset by peer的错误
我在tomcat设置好了连接池,刚开始运行良好,可是过一段时间后,就出现<em>connection</em> <em>reset</em> by <em>peer</em>的错误,无法运行查询了。rn数据库是ms sql server。数据库和应用服务器不在一台机器上。rn请问如何解决?rn
Connection reset by peer是什么原因造成的?
关于socket编程的,操作系统是sco,read的时候返回-1,errno是108, strerror(errno)是Connection <em>reset</em> by <em>peer</em>,我man read的时候没发现有对ECONNRESET做解释,想请教各位这个是server端close了socket还是连接过程中线路断了?
帮忙 错误代码[104] 错误信息[Connection reset by peer]
RecvSocketNoSync 读取数据错误 错误代码[104] 错误信息[Connection <em>reset</em> by <em>peer</em>]
“Connection reset by peer”出现后怎么办?
几个客户机通过IdUDPClient的1688端口向服务器的1888的端口发送大量数据,服务器通过IdUDPServer的OnUDPRead来读取数据。如果这个IdUDPServer和一个客户机通信时出现"Connection <em>reset</em> by <em>peer</em>",从而导致不能接收所有客户机的数据,只有重新启动服务器程序才可以。请各位指点一下,如何避免这种错误的发生。需要改变系统的整体结构吗?还是有一些的技巧可以使服务器的IdUDPServer重置(就像重新启动程序那样),从而使IdUDPServer重新工作?
求助:Connection Reset的错误
应用部署在WebLogic 6.1 (sp6)上,过一段时间就会跑出Connection Reset的错误,而且会出现无法登陆的问题。请教各位大虾该如何解决呢?rnrnBTW:DB和Application部署在不同的机器上,中间有防火墙。rnrnrn rn rn rn
[紧急求助]socket在read时提示Connection reset by peer错误
如题,请教各位这个错误通常是由于什么引起的。该怎样解决。rn先谢了
JAVA求助: connection reset by peer:socket write error
是这样的 我的client端程序如下(节选)rnFileInputStream fis = new FileInputStream(fileName);rn int data;rn while ( -1 != ( data = fis.read( ) ) )rn rn os.write( data );rn rn rn System.out.println( "send file success!!" );rn rn在client端设备上执行后 只从文件发送了一个字节 发送到server端后,程序便出错退出了(server收到了此字节)rn出错在: os.write( data ); 这一行 好象是超时后报错 rnprintStackTrace()错误提示如下 :rnjava.net:SocketException: <em>connection</em> <em>reset</em> by <em>peer</em> :socket write errorrn......................rn......................rnrn奇怪的是 :rn 程序退出后 网络居然不通了??!! 需要拔下网线 再插上网线等一会网络才能ping通 真郁闷呀!!!rnrn各位前辈 多指教 谁遇到过这种问题 rn主要两个问题rn1:程序怎么会执行不下去 只发了一个字节就<em>connection</em> <em>reset</em> by <em>peer</em> :socket write error中断??rn2:网络居然不通了??!!rn
求助 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怎么解决啊??
求助!异常: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请教各位大哥,这问题怎么解决??!
Connection reset
ChatServer.javarn[code=Java]rnimport java.io.DataInputStream;rnimport java.io.DataOutputStream;rnimport java.io.EOFException;rnimport java.io.IOException;rnimport java.net.BindException;rnimport java.net.ServerSocket;rnimport java.net.Socket;rnimport java.util.ArrayList;rnimport java.util.List;rnrnpublic class ChatServer rn /**rn * @param argsrn */rn public static ServerSocket serverSocket = null;rn public static boolean b = false;rn List clients=new ArrayList();rnrn public static void main(String[] args) rnrn new ChatServer().start();rn rnrn public void start()rn rn try rn serverSocket = new ServerSocket(8888);// 创建绑定到特定端口的服务器套接字。rn b = true;rn catch (BindException e) rn System.out.println("端口使用中");rn System.exit(0);// ////开两个服务器就关掉rn catch (IOException e) rn e.printStackTrace();rn rn try rn while (b) rn Socket socket = serverSocket.accept();// 侦听并接受到此套接字的连接。//堵塞//监听在8888端口rn Client c=new Client(socket);rn clients.add(c);rn new Thread(c).start();rn System.out.println("a Client connect");rn rn catch (IOException e) rn e.printStackTrace();rn rn finallyrn rn try rn serverSocket.close();rn catch (IOException e) rn // TODO Auto-generated catch blockrn e.printStackTrace();rn rn rn rn rn rn class Client implements Runnable rn private Socket socket = null;rn private DataInputStream dataInputStream = null;rn private DataOutputStream dataOutputStream = null; rn String str=null;rn public Client(Socket socket) rn super();rn this.socket = socket;rn try rn dataOutputStream=new DataOutputStream(socket.getOutputStream());rn dataInputStream = new DataInputStream(socket.getInputStream());rn catch (IOException e) rn e.printStackTrace();rn rn rn rn private void send() rn try rn dataOutputStream.writeUTF(str);rn catch (IOException e) rn e.printStackTrace(); rn rn rn rn public void run() rn try rn while (true) rn str = dataInputStream.readUTF();// 从包含的输入流中读取此操作需要的字节。rnSystem.out.println(str);rn for(Client client:clients)rn rn client.send();rn rn rn catch (EOFException e) rn System.out.println("Client Closed");rn catch (IOException e) rn // TODO Auto-generated catch blockrn e.printStackTrace();rn finally rn try rn if (dataInputStream != null)rn dataInputStream.close();rn if (dataOutputStream != null)rn dataOutputStream.close();rn if (socket != null)rn socket.close();rn catch (IOException e) rn e.printStackTrace();rn rnrn rnrn rnrn rnrn rnrnrn[/code]rnChatClient.javarn[code=Java]rnimport java.awt.BorderLayout;rnimport java.awt.Frame;rnimport java.awt.TextArea;rnimport java.awt.TextField;rnimport java.awt.event.ActionEvent;rnimport java.awt.event.ActionListener;rnimport java.awt.event.WindowAdapter;rnimport java.awt.event.WindowEvent;rnimport java.io.DataInputStream;rnimport java.io.DataOutputStream;rnimport java.io.IOException;rnimport java.net.Socket;rnimport java.net.UnknownHostException;rnrnrnpublic class ChatClient extends Frame rn private TextArea area=new TextArea();rn private TextField field=new TextField();rn Socket socket=null;rn private boolean b=false;rn DataOutputStream dataOutputStream=null;rn DataInputStream dataInputStream=null;rn Thread t=new Thread(new ReceThread());rnrn public ChatClient() rn this.setBounds(100, 100, 300, 300);rn this.setVisible(true);rn this .add(field,BorderLayout.SOUTH);rn this.add(area,BorderLayout.NORTH);rn field.addActionListener(new ActionMonitor());rn this.addWindowListener(new WindowAdapter() rn public void windowClosing(WindowEvent e)rn rn disConnect();rn System.exit(0);rn rn );rn connect();rn t.start();rn rn public void connect()rn rn try rn socket=new Socket("127.0.0.1",8888);// 创建一个流套接字并将其连接到指定 IP 地址的指定端口号。rn b=true;rn dataOutputStream=new DataOutputStream(socket.getOutputStream());///也可以BufferedOutputStream///返回此套接字的输出流。rn dataInputStream=new DataInputStream(socket.getInputStream());rn System.out.println("connect()");rn catch (UnknownHostException e) rn e.printStackTrace();rn catch (IOException e) rn e.printStackTrace();rn rn rn rn public void disConnect ()rn rn try rn socket.close(); rn dataOutputStream.close();rn catch (IOException e) rn e.printStackTrace();rn rn rn public static void main(String[] args) rn new ChatClient();rn rn rn rn class ActionMonitor implements ActionListenerrn rn public void actionPerformed(ActionEvent e) rn String s=field.getText().trim();rn area.setText(s);rn field.setText("");rn rn try rn dataOutputStream.writeUTF(s);// 以与机器无关方式使用 UTF-8 修改版编码将一个字符串写入基础输出流。rn dataOutputStream.flush();rn rn catch (IOException e1) rn e1.printStackTrace();rn rn rn rn rnrn rn class ReceThread implements Runnablern rn public void run() rn try rn while(b)rn rn String str=dataInputStream.readUTF();rnSystem.out.println(str);rn rn catch (IOException e) rn e.printStackTrace();rn rn rn rn rnrnrn[/code]rnrn为什么编译的时候会出错rnconnect()rnjava.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 ChatClient$ReceThread.run(ChatClient.java:95)rn at java.lang.Thread.run(Thread.java:619)rnrn
socket reset by peer?
在JSP+TOMCAT+ORACLE8.1.7的程序运行过程中出现socket <em>reset</em> by <em>peer</em>的错误(TOMCAT后台出现的),并且这时系统的运行速度非常的慢,导致系统完全崩溃。请问可能产生的原因是?有没有解决办法?
Connection aborted by peer
weblogic9.2 + oracle10.2 + windows2003 rn在业务量大的情况下容易出现一下错误。rnrn2009-07-14 17:07:17,297 [[ACTIVE] ExecuteThread: '25' for queue: 'weblogic.kernel.Default (self-tuning)'] ERROR com.opensymphony.webwork.dispatcher.ServletDispatcher - Could not execute actionrnjava.net.SocketException: socket write error: Connection aborted by <em>peer</em>rn at jrockit.net.SocketNativeIO.socketWrite(Ljava.io.FileDescriptor;[BII)V(Unknown Source)rn at java.net.SocketOutputStream.socketWrite0(Ljava.io.FileDescriptor;[BII)V(SocketOutputStream.java:???)rn at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)rn at java.net.SocketOutputStream.write(SocketOutputStream.java:137)rn at weblogic.servlet.internal.ChunkOutput.writeChunkTransfer(ChunkOutput.java:525)rn at weblogic.servlet.internal.ChunkOutput.writeChunks(ChunkOutput.java:504)rn at weblogic.servlet.internal.ChunkOutput.flush(ChunkOutput.java:382)rn at weblogic.servlet.internal.CharsetChunkOutput.flush(CharsetChunkOutput.java:249)rn at weblogic.servlet.internal.ChunkOutput.checkForFlush(ChunkOutput.java:469)rn at weblogic.servlet.internal.CharsetChunkOutput.implWrite(CharsetChunkOutput.java:396)rn at weblogic.servlet.internal.CharsetChunkOutput.write(CharsetChunkOutput.java:194)rn at weblogic.servlet.internal.ChunkOutputWrapper.write(ChunkOutputWrapper.java:133)rn at weblogic.servlet.jsp.JspWriterImpl.write(JspWriterImpl.java:246)rn at jsp_servlet._disabled.__addrecord._writeText(__addrecord.java:42)rn at jsp_servlet._disabled.__addrecord._jsp__tag103(__addrecord.java:4246)rn at jsp_servlet._disabled.__addrecord._jspService(__addrecord.java:786)rn at weblogic.servlet.jsp.JspBase.service(JspBase.java:34)rn at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:225)rn at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:127)rn at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:230)rn at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)rn at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)rn at com.opensymphony.webwork.lifecycle.RequestLifecycleFilter.doFilter(RequestLifecycleFilter.java:67)rn at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)rn at weblogic.servlet.internal.RequestDispatcherImpl.invokeServlet(RequestDispatcherImpl.java:492)rn at weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:245)rn at com.opensymphony.webwork.dispatcher.ServletDispatcherResult.doExecute(ServletDispatcherResult.java:81)rn at com.opensymphony.webwork.dispatcher.WebWorkResultSupport.execute(WebWorkResultSupport.java:109)rn at com.opensymphony.xwork.DefaultActionInvocation.executeResult(DefaultActionInvocation.java:258)rn at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:182)rn at com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:35)rn at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:164)rn at com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:35)rn at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:164)rn at com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:35)rn at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:164)rn at com.opensymphony.xwork.DefaultActionProxy.execute(DefaultActionProxy.java:116)rn at com.opensymphony.webwork.dispatcher.ServletDispatcher.serviceAction(ServletDispatcher.java:272)rn at com.opensymphony.webwork.dispatcher.ServletDispatcher.service(ServletDispatcher.java:239)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)rn at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:225)rn at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:127)rn at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:230)rn at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)rn at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)rn at com.opensymphony.webwork.lifecycle.RequestLifecycleFilter.doFilter(RequestLifecycleFilter.java:67)rn ] Servlet failed with Exceptionrnjava.lang.IllegalStateException: Response already committedrn at weblogic.servlet.internal.ServletResponseImpl.sendError(ServletResponseImpl.java:574)rn at com.opensymphony.webwork.dispatcher.ServletDispatcher.sendError(ServletDispatcher.java:396)rn at com.opensymphony.webwork.dispatcher.ServletDispatcher.serviceAction(ServletDispatcher.java:282)rn at com.opensymphony.webwork.dispatcher.ServletDispatcher.service(ServletDispatcher.java:243)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)rn Truncated. see log file for complete stacktrace
为什麽会出现java.io.IOException: Connection reset by peer的错误
我是在向自己建立的HttpURLConnection的OutputStream中写数据的途中发生这种错误的,也就是说报错之前已经写成功了若干个字节。rn程序运行期间并无其他操作。rnrnjava.io.IOException: Connection <em>reset</em> by <em>peer</em>rn at com.netscape.server.http.servlet.NSServletSession.write(NSServletSession.java, Compiled Code)rn at com.netscape.server.http.servlet.NSServletOutputStream.flushPrivate(NSServletOutputStream.java, Compiled Code)rn at com.netscape.server.http.servlet.NSServletOutputStream.write(NSServletOutputStream.java, Compiled Code)
关于tomcat“java.net.SocketException: Connection reset by peer: socket write error”的错误
我这是tomcat+oraclern后台取数据放入页面时,随着点击次数越高,页面显示越来越慢,到最后干脆就是一白页了,后台就报一下面这个错误在:rnClientAbortException: java.net.SocketException: Connection <em>reset</em> by <em>peer</em>: 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我应该怎么解决啊?我在网上查了很多,但都没给出一个确切的解决方法啊。
clone代码库时显示:中止: 失败: Connection reset by peer 的解决方法
今天在clone 代码时,老是提示:中止: 失败: Connection <em>reset</em> by <em>peer</em> 弄的我心烦以乱的,当时用的是Mercurial,怎么查也解决不了,命令为: hg clone https://code.google.com/p/XXXXX/ XXXXX 后来突然想到,把https中的s去掉,解决了........... 转载于:htt...
Netty java.io.IOException: Connection reset by peer 大神们咋处理的?
java.io.IOException: Connection <em>reset</em> by <em>peer</em>rn at sun.nio.ch.FileDispatcherImpl.read0(Native Method)rn at sun.nio.ch.SocketDispatcher.read(SocketDispatcher.java:39)rn at sun.nio.ch.IOUtil.readIntoNativeBuffer(IOUtil.java:223)rn at sun.nio.ch.IOUtil.read(IOUtil.java:192)rn at sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:380)rn at io.netty.buffer.PooledUnsafeDirectByteBuf.setBytes(PooledUnsafeDirectByteBuf.java:288)rn at io.netty.buffer.AbstractByteBuf.writeBytes(AbstractByteBuf.java:1098)rn at io.netty.channel.socket.nio.NioSocketChannel.doReadBytes(NioSocketChannel.java:350)rn at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:112)rn at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:544)rn at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:485)rn at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:399)rn at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:371)rn at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:742)rn at io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:145)rn at java.lang.Thread.run(Thread.java:745)rn服务端发送了数据,显示发送成功!但是客户端没有收到。并且出现了异常!
connection reset by peer"这是啥意思??请指教!!">中彩了:"com.caucho.vfs.ClientDisconnectException: connection reset by peer"这是啥意思??请指教!!
说一下环境:winxp,mysql 1.4,resin 3.0.3rnrn写了个update的更新SQL语句,显示更新OK,但是还出现了一个"com.caucho.vfs.ClientDisconnectException: <em>connection</em> <em>reset</em> by <em>peer</em>"的提示,并且实际上更新没有成功!!!rn直接在mysql的命令行方式下执行该update语句,执行正常!rnrn这是啥意思??仔细看了好几遍也没找出什么毛病!郁闷!!rnrn请各位指教一下!!rn
Connection reset by peer: socket write error怎么解决?急急
08:29:22,717 WARN JDBCExceptionReporter:71 - SQL Error: 17002, SQLState: nullrn08:29:22,733 ERROR JDBCExceptionReporter:72 - Io 异常: Connection <em>reset</em> by <em>peer</em>: socket write errorrnorg.springframework.orm.hibernate3.HibernateJdbcException: JDBC exception on Hibernate data access; nested exception is org.hibernate.exception.GenericJDBCException: could not execute queryrnCaused by: org.hibernate.exception.GenericJDBCException: could not execute queryrn at org.hibernate.exception.SQLStateConverter.handledNonSpecificException(SQLStateConverter.java:103)rn at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:91)rn at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43)rn at org.hibernate.loader.Loader.doList(Loader.java:2147)rnrn08:29:22,780 ERROR JDBCTransaction:124 - JDBC commit failedrnjava.sql.SQLException: Io 异常: Connection <em>reset</em> by <em>peer</em>: socket write error
jsp文件下载问题:Connection reset by peer: socket write error
我用以下方法实现资源下载功能:rnrn首先是一个客户端JSP页面,显示可下载的资源列表,当用户点击某个资源是,传递一个唯一的资源编号到Action,在数据库中读取该资源的url,然后下载次数+1,然后把url放到一个request里面,再跳到一个JSP页面:rnrn[code=HTML]rnrnrnrnrn[/code]rnrn这时候,可以下载资源了,但是我发现点击[color=#FF0000]某些资源[/color],弹出保存框,并且[color=#FF0000]取消保存[/color]的时候,控制台输出如下错误:rnrn[code=Java]rn2009-8-26 22:06:58 org.apache.catalina.core.ApplicationDispatcher invokern严重: Servlet.service() for servlet jsp threw exceptionrnjava.net.SocketException: Connection <em>reset</em> by <em>peer</em>: 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:56)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)rn2009-8-26 22:06:58 org.apache.catalina.core.StandardWrapperValve invokernrn[/code]rnrn有谁对这个错误了解的吗??有解决方案吗??
“Operation now in progress”错误和“Connection reset by peer”错误
两个网络程序,一个server运行在solaris下,一个client运行在Linux下rn一直都运行得好好的。rn刚才突然有一段时间,新运行的client连接server时出现rn“Operation now in progress”错误和“Connection <em>reset</em> by <em>peer</em>”错误rn检查当时的情况,其他已在运行的client并没有受到影响。rn曾经试过用旧版的程序替换,发现故障消失,rn再用出现故障的版本来测试,发现也恢复正常rnrn想知道rn“Operation now in progress”错误和“Connection <em>reset</em> by <em>peer</em>”错误rn这两个错误在什么情况下会发生。
Connection reset by peer: socket write error 错误如何解决?
Apache Tomcat/4.1.30 - Error reportHTTP Status 500 - rnrnrnrntype Exception reportrnmessage rndescription The server encountered an internal error () that prevented it from rnfulfilling this request.rnexception rnorg.apache.jasper.JasperException: [Microsoft][SQLServer 2000 Driver for JDBC]Connection <em>reset</em> by <em>peer</em>: socket write errorrn at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:254)rn at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)rn at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)rn at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)rn at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)rn at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)rn at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)rn at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)rn at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)rn at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)rn at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)rn at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2422)rn at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)rn at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)rn at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)rn at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)rn at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:163)rn at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)rn at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)rn at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)rn at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)rn at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)rn at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)rn at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)rn at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:199)rn at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:828)rn at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:700)rn at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:584)rn at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)rn at java.lang.Thread.run(Unknown Source)rnroot cause rnjava.lang.RuntimeException: [Microsoft][SQLServer 2000 Driver for JDBC]Connection <em>reset</em> by <em>peer</em>: socket write errorrn at com.evision.manager.DBManager.getData(DBManager.java:35)rn at com.evision.table.bean.TableItem.loadFromDatabase(TableItem.java:85)rn at com.evision.table.bean.TableItem.(TableItem.java:40)rn at com.evision.sinopec.newsclass.NewsClassItem.(NewsClassItem.java:33)rn at com.evision.sinopec.newsclass.NewsClassBean.getItem(NewsClassBean.java:64)rn at com.evision.sinopec.newsno.NewsNoEntity.getTopNewsClassNewsNo(NewsNoEntity.java:33)rn at com.evision.sinopec.vod.web.news.NewsWebAgent.getNewsNos(NewsWebAgent.java:843)rn at com.evision.sinopec.vod.web.news.NewsListImpl.setNewsNoList(NewsListImpl.java:184)rn at com.evision.sinopec.vod.web.news.NewsListImpl.goSubPage(NewsListImpl.java:130)rn at org.apache.jsp.vodNewsList_jsp._jspService(vodNewsList_jsp.java:273)rn at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)rn at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:210)rn at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)rn at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)rn at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)rn at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)rn at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)rn at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)rn at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)rn at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)rn at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)rn at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)rn at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2422)rn at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)rn at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)rn at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)rn at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)rn at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:163)rn at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)rn at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)rn at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)rn at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)rn at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)rn at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)rn at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)rn at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:199)rn at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:828)rn at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:700)rn at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:584)rn at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)rn at java.lang.Thread.run(Unknown Source)rnrnrnrnApache Tomcat/4.1.30
这个问题Connection reset by peer: socket write error
请教各位大侠,这是怎么回事,我用的jdbc,jtds 直连数据库,向ms sql2000数据库中的rntext类型字段写入140M数据造成的,我该怎么解决!!
关于“ Connection reset by peer: socket write error”错误
我最近做了一个论坛程序,发现一个奇怪的现象:发帖子的时候,有时会出现一个帖子连发两遍的情况,即数据库里会有两条记录。rnrn我发现一旦出现这种情况,服务器就会打印如下信息:rnrn2002-08-28 01:31:48 - Ctx( /newbbs ): IOException in: R( /newbbs + /post_ok.jsp + null) Connection <em>reset</em> by <em>peer</em>: socket write errorrnrn2002-08-28 01:31:48 - Ctx( /newbbs ): IOException in: R( /newbbs + /post_ok.jsp + null) Connection <em>reset</em> by <em>peer</em>: socket write errorrnrn请问为什么?rn我的开发环境:tomcat 3.2 /mysql/服务器在WIN2000上,数据库在LINUX上rnrn===========================rnJSP页面插入语句:rnrn//插入froum表,记录发帖rnrnrnDBconnBean.openConnection();rnrn……rnrnString SQL1 = "insert into forum(board,boardname,bq,UID,name,title,detail,sign,artsize,msg_inform,time,lasttime,ip,vtime,new,nickname) values ('"+ board +"','"+ boardsname +"','"+ bq +"','"+ ID +"','"+ name +"','"+ title +"','"+ detail +"','"+ sign_detail +"','"+ artsize +"','"+ msg_inform +"',now(),now(),'"+ request.getRemoteAddr() +"','"+ vtime +"','1','"+ nick +"')";rnrnDBconnBean.executeQuery(SQL1);rnrn……rnrn===============================rnDbConnection.java代码rnrnrnrnimport java.util.*;rnimport java.sql.*;rnimport java.io.*;rnrnpublic class DbConnectionrn Connection conn = null;rn Statement stmt = null;rn ResultSet rset = null;rnrn public DbConnection()rn rnrn /************************************************rn * openConnectionrn * read file "db.properties"rn ************************************************/rn public boolean openConnection()rn Properties prop = new Properties();rn tryrn InputStream is = getClass().getResourceAsStream("db.properties");rn prop.load(is);rn if(is != null) is.close();rn catch(IOException e)rn System.out.println("[DbConnection] Open db.properties File, Error!");rn rnrn String jdbc = prop.getProperty("driver");rn String uri = prop.getProperty("url");rnrn //System.out.println("jdbc=[" + jdbc + "]");rn //System.out.println("uri=[" + uri + "]");rnrn tryrn Class.forName(jdbc).newInstance();rn catch(ClassNotFoundException e)rn System.out.println("JDBC login, Error!@" + e.getMessage());rn return false;rn catch (Exception e)rn System.err.println("Unable to load driver!");rn e.printStackTrace();rn rnrn tryrn this.conn = DriverManager.getConnection (uri);rn catch(SQLException e)rn System.out.println("Generate Connection, Error!" + e.getMessage());rn return false;rn rn return true;rnrn rnrnrn /*************************************************rn * executeQuery and executeUpdatern * query and update DBrn *************************************************/rn public ResultSet executeQuery(String query) throws SQLExceptionrn stmt = conn.createStatement();rn rset = stmt.executeQuery(query);rn return rset;rn rn rnrn public void executeUpdate(String query) throws SQLExceptionrn stmt = conn.createStatement();rn stmt.executeUpdate(query);rn if(stmt != null) stmt.close();rn rnrn public void intodb(String query,String title) throws SQLExceptionrn stmt = conn.createStatement();rn System.out.println("=================="+title+"==================");rn stmt.executeUpdate(query);rn System.out.println("******************"+title+"******************"); rn if(stmt != null) stmt.close();rn rn rn public void close() throws SQLExceptionrn if(conn != null) conn.close();rn if(rset != null) rset.close();rn if(stmt != null) stmt.close();rn rnrn protected void finalize() throws Throwablern close();rn rnrn public static void main(String[] args)rn //Design for test purpose.rn DbConnection dc = new DbConnection();rn System.out.println(dc.openConnection());rn rnrn
Weblogic 5.1有时出现connection reset by peer的错误
Weblogic 5.1有时出现<em>connection</em> <em>reset</em> by <em>peer</em>的错误,好象对系统无不利影响,如何解决?
SSH连接阿里云错误:Connection reset by peer解决
SSH连接阿里云的ECS服务器centos 7报错: OpenSSH_7.2p2 Ubuntu-4ubuntu2.2, OpenSSL 1.0.2g  1 Mar 2016 debug1: Reading configuration data /etc/ssh/ssh_config debug1: /etc/ssh/ssh_config line 19: Applying options f
ClientAbortException: java.net.SocketException: Connection reset by peer: socket write error
这个异常 ClientAbortException: java.net.SocketException: Connection <em>reset</em> by <em>peer</em>: socket write errorrn是什么意思啊?谁能帮我解决阿? 这个问题快折磨死我了!rn我做了个权限管理rn前台为rn姓名 权限1 权限2 rn张三 1 1 (1代表无权限,0有无权限)rn李四 0 0rnrn问题是我如果在页面设置权限1或权限2为相反(1变0,0变1),数据库里改变了!但是当我以另一个用户名登陆这时数据库里为rn姓名 权限1 权限2rn张三 0 0 rn李四 1 1rnrn但是jsp页面仍然是rn姓名 权限1 权限2 rn张三 1 1 (1代表无权限,0有无权限)rn李四 0 0rnrn经过好多次刷新就偶尔会和数据库一致rnrn姓名 权限1 权限2rn张三 0 0 rn李四 1 1rnrn权限我在页面用checkbox实现 如果为0就打勾,如果为1就不打勾rn具体代码rn rn rn IDrn USERNAMErn EDITrn ROLE-INrn ROLE-SYSrn DELETErn rn rn < staffs.size(); i++)rn rn StaffEx staff1 = (StaffEx)staffs.get(i);rn %>rn rn rn rn Editrn rn rn rn rn rn rn rn rn rn rn rn rn Deletern rn rn
java itext导出报Connection reset by peer: socket write error
[code=Java]rnpublic static void createReport(HttpServletRequest request,rn HttpServletResponse response, List list) throws Exceptionrn String title = null;rn if(list.size() != 0)rn title = list.get(list.size() - 1).getCreateDate() + " ~ " + list.get(0).getCreateDate() + "日志";rn rn System.out.println(title);rn //设置文件响应信息rn String showFileName =URLEncoder.encode(title + ".doc", "UTF-8");rn showFileName = new String(showFileName.getBytes("iso8859-1"), "gb2312");rn //定义输出类型rn response.<em>reset</em>();rn response.setContentType("application/vnd.ms-word;charset=utf-8");rn response.setHeader("Pragma", "public");rn response.setHeader("Cache-Control", "max-age=30");rn response.setHeader("Content-disposition", "attachment; filename="+ new String(showFileName.getBytes("gb2312"), "iso8859-1"));rn Document doc=new Document(PageSize.A4,50,50,50,50);rn ByteArrayOutputStream byteArrayOutputStream=new ByteArrayOutputStream();rn RtfWriter2.getInstance(doc, byteArrayOutputStream);rn doc.open();rn rn //添加标题rn Paragraph paragraph=new Paragraph(title,ReportFontFactory.getFontChinese(Font_Type.TITLE));rn paragraph.getFont().setColor(230, 20, 220);rn paragraph.getFont().setSize(18);rn paragraph.setAlignment(Paragraph.ALIGN_CENTER);rn doc.add(paragraph);rnrn for(Diary d : list)rn doc.add(new Paragraph());rn Paragraph p = new Paragraph(" 标题:" + d.getTitle()+" 类型:" + d.getType()+" 天气:" + d.getWeather() +" 日期:" + d.getCreateDate());rn p.getFont().setStyle(Font.BOLD);rn p.getFont().setColor(100, 0, 0);rn doc.add(p);rn doc.add(new Paragraph(" " + d.getContent()));rn rn doc.close();rn ServletOutputStream outputStream=response.getOutputStream();rn byteArrayOutputStream.writeTo(outputStream);rn outputStream.flush();rn outputStream.close();rn rn[/code]
wget下出现Read error(Connection reset by peer)问题
一台国外的VPS,上面挂了一个请求跳转服务,就是将请求跳转到国内的一台服务器中。rn一开始的时候服务正常,但是当请求多的时候,就会出现跳转失败,就是不能够请求跳转到国内服务器中。rn这个时候使用wget 的方式,会提示 "HTTP request sent, awaiting response... Read error (Connection <em>reset</em> by <em>peer</em>) in headers." 但是国内的服务器却可以收到这条请求的日志信息。rn请求偶尔会成功,但是失败的次数更多。rnrn查阅过一些资料,已经做了以下修改,但是未有效果:rn1.文件数限制。rn 文件数调整到100001(ulimit -n下查看) 和 187694(cat /proc/sys/fs/file-max下查看)rn2.网络内核对TCP连接。rn 用了这样的一份配置(修改/etc/sysctl.conf)rn[code=text]net.ipv4.ip_local_port_range = 1024 65536rnnet.core.rmem_max=16777216rnnet.core.wmem_max=16777216rnnet.ipv4.tcp_rmem=4096 87380 16777216rnnet.ipv4.tcp_wmem=4096 65536 16777216rnnet.ipv4.tcp_fin_timeout = 10rnnet.ipv4.tcp_tw_recycle = 1rnnet.ipv4.tcp_timestamps = 0rnnet.ipv4.tcp_window_scaling = 0rnnet.ipv4.tcp_sack = 0rnnet.core.netdev_max_backlog = 30000rnnet.ipv4.tcp_no_metrics_save=1rnnet.core.somaxconn = 262144rnnet.ipv4.tcp_syncookies = 0rnnet.ipv4.tcp_max_orphans = 262144rnnet.ipv4.tcp_max_syn_backlog = 262144rnnet.ipv4.tcp_synack_retries = 2rnnet.ipv4.tcp_syn_retries = 2[/code]rnrn也尝试更换过VPS服务器(都是使用的centos系统,部署的是nodejs服务),但是请求多的时候,也会出现上述的错误情况。rn国内的服务器也已经关闭了防火墙,服务应该是正常的。rn目前我的猜测是并发的情况导致,但是不知道要修改哪个服务器的哪些配置rnrn请求各路大神指点一下还会是什么原因造成的错误。
关 于 “ Connection reset by peer: socket write error”错误
我最近做了一个论坛程序,发现一个奇怪的现象:发帖子的时候,有时会出现一个帖子连发两遍的情况,即数据库里会有两条记录。rnrn我发现一旦出现这种情况,服务器就会打印如下信息:rnrn2002-08-28 01:31:48 - Ctx( /newbbs ): IOException in: R( /newbbs + /post_ok.jsp + null) Connection <em>reset</em> by <em>peer</em>: socket write errorrnrn2002-08-28 01:31:48 - Ctx( /newbbs ): IOException in: R( /newbbs + /post_ok.jsp + null) Connection <em>reset</em> by <em>peer</em>: socket write errorrnrn请问为什么?rn我的开发环境:tomcat 3.2 /mysql/服务器在WIN2000上,数据库在LINUX上rnrn===========================rnJSP页面插入语句:rnrn//插入froum表,记录发帖rnrnrnDBconnBean.openConnection();rnrn……rnrnString SQL1 = "insert into forum(board,boardname,bq,UID,name,title,detail,sign,artsize,msg_inform,time,lasttime,ip,vtime,new,nickname) values ('"+ board +"','"+ boardsname +"','"+ bq +"','"+ ID +"','"+ name +"','"+ title +"','"+ detail +"','"+ sign_detail +"','"+ artsize +"','"+ msg_inform +"',now(),now(),'"+ request.getRemoteAddr() +"','"+ vtime +"','1','"+ nick +"')";rnrnDBconnBean.executeQuery(SQL1);rnrn……rnrn===============================rnDbConnection.java代码rnrnrnrnimport java.util.*;rnimport java.sql.*;rnimport java.io.*;rnrnpublic class DbConnectionrn Connection conn = null;rn Statement stmt = null;rn ResultSet rset = null;rnrn public DbConnection()rn rnrn /************************************************rn * openConnectionrn * read file "db.properties"rn ************************************************/rn public boolean openConnection()rn Properties prop = new Properties();rn tryrn InputStream is = getClass().getResourceAsStream("db.properties");rn prop.load(is);rn if(is != null) is.close();rn catch(IOException e)rn System.out.println("[DbConnection] Open db.properties File, Error!");rn rnrn String jdbc = prop.getProperty("driver");rn String uri = prop.getProperty("url");rnrn //System.out.println("jdbc=[" + jdbc + "]");rn //System.out.println("uri=[" + uri + "]");rnrn tryrn Class.forName(jdbc).newInstance();rn catch(ClassNotFoundException e)rn System.out.println("JDBC login, Error!@" + e.getMessage());rn return false;rn catch (Exception e)rn System.err.println("Unable to load driver!");rn e.printStackTrace();rn rnrn tryrn this.conn = DriverManager.getConnection (uri);rn catch(SQLException e)rn System.out.println("Generate Connection, Error!" + e.getMessage());rn return false;rn rn return true;rnrn rnrnrn /*************************************************rn * executeQuery and executeUpdatern * query and update DBrn *************************************************/rn public ResultSet executeQuery(String query) throws SQLExceptionrn stmt = conn.createStatement();rn rset = stmt.executeQuery(query);rn return rset;rn rn rnrn public void executeUpdate(String query) throws SQLExceptionrn stmt = conn.createStatement();rn stmt.executeUpdate(query);rn if(stmt != null) stmt.close();rn rnrn public void intodb(String query,String title) throws SQLExceptionrn stmt = conn.createStatement();rn System.out.println("=================="+title+"==================");rn stmt.executeUpdate(query);rn System.out.println("******************"+title+"******************"); rn if(stmt != null) stmt.close();rn rn rn public void close() throws SQLExceptionrn if(conn != null) conn.close();rn if(rset != null) rset.close();rn if(stmt != null) stmt.close();rn rnrn protected void finalize() throws Throwablern close();rn rnrn public static void main(String[] args)rn //Design for test purpose.rn DbConnection dc = new DbConnection();rn System.out.println(dc.openConnection());rn rnrnrn
后台报错Connection reset by peer: socket write error
[Microsoft][SQLServer 2000 Driver for JDBC]Connection <em>reset</em> by <em>peer</em>: socket write errorrnrn我的系统是MS SQL SERVER 2000做的数据库,采用tomcat的dataSource做的连接池,问题是:rn我对数据库进行还原操作,成功后,重新启动数据库服务器!然后跳转到登录页面,而这时就会报 以下错误!rnjava.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC]Connection <em>reset</em> by <em>peer</em>: socket write errorrnat com.microsoft.jdbc.base.BaseExceptions.createException(Unknown Source)rnat com.microsoft.jdbc.base.BaseExceptions.getException(Unknown Source)rnat com.microsoft.jdbc.base.BaseExceptions.getException(Unknown Source)rnat com.microsoft.jdbc.sqlserver.tds.TDSRPCRequest.submitRequest(Unknown Source)rnat com.microsoft.jdbc.sqlserver.tds.TDSCursorRequest.openCursor(Unknown Source)rnat com.microsoft.jdbc.sqlserver.SQLServerImplStatement.execute(Unknown Source)rnat com.microsoft.jdbc.base.BaseStatement.commonExecute(Unknown Source)rnat com.microsoft.jdbc.base.BaseStatement.executeQueryInternal(Unknown Source)rnat com.microsoft.jdbc.base.BaseStatement.executeQuery(Unknown Source)rnat org.apache.tomcat.dbcp.dbcp.DelegatingStatement.executeQuery(DelegatingStatement.java:208)rnat xnc.db.query.DBQuery.getRs(DBQuery.java:60)rnat org.apache.jsp.login_jsp._jspService(login_jsp.java:145)rnat org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)rnat javax.servlet.http.HttpServlet.service(HttpServlet.java:803)rnat org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:393)rnat org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)rnat org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)rnat javax.servlet.http.HttpServlet.service(HttpServlet.java:803)rnat org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)rnat org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rnat org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)rnat org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)rnat org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)rnat org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)rnat org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)rnat org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:261)rnat org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)rnat org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:581)rnat org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)rnat java.lang.Thread.run(Unknown Source)rn报此错误的同时,数据库服务器是打开状态,即使我重新启动了 数据库服务器,依然会报此错误,我重新打开一个浏览器页,也一样报此错误!rn只有当我将TOMCAT重新启动后,才访问正常!rnrn这是为什么呢?难道连接池不能监听到数据库服务器的状态?必须重新对连接池初始化?非要重启tomcat?请高手指点!
[SQLServer 2000 Driver for JDBC]Connection reset by peer: socket write error
tomcat6.0 + sql2000rnrn刚开始运行没有报错,运行一段时间后,就报下面的错误rn重启tomcat后,又可以正确运行一段时间rn请问要怎么解决呀?rnrn错误提示:rn[ERROR][2009-09-07 09:48:37, 1252288117109][Microsoft][SQLServer 2000 Driver for JDBC]Connection <em>reset</em> by <em>peer</em>: socket write errorrncom.microsoft.jdbc.base.BaseExceptions.createException(Unknown Source)rncom.microsoft.jdbc.base.BaseExceptions.getException(Unknown Source)rncom.microsoft.jdbc.base.BaseExceptions.getException(Unknown Source)rncom.microsoft.jdbc.sqlserver.tds.TDSExecuteRequest.submitRequest(Unknown Source)rncom.microsoft.jdbc.sqlserver.SQLServerImplStatement.execute(Unknown Source)rncom.microsoft.jdbc.base.BaseStatement.commonExecute(Unknown Source)rncom.microsoft.jdbc.base.BaseStatement.executeQueryInternal(Unknown Source)rncom.microsoft.jdbc.base.BaseStatement.executeQuery(Unknown Source)rncom.util.DBjdbc.querySQL(DBjdbc.java:74)rncom.service.StudyService.turnm(StudyService.java:54)rncom.servlet.StudyServlet.doGet(StudyServlet.java:51)rncom.servlet.StudyServlet.doPost(StudyServlet.java:162)rnjavax.servlet.http.HttpServlet.service(HttpServlet.java:637)rnjavax.servlet.http.HttpServlet.service(HttpServlet.java:717)rnorg.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)rnorg.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rncom.filter.SetEncodingFilter.doFilter(SetEncodingFilter.java:23)rnorg.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)rnorg.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rnorg.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)rnorg.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)rnorg.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)rnorg.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)rnorg.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)rnorg.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)rnorg.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:190)rnorg.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:291)rnorg.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:769)rnorg.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:698)rnorg.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:891)rnorg.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:690)rnjava.lang.Thread.run(Unknown Source)rn
转--如何解决connection reset by peer(参考使用)
转--如何解决<em>connection</em> <em>reset</em> by <em>peer</em>(参考使用) 2010-04-28 19:33 录制c/s结构下的winsocket通信,在vuser_ini中创建连接(lrs_create_socket),在action中发送数据(send),在vuser_end中关闭连接(lrs_close_socket),但是现在的问题是在使用controlle
关于java.net.SocketException: Connection reset by peer: socket write error的问题请教!
大家好,本人在开发首页的地图导航显示数据时,遇到一些关于 rnException Processing ErrorPage[errorCode=404, location=/building.jsp]rnClientAbortException: java.net.SocketException: Connection <em>reset</em> by <em>peer</em>: socket write error的问题。rn本功能大概是:在鼠标移动到某个城市时,将显示一个从数据库读取的城市生产总额和项目数等信息。rn本人用了AJAX进行异步交互读取数据来显示。虽然能成功显示,但是在ECLIPSE的窗口总是会出现错误如上所示,经上网查后发现是可能自己在客户端做测试时用鼠标移动到下个城市太快的缘故吧,导致客户端不停刷新,造成无用的进程,虽然数据能正常显示,但我想请教各位高手有什么好的解决方案使后台不会有Connection <em>reset</em> by <em>peer</em>: socket write error提示出现,谢谢!rnrn以下是我写的一些代码:rnindex.jsp:rn//执行请求发送rnfunction send_request(url,strsearchoose) rn if (url != "") rn // 获取一个XMLHttpRequest实例rn var req = newXMLHttpRequest();rn //alert(req);rn // 设置用来 从请求对象 接收回调通知 的句柄函数 rn var handlerFunction = processRequest(req,strsearchoose);rn req.onreadystatechange = handlerFunction;rn // 打开一个联接到XXXservlet的HTTP POST联接rn // 第三个参数表示请求是异步的rn req.open("GET", url, true);rn // 指示请求体包含form数据rnreq.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");rn req.send(null);rn else rn alert("");rn rn rn/*初始化对象并发出XMLHttpRequest请求*/rnfunction newXMLHttpRequest() rn var xmlreq = false;rn if (window.XMLHttpRequest) rn // 在非Microsoft浏览器中创建XMLHttpRequest对象rn xmlreq = new XMLHttpRequest();rn else rn if (window.ActiveXObject) rn //通过MS ActiveX创建XMLHttpRequestrn try rn // 尝试按新版InternetExplorer方法创建rn xmlreq = new ActiveXObject("Msxml2.XMLHTTP");rn rn catch (e1) rn // 创建请求的ActiveX对象失败rn try rn // 尝试按老版InternetExplorer方法创建rn xmlreq = new ActiveXObject("Microsoft.XMLHTTP");rn rn catch (e2) rn // 不能通过ActiveX创建XMLHttpRequestrn rn rn rn rn return xmlreq;rnrnfunction processRequest(req,strsearchoose) rn return function () rn // 如果请求的状态是“完成”rn if (req.readyState == 4) rn // 检查是否成功接收了服务器响应rn if (req.status == 200) rn // 将载有响应信息的XML传递到处理函数rn //responseXmlHandler(req.responseXML);rn //将传回的信息当字符串使用rnif(strsearchoose=="0")rn document.getElementById("report").innerHTML = req.responseText;rn //alert(req);rn elsern document.getElementById("projectlist").innerHTML = req.responseText;rn rn else rn // 有HTTP问题发生rn alert("" + req.status);rn return false;rn rn rn ;rnrnrnfunction showreport(id,name)//使用此方法来调用AJAX框架进行发送请求rn var strid=id;rn var strname=name;rn var stryear=document.getElementById("year").value;rn var strmonth=document.getElementById("month").value;rn var strsearchoose=0;rn //alert(strid+"--"+name+"--"+stryear+"--"+strmonth);rnvar url="ajaxsearch.jsp?searchoose="+strsearchoose+"&statareaid="+strid+"&statareaname="+escape(encodeURI(strname))+"&year="+stryear+"&month="+strmonth;rn //alert(url);rn send_request(url,strsearchoose);//调用上面的请求方法rn rnajaxsearch.jsp:rn
关于Connection reset by peer: socket write error 的问题
在web 开发中,为了防止某文件资源没有找到,服务器要报404错误,我在web.xml 中配置了rn rn java.lang.NullPointerException rn /notFileFound.jsp rn rnrn rn 404 rn /notFileFound.jsp rn rnrn可以正常跳转到notFileFound.jsp 可以正常操作,rn但会出现异常:如下:rn2008-4-10 17:35:57 org.apache.catalina.core.StandardHostValve statusrn警告: Exception Processing ErrorPage[errorCode=404, location=/notFileFound.jsp]rnClientAbortException: java.net.SocketException: Connection <em>reset</em> by <em>peer</em>: socket write errorrn at org.apache.catalina.connector.OutputBuffer.realWriteBytes(OutputBuffer.java:366)rn at org.apache.tomcat.util.buf.ByteChunk.flushBuffer(ByteChunk.java:403)rn at org.apache.catalina.connector.OutputBuffer.doFlush(OutputBuffer.java:311)rn at org.apache.catalina.connector.OutputBuffer.flush(OutputBuffer.java:293)rn at org.apache.catalina.connector.Response.flushBuffer(Response.java:534)rn at org.apache.catalina.core.StandardHostValve.status(StandardHostValve.java:285)rn at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:136)rn at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)rn at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)rn at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)rn at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)rn at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)rn at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)rn at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)rn at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)rn at java.lang.Thread.run(Thread.java:595)rn
请问这是什么错误:Connection reset by peer: socket write error
请问这是什么错误:Connection <em>reset</em> by <em>peer</em>: socket write error ,请高手帮忙解释一下
[急]java.net.SocketException: Connection reset by peer: socket write error
要从一个被屏蔽的网站上下载一些东西,于是写了一个Servlet,将它传到了一台境外的服务器上.rn让这台服务器去下载指定的资源,然后再回传给我.相当于一个代理吧.rnrn[code=Java]public void doGet(HttpServletRequest request, HttpServletResponse response)rn throws ServletException, IOException rn String url = request.getParameter("url"); //得到要下载的资源的URL.rnrn if (!StringUtils.isNullOrEmpty(url)) rn System.out.println(url);rn URL u = new URL(url);rn URLConnection conn = u.openConnection();rnrn try ///把响应头设置成一样的.rn for (Map.Entry> m : conn.getHeaderFields()rn .entrySet()) rn if (m != null && m.getKey() != null && m.getValue() != nullrn && m.getValue().size() > 0) rn response.setHeader(m.getKey(), m.getValue().get(0));rn rn rn catch (Exception e) rn // TODO: handle exceptionrn e.printStackTrace();rn CommonLog.log.warn(e);rn rnrn InputStream in = conn.getInputStream(); //从 <em>connection</em>得到inputstreamrn OutputStream out = response.getOutputStream(); //得到向客户端的输出流rn try rn IOUtilsrn .write(conn.getInputStream(), responsern .getOutputStream()); //写数据.rn catch (Exception e) rn e.printStackTrace();rn // TODO: handle exceptionrn CommonLog.log.warn(e);rn if (in != null) rn in.close();rn rn if (out != null) rn out.close();rn rn rn rn [/code]rnrnIOUtils.write()代码如下:rnrn[code=Java] /**rn * 从input里面读取数据然后写入output,读完后自动关闭流。rn * @param input inputStreamrn * @param output outputStreamrn * */rn public static void write(InputStream input, OutputStream output)rn throws IOException rn write(input,output,true);rn rnrn /**rn * 自动从inputstream里面读数据,然后写到outputstream里面去。rn * @param input inputstreamrn * @param output outputstreamrn * @param close 读完后是否自动关闭流。rn * */rn public static void write(InputStream input, OutputStream output,boolean close)rn throws IOException rn byte[] b = new byte[1024];rn int len = input.read(b);rn while (len != -1) rn output.write(b, 0, len);rn len = input.read(b);rn rn rn output.flush();rn if (close) rn input.close(); rn output.close();rn rn [/code]rnrn将程序传到服务器上以后,在服务器上访问rnhttp://localhost:8080/test/down?url=http://www.xxx.com/z.ziprn可以下载成功.rnrn但是当远程访问的时候,就会出现rnjava.net.SocketException: Connection <em>reset</em> by <em>peer</em>: socket write errorrnrn假设服务器IP是2.2.2.2吧.rnrn访问rnhttp://2.2.2.2:8080/test/down?url=http://www.xxx.com/z.ziprn就会出现上面的那个错误.rn注意,我并没有关闭浏览器或者按停止按钮.只要一打上那个地址就会出错.rnrnrn错误发生在:rnrn[code=Java]output.write(b, 0, len);//执行这行代码的时候.[/code]rnrn具体的错误信息如下:rnrnrn[code=Java]ClientAbortException: java.net.SocketException: Connection <em>reset</em> by <em>peer</em>: socket write errorrn at org.apache.catalina.connector.OutputBuffer.realWriteBytes(OutputBuffer.java:366)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 com.joejoe.utils.IOUtils.write(IOUtils.java:62)rn at com.joejoe.utils.IOUtils.write(IOUtils.java:48)rn at com.tqsoft.wdys.other.getMegavideo.doGet(getMegavideo.java:79)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 com.joejoe.utils.web.CharSetFilter.doFilter(CharSetFilter.java:39)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)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)rnCaused by: java.net.SocketException: Connection <em>reset</em> by <em>peer</em>: 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 ... 27 more[/code]rnrn请问如何解决.谢谢.rn
strtus2 下载文件报Connection reset by peer: socket write error错误
使用Struts2自带的下载功能实现文件下载的时候rn可以正确的弹出对话框rn如果点击保存按钮下载文件rn那么就可以正常的下载rn不会报错rn但是如果点击取消按钮rn取消下载rn就会报Connection <em>reset</em> by <em>peer</em>: socket write error错误rn不知道这个问题该如何解决rn因为这个是Struts2在处理下载请求的时候弹出来的信息rn在哪里进行捕获以及进行处理都不知道
客户端登陆出现Connection reset by peer(只剩25分了..)
在android写了一个客户端登陆服务器,用手机登录时遇到问题。rn问题如下:rn[code=Java]rnhttpost = new HttpPost(Url);rnrnList nvps = new ArrayList();rnnvps.add(new BasicNameValuePair("username", userName));rnnvps.add(new BasicNameValuePair("password", password));rnrnhttpost.setEntity(new UrlEncodedFormEntity(nvps, HTTP.UTF_8));rnresponse = customerHttpClient.execute(httpost);rn[/code]rn执行到了最后一行代码就会报错:java.net.SocketException: Connection <em>reset</em> by <em>peer</em>rnrn补充说明:rn1.写在android程序中,用手机登陆,如果用户名密码都正确,则运行至最后一句时出现java.net.SocketException: Connection <em>reset</em> by <em>peer</em>错误;如果用户名密码错误,则response code为200,但是无法重定向,因为登陆失败了。 rn2.写在android程序中,用模拟器登陆,如果用户名密码都正确,返回response code为200,依然无法获取重定向链接 rn3.写在java程序里,response code为302,可以重定向,登陆成功。请问该如何解决rnrn附全部错误描述:rn11-03 15:27:15.159: WARN/System.err(16482): java.net.SocketException: Connection <em>reset</em> by <em>peer</em>rn11-03 15:27:15.169: WARN/System.err(16482): at org.apache.harmony.luni.platform.OSNetworkSystem.read(Native Method)rn11-03 15:27:15.169: WARN/System.err(16482): at dalvik.system.BlockGuard$WrappedNetworkSystem.read(BlockGuard.java:273)rn11-03 15:27:15.169: WARN/System.err(16482): at org.apache.harmony.luni.net.PlainSocketImpl.read(PlainSocketImpl.java:458)rn11-03 15:27:15.169: WARN/System.err(16482): at org.apache.harmony.luni.net.SocketInputStream.read(SocketInputStream.java:85)rn11-03 15:27:15.169: WARN/System.err(16482): at org.apache.http.impl.io.AbstractSessionInputBuffer.fillBuffer(AbstractSessionInputBuffer.java:103)rn11-03 15:27:15.169: WARN/System.err(16482): at org.apache.http.impl.io.AbstractSessionInputBuffer.readLine(AbstractSessionInputBuffer.java:191)rn11-03 15:27:15.169: WARN/System.err(16482): at org.apache.http.impl.conn.DefaultResponseParser.parseHead(DefaultResponseParser.java:82)rn11-03 15:27:15.169: WARN/System.err(16482): at org.apache.http.impl.io.AbstractMessageParser.parse(AbstractMessageParser.java:174)rn11-03 15:27:15.169: WARN/System.err(16482): at org.apache.http.impl.AbstractHttpClientConnection.receiveResponseHeader(AbstractHttpClientConnection.java:179)rn11-03 15:27:15.169: WARN/System.err(16482): at org.apache.http.impl.conn.DefaultClientConnection.receiveResponseHeader(DefaultClientConnection.java:235)rn11-03 15:27:15.169: WARN/System.err(16482): at org.apache.http.impl.conn.AbstractClientConnAdapter.receiveResponseHeader(AbstractClientConnAdapter.java:259)rn11-03 15:27:15.179: WARN/System.err(16482): at org.apache.http.protocol.HttpRequestExecutor.doReceiveResponse(HttpRequestExecutor.java:279)rn11-03 15:27:15.179: WARN/System.err(16482): at org.apache.http.protocol.HttpRequestExecutor.execute(HttpRequestExecutor.java:121)rn11-03 15:27:15.179: WARN/System.err(16482): at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:421)rn11-03 15:27:15.189: WARN/System.err(16482): at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:555)rn11-03 15:27:15.189: WARN/System.err(16482): at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:487)rn11-03 15:27:15.189: WARN/System.err(16482): at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:465)rn11-03 15:27:15.189: WARN/System.err(16482): at com.chengjun.sns.domain.MyHttpClient.LogState(MyHttpClient.java:70)rn11-03 15:27:15.199: WARN/System.err(16482): at com.chengjun.sns.Login.validateLocalLogin(Login.java:167)rn11-03 15:27:15.199: WARN/System.err(16482): at com.chengjun.sns.Login.access$12(Login.java:160)rn11-03 15:27:15.199: WARN/System.err(16482): at com.chengjun.sns.Login$LoginFailureHandler.run(Login.java:325)rn11-03 15:27:15.199: WARN/System.err(16482): at java.lang.Thread.run(Thread.java:1019)rn
tomcat 报 Connection reset by peer: socket write error
最近开发android调用web服务端, android 连接路由器,路由器与电脑,这个错误不是每天都有的,只是偶尔会出现一次rn但是出现一次之后就一直报这个错,关闭tomcat,重启电脑都没有用,这个错误在下一次tomcat启动起来依然报错,除非断网重启,路由器重启,这个错误就解决了.rnrn关键是这个错误不是常见,不能调试,出现的次数很少,但是一旦出现就一直报错.rn日志疯长.rn如何捕捉这个异常,以及这个异常是怎样产生的,rn首先说一下,一下几种没有可能:rn1.服务器响应了,客户端防火墙拦截了rn2.服务器的并发连接数超过了其承载量,服务器会将其中一些连接Down掉; rnrn
出现Connection reset by peer: socket write error后就无法连接
web服务tomcat+sql2000标准版rn并发人数15左右rn以前半年运行没有什么问题,现在这几天经常打不开页面,发现sql有阻塞,还发下有[size=18px][color=#FF0000]”[Microsoft][SQLServer 2000 Driver for JDBC]Connection <em>reset</em> by <em>peer</em>: socket write error“。[/color][/size]这段话是怎么引起的?
soap请求服务器报错 recvfrom failed: ECONNRESET (Connection reset by peer)
[img=https://img-bbs.csdn.net/upload/201501/07/1420602934_417705.png][/img][img=https://img-bbs.csdn.net/upload/201501/07/1420602942_597225.png][/img][img=https://img-bbs.csdn.net/upload/201501/07/1420602951_523306.png][/img][img=https://img-bbs.csdn.net/upload/201501/07/1420602961_349341.png][/img][img=https://img-bbs.csdn.net/upload/201501/07/1420602969_230872.png][/img]rn 小弟用的是Android soap,在上述图片中,有贴出底层请求的方式,rn 我所调用的接口,不是下载视频之类的数据,是告诉服务器,加载新数据,然后我在调用别的借口请求数据.但是现在请求让服务器加载新数据的接口,出现了上述图片中的错误,不知道如何解决,<em>求助</em>!rn 我现在把请求接口中,加了一个for循环,直接循环10次,出现的情况是,第1次,报这个错误,后9次请求成功,不知道为什么.特此<em>求助</em>.
求教 cygwin ssh 登录报错 Connection reset by peer
ssh 登录时出现如下情况rn$ ssh localhost -vvvrnOpenSSH_6.4, OpenSSL 1.0.1e 11 Feb 2013rndebug1: Reading configuration data /etc/ssh_configrndebug2: ssh_connect: needpriv 0rndebug1: Connecting to localhost [127.0.0.1] port 22.rndebug1: Connection established.rndebug3: Incorrect RSA1 identifierrndebug3: Could not load "/home/Administrator/.ssh/id_rsa" as a RSA1 public keyrndebug1: identity file /home/Administrator/.ssh/id_rsa type 1rndebug1: identity file /home/Administrator/.ssh/id_rsa-cert type -1rndebug1: identity file /home/Administrator/.ssh/id_dsa type -1rndebug1: identity file /home/Administrator/.ssh/id_dsa-cert type -1rndebug1: identity file /home/Administrator/.ssh/id_ecdsa type -1rndebug1: identity file /home/Administrator/.ssh/id_ecdsa-cert type -1rndebug1: Enabling compatibility mode for protocol 2.0rndebug1: Local version string SSH-2.0-OpenSSH_6.4rnssh_exchange_identification: read: Connection <em>reset</em> by <em>peer</em>rnrn--------------------------------------------------------------rn这个是登录时 -vvv 跟踪的所有信息,我重新配置过ssh,cygwin都卸载了重新安装过。但是都不管用,求教个位高手指点一下!
Linux连接总是报:connection reset by peer问题!!!程序退出的解决办法
求救:Linux连接总是报:<em>connection</em> <em>reset</em> by <em>peer</em>问题!!! 各位大哥:小弟我在Linux下写的服务程序,当压力很大(连接客户量多频繁、发送请求频繁)的时候,服务总是会部分连接报<em>connection</em> <em>reset</em> by <em>peer</em>错误,结果我的服务把它关闭!   查了部分资料,大部分是认为Linux有个tcp_wrap守护服务程序来管理tcp,默认值为一秒只能连一个上来。...
Connection reset by peer: JVM_recv in socket input stream read
访问oracle数据库时,为什么会出现这样的错误:rnjava.sql.SQLException: Io 异常: Connection <em>reset</em> by <em>peer</em>: JVM_recv in socket input stream readrn以及rn Exception in: R( + /Jsp1.jsp + null) - javax.servlet.ServletExceptionrn at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:459)rn ...rnrn请各位大虾帮忙
UML ROSE下载
Uml <br/> 的好帮手 相关下载链接:[url=//download.csdn.net/download/superfjj/169349?utm_source=bbsseo]//download.csdn.net/download/superfjj/169349?utm_source=bbsseo[/url]
微机原理与接口复习考试题下载
考试前老给的重点,相信对的复习肯定会有很大的帮助的。 认真看,取得高分是没有问题的! 相关下载链接:[url=//download.csdn.net/download/f872193883/1986432?utm_source=bbsseo]//download.csdn.net/download/f872193883/1986432?utm_source=bbsseo[/url]
常见视频格式的应用及注意事项下载
MPEG-1被广泛应用在 VCD 的制作和一些视频片段下载方面,其中最多的就是VCD——几乎所有VCD都是使用Mpge-1格式压缩的(*.dat格式的文件)。MPEG-1的压缩算法可以把一部 120 分钟长的电影(原始视频文件)压缩到1.2 GB左右大小。 相关下载链接:[url=//download.csdn.net/download/jiguonaic/3062917?utm_source=bbsseo]//download.csdn.net/download/jiguonaic/3062917?utm_source=bbsseo[/url]
相关热词 c#串口测试应用程序 c# 匹配 正则表达式 c#防止窗体重绘 c#读写txt文件 c#挖地雷源代码 c#弹框选项 c# 移除 队列 c# 密码写入配置文件 c# 获取可用内存大小 c# 嵌入excel编辑
我们是很有底线的