The underlying connection was closed: The connection was closed unexpectedly. [问题点数:20分,结帖人cymandhxl]

Bbs3
本版专家分:632
结帖率 100%
Bbs3
本版专家分:632
Bbs3
本版专家分:772
关于调用Web API时出现的错误“The underlying connection was closed: An unexpected error occurred on a send”
客户需求,要求调用他们的API来添加,查找,删除数据。前些时候写了一个测试程序,调用API是OK的,但是今天突然就出现了&quot;<em>The</em> <em>underlying</em> <em>connection</em> was <em>closed</em>: An unexpected error occurred on a send.&quot;的错误。但是的第一反应是账号信息过期了,因为是为了测试使用的,所以都是用的临时的信息。后来访问网站,发现还是可以访问的。所...
The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure
<em>The</em> <em>underlying</em> <em>connection</em> was <em>closed</em>: Could not establish trust relationship for the SSL/TLS secure channel 基础连接已经关闭: 未能为 SSL/TLS 安全通道建立信任关系 方法一: 1,先加入命名空间:    using System.Net.Secu
EX:The underlying connection was closed: Could not
为什么80%的码农都做不了架构师?&gt;&gt;&gt; ...
connection is closed
各位同行:rnrn 我的系统比较烂,计算工资的速度很慢,结果在计算的过程中出现了该页无法显示:rnrn 服务器报错为:rnrn java.lang.nullpointerException java.sql.sqlEXception :rnrn<em>connection</em> is <em>closed</em>
The connection is closed
请问,在页面打开得太多太快的时侯,有时会出现"<em>The</em> <em>connection</em> is <em>closed</em>"的警告,请问是为什么?
The underlying connection was closed: Unable to connect to the remote server
在发布版本,请高手解答,急等?
The underlying connection was closed:=========来者有分
rn HttpWebRequest request = (HttpWebRequest)WebRequest.Create("https://xxxx");rnrn报错如下:rnrn<em>The</em> <em>underlying</em> <em>connection</em> was <em>closed</em>: Could not establish trust relationship for the SSL/TLS secure channelrnrnrn在几个人机器上没这问题rnrn请问怎么跟踪这个问题?谢谢
微信退款出错:The underlying connection was closed
在本地测试的时候正常,发布到windows 2003的时候出现<em>The</em> <em>underlying</em> <em>connection</em> was <em>closed</em>: <em>The</em> <em>connection</em> was <em>closed</em> <em>unexpectedly</em>的错误rn这是请求的方法rnServicePointManager.ServerCertificateValidationCallback = new RemoteCertificateValidationCallback(CheckValidationResult);rn X509Certificate cer = new X509Certificate(certPath, certpwd);rn HttpWebRequest webrequest = (HttpWebRequest)HttpWebRequest.Create(url);rn webrequest.ClientCertificates.Add(cer);rn webrequest.Method = "post";rn using (Stream writeStream = webrequest.GetRequestStream())rn rn UTF8Encoding encoding = new UTF8Encoding();rn byte[] bytes = encoding.GetBytes(postData);rn writeStream.Write(bytes, 0, bytes.Length);rn rn HttpWebResponse webreponse = (HttpWebResponse)webrequest.GetResponse();rn Stream stream = webreponse.GetResponseStream();rn string resp = string.Empty;rn using (StreamReader reader = new StreamReader(stream))rn rn resp = reader.ReadToEnd();rn rn return resp;
[WebException: The underlying connection was closed: The message length limit was exceeded.]解决方法...
[WebException: <em>The</em> <em>underlying</em> <em>connection</em> was <em>closed</em>: <em>The</em> message length limit was exceeded.] System.Net.HttpWebRequest.GetResponse() response headers 最多 64 kb限制 .=-1;//...
HttpWebRequest: 访问微信接口报 连接关闭错误: The underlying connection was closed
参考:https://blog.csdn.net/wlanye/article/details/32137183 谢谢原文作者解决了我的问题。 我的是访问微信API接口一直报<em>The</em> <em>underlying</em> <em>connection</em> was <em>closed</em>。 试了各种方法: 方法1:ServicePointManager.SecurityProtocol |= SecurityProtocolTyp...
The underlying connection was closed错误
今天理IIS上Asp.net程序的所有报错日志,发现好报<em>The</em> <em>underlying</em> <em>connection</em> was <em>closed</em>: Unable to connect to the remote server. 于是搜了下,发现很多人遇到这个异常,可是却没有标准的解决方案,一般有一下几种。   1.如果用了代理,设置正确。 2.如果用了firewall,将firewall禁掉试试
The underlying connection was closed: A connection that was expected to be kept alive was closed"">解决"The underlying connection was closed: A connection that was expected to be kept alive was closed"
关于”<em>The</em> <em>underlying</em> <em>connection</em> was <em>closed</em>: A <em>connection</em> that was expected to be kept alive was <em>closed</em>”通常都在移动客户端,但是是有服务器端报送的,而且在客户端也不会经常报错,这只是一个偶尔会出现的问题,可以说是一个棘手的BUG,因此我的这个文章也只能决绝部分人的问题(针对手机客户端),如果调试还有问题,
dbcp 连接池 connection is closed
做单元测试时,数据库的<em>connection</em> 会自动关闭,项目使用的框架式springmvc+ibatis+mysql 数据连接池是用dbcp 。做单元测试时,如果有一个方法连接查询到数据库,第二个方法再连接查询就会报<em>connection</em> is <em>closed</em> 。
connection closed gracefully
在coldfusion bulider 这个RDS 的配置能测试通过。rn[img=http://img851.ph.126.net/I_-JAd6xMKEvRXDJ2tPJmw==/2719048275025503107.jpg][/img]rnrn而在coldfusion report builder 里配置的测试出现[color=#FF0000] <em>connection</em> <em>closed</em> gracefully[/color] 的错误rn[img=http://img612.ph.126.net/5yqyUXHU5Ing1b1nj_6geA==/1701797709194133621.jpg][/img]rnrn请问哪位大侠知道这是什么问题啊。rn<em>connection</em> <em>closed</em> gracefully 一般是因为什么呢。rn谢谢。
ORA-12537: TNS:connection closed
服务器操作系统:linuxrn数据库:oracle9.2.0rn客户端:win2000sp4rnrn服务器端:lisener,数据库已启动,本地可以使用,数据库端口1521rnlisener.ora:rnVIS =rn (ADDRESS_LIST =rn (ADDRESS= (PROTOCOL= IPC)(KEY= EXTPROCVIS))rn (ADDRESS= (PROTOCOL= TCP)(Host= server)(Port= 1521))rn )rnrnSID_LIST_VIS =rn (SID_LIST =rn (SID_DESC =rn (ORACLE_HOME= /orahome/server/9.2.0)rn (SID_NAME = VIS)rn )rn (SID_DESC =rn (SID_NAME = PLSExtProc)rn (ORACLE_HOME = /orahome/server/9.2.0)rn (PROGRAM = extproc)rn )rn )rnrnSTARTUP_WAIT_TIME_VIS = 0rnCONNECT_TIMEOUT_VIS = 10rnTRACE_LEVEL_VIS = OFFrnrnLOG_DIRECTORY_VIS = /orahome/server/9.2.0/network/adminrnLOG_FILE_VIS = VISrnTRACE_DIRECTORY_VIS = /orahome/server/9.2.0/network/adminrnTRACE_FILE_VIS = VISrnADMIN_RESTRICTIONS_VIS = OFFrnrnrnIFILE=/orahome/server/9.2.0/network/admin/listener_ifile.orarnrnrnrn客户端:连接数据库报错:‘ORA-12537: TNS:<em>connection</em> <em>closed</em>’rn客户端tnsname已经配置。rntnsname.ora:rnVIS=rn (DESCRIPTION=rn (ADDRESS=(PROTOCOL=tcp)(HOST=192.168.22.22)(PORT=1521))rn (CONNECT_DATA=rn (SERVICE_NAME=VIS)rn (INSTANCE_NAME=VIS)rn )rn )rnrn请问如何解决。rnrn
The connection is closed 的问题
当程序运行到:clob.Write(buffer,0,100); 提示:Invalid operation. <em>The</em> <em>connection</em> is <em>closed</em> 但我在该句前面加入 myCn.Open(); 又出错:Invalid operation. <em>The</em> <em>connection</em> is open rn/// rn ///oracle 对长字符串的操作--写入rn /// rn /// for update 语句rn /// 长字符串的列rn /// 字符串内容rn rn void WriteLob(string up_sql,int column,string content)rn rn OracleConnection myCn = new OracleConnection(System.Configuration.ConfigurationSettings.AppSettings["ConnenctionString"]); rn OracleCommand myCmd = new OracleCommand(); rn try rn rn myCn.Open(); rn rn catch(System.Data.OracleClient.OracleException e) rn rn throw new Exception(e.Message); rn rn OracleTransaction myTrans = myCn.BeginTransaction(); rn try rn rn myCmd.Connection = myCn; rn myCmd.Transaction = myTrans; rn myCmd.CommandText = up_sql; rn OracleDataReader reader = myCmd.ExecuteReader(); rn using(reader) rn rn reader.Read(); rn rn rn OracleLob clob = reader.GetOracleLob(column);//column为lob类型所在列 rn rn Encoding UTF8 = Encoding.UTF8; //使用UTF-8进行编码 rn byte[] buffer = UTF8.GetBytes(content); rn if(buffer.Length % 2 ==0) rn rn rn if(clob.CanWrite)rn rn rn clob.Write(buffer,0,100); //这里的参数必须为偶数 rn rn rn rn else rn rn clob.Write(buffer, 0, (buffer.Length - 1)); rn rn //clob.Position = 0; rn myTrans.Commit(); rn rn rn rn catch(System.Data.OracleClient.OracleException e) rn rn myTrans.Rollback(); rn throw new Exception(e.Message); rn rn finally rn rn myCmd.Dispose(); rn myCn.Close(); rn rnrnrnrnrnrn
Connection closed gracefully 问题
参考了一些网络上关于文件传输的资料,用IdTCPClient1,IdTCPSever写了一个传输文件的程序,在传输过程中传输端有时会爆“ Connection <em>closed</em> gracefully”或“Socket Error #10054 Connection reset by peer.”错误,出现后者情况时,一般是在接收端自动关闭(没有报异常),这是一端被强制关闭造成的,查了一天也找不出源头。搞得很郁闷。。rn现把程序列出来,哪个高手帮忙分析下,到底是哪出问题了。。。rnrn传输端:rnProcedure TMainForm.SendFile(pFilePath:String);rnvarrn dir,sFile,lCmd:String;rn Rdir:Stringarray;rn fSize,iFileType,iFileIndex,i:integer;rn lFileSize,ASize:Int64;rn lFileSendSize:integer;rnbeginrnrn TmSendDBFile.Enabled := False;rn tryrn PClient := Tidtcpclient.Create(nil);rn PClient.Host := F_RemoteServerIP;//'192.168.0.20';//fip;rn PClient.Port := 9923;rn sleep(3000);rn PClient.Connect();rnrn if PClient.Connected thenrn beginrn PClient.WriteLn('START'); //通知客户端开始传输rn PClient.WriteLn(IntToStr(F_DBUpdateFileCount)); //DB文件个数rn PClient.WriteLn(IntToStr(F_MediaUpdateFileCount)); //Media文件个数rnrn iFileType := StrToInt(PClient.ReadLn()); //接收要发送的文件类型rn //发送DB文件rn if iFileType = 0 thenrn beginrn repeatrn i:=0;rn iFileIndex := StrToInt(PClient.ReadLn()); //接收要发送的文件索引rn F_FileName := F_DBUpdateFile[iFileIndex].sFile;rn PClient.WriteLn(F_FileName);rn sFile := ExtractFilePath(Application.ExeName) + 'db\' + F_FileName;rn red_NetUpdate.Lines.Append('['+TimetoStr(Now())+'] 发送文件:'+sFile);rn F_FileStream := TFileStream.Create(sFile,fmopenread);rn lFileSize := F_FileStream.Size;rn PClient.writeln(IntToStr(lFileSize));rnrn lFileSendSize := StrToInt(PClient.ReadLn); //客户端发送的命令字符串rn while lFileSendSize<>0 then ////////////////报“Socket Error #10054 Connection reset by peer”//////////////rn lFileSendSize := StrToInt(PClient.ReadLn);rn rn //当cmd返回0时,表示文件接收完毕,退出循环rn if (lFileSendSize=0) and (i<>0) thenrn break;rn //按照指定位置传输文件rn F_FileStream.Seek(lFileSendSize, soFromBeginning);rn //转到文件流传输的位置rn ASize := Min(F_FileStream.Size - F_FileStream.Position, PClient.RecvBufferSize);rn //计算需要发送的大小,Min()函数在Math单元rn PClient.OpenWriteBuffer; //准备发送缓冲rn PClient.WriteStream(F_FileStream, false, false, ASize);rn //显示进度条rn if F_FileStream.Size<>0 thenrn pb_Progress.Position := F_FileStream.Position * 100 div F_FileStream.Sizern elsern pb_Progress.Position := 0;rn lbl_FileName.Visible := True;rn pb_Progress.Visible := True;rnrn PClient.CloseWriteBuffer; //结束发送缓冲rn inc(i);rn end;rn end;rn FSendDBCount := FSendDBCount+1;rn F_FileStream.Free;rn red_NetUpdate.Lines.Append('['+TimetoStr(Now())+'] 文件:'+sFile+',发送完成!');rn until F_DBUpdateFileCount = FSendDBCount;rn end;rnrn if F_MediaUpdateFileCOunt = 0 thenrn red_NetUpdate.Lines.Append('无多媒体传输文件,请确认!')rn elsern //发送media文件rn repeatrn i:=0;rn iFileIndex := StrToInt(PClient.ReadLn()); //接收要发送的文件索引rn F_FileName := F_MediaUpdateFile[iFileIndex].sFile;rnrn PClient.WriteLn(F_FileName);rn sFile := ExtractFilePath(Application.ExeName) + 'media\' + F_FileName;rn red_NetUpdate.Lines.Append('['+TimetoStr(Now())+'] 发送文件:'+sFile);rn F_FileStream := TFileStream.Create(sFile,fmopenread);rn lFileSize := F_FileStream.Size;rnrn PClient.writeln(IntToStr(lFileSize)); //传输文件大小rnrn lFileSendSize := StrToInt(PClient.ReadLn); //客户端发送的命令字符串rn while lFileSendSize<>0 thenrn beginrn tryrn lFileSendSize := StrToInt(PClient.ReadLn);rn exceptrn Showmessage('123');rn end;rn end;rn //当cmd返回0时,表示文件接收完毕,退出循环rn if (lFileSendSize=0) and (i<>0) thenrn break;rn //按照指定位置传输文件rn F_FileStream.Seek(lFileSendSize, soFromBeginning);rn //转到文件流传输的位置rn ASize := Min(F_FileStream.Size - F_FileStream.Position, PClient.RecvBufferSize);rn //计算需要发送的大小,Min()函数在Math单元rn PClient.OpenWriteBuffer; //准备发送缓冲rn PClient.WriteStream(F_FileStream, false, false, ASize);rn //显示进度条rn if F_FileStream.Size<>0 thenrn pb_Progress.Position := F_FileStream.Position * 100 div F_FileStream.Sizern elsern pb_Progress.Position := 0;rn lbl_FileName.Visible := True;rn pb_Progress.Visible := True;rnrn PClient.CloseWriteBuffer; //结束发送缓冲rn inc(i);rn end;rn end;rn FSendMediaCount := FSendMediaCount+1;rn F_FileStream.Free;rn red_NetUpdate.Lines.Append('['+TimetoStr(Now())+'] 文件:'+sFile+',发送完成!');rn until F_MediaUpdateFileCOunt = FSendMediaCount;rnrn //接到END表示结束文件传输rn if PClient.ReadLn='END' thenrn beginrn //showmessage('模块升级1');rn PClient.DisconnectSocket;rn end;rn red_NetUpdate.Lines.Add('★★★'+TimetoStr(Now())+' 文件发送完毕!★★★');rn end;rn finallyrn //showmessage('模块升级2');rn PClient.DisconnectSocket;rn PClient.Free;rn end;rnend;rnrn接收端:rnprocedure TMainForm.PServerExecute(AThread: TIdPeerThread);rnvarrn cmd,targetname:string;rn lsize:int64;rn fs:tfilestream;rn ASize:int64;rn iFileIndex,iFileType:integer;rnbeginrn with athread.Connection dorn beginrn cmd:=trim(readln);rn if cmd='START'thenrn beginrn FRevDBCount := StrToInt(readln); //要接收DB文件个数rn FRevMediaCount := StrToInt(readln); //要接收meidia文件个数 ,rn //接收db文件rn Repeatrn if FDbCount = 0 thenrn beginrn iFileIndex := 0;rn iFileType := 0;rn writeln(IntToStr(iFileType)); //发送文件类型rn endrn elsern iFileIndex := iFileIndex+1;rnrn writeln(IntToStr(iFileIndex)); //发送文件索引rn targetname := FDBFilePath+readln;rn //lbl_FileName.Caption :='正在接收文件:'+ targetname;rn lSize := StrToIntDef(readln,0); //接收文件大小rn try //循环开始接受rn //建立文件流准备接收rn fs := TFileStream.Create(targetname, fmCreate);rn repeatrn WriteLn(IntToStr(fs.Size));//发送当前传输的位置rn ASize := Min(lsize - fs.Size, RecvBufferSize);rn //选择剩余大小和缓冲区大小小的一个作为传输的大小rn ReadStream(fs, ASize); //接收流rn lbl_Progress.Caption :='当前传输位置'+ IntToStr(fs.Size) + '/大小' + IntToStr(lsize);rn Application.ProcessMessages;rn until fs.Size = lsize; //大小一致了表示结束rn FDbCount := FDbCount+1 ;rn WriteLn('0');//写‘0’表示告知客户端上一文件已经接收完毕rn finallyrn fs.Free; //释放文件流rn end;rn until FRevDBCount = FDbCount;rn //接收media文件rn Repeatrn if FMediaCount = 0 thenrn beginrn iFileIndex := 0;rn //iFileType := 0;rn //writeln(IntToStr(iFileType)); //发送文件类型rn endrn elsern iFileIndex := iFileIndex+1;rnrn writeln(IntToStr(iFileIndex)); //发送文件索引rn targetname := FMediaFilePath+readln;rn lSize := StrToIntDef(readln,0); //接收文件大小rn try //循环开始接受rn //建立文件流准备接收rn fs := TFileStream.Create(targetname, fmCreate);rn repeatrn WriteLn(IntToStr(fs.Size));//发送当前传输的位置rn mmo_Report.Lines.Append(IntToStr(fs.Size));rn ASize := Min(lsize - fs.Size, RecvBufferSize);rn //选择剩余大小和缓冲区大小小的一个作为传输的大小rn ReadStream(fs, ASize); //接收流rn lbl_Progress.Caption :='当前传输位置'+ IntToStr(fs.Size) + '/大小' + IntToStr(lsize);rn Application.ProcessMessages;rn until fs.Size = lsize; //大小一致了表示结束rn FMediaCount := FMediaCount+1 ;rn WriteLn('0');//写‘0’表示告知客户端上一文件已经接收完毕rn finallyrn fs.Free; //释放文件流rn end;rn until FRevMediaCount = FMediaCount;rnrn writeln('END');rn lbl_Progress.Caption :='当前传输位置'+ IntToStr(0) + '/大小' + IntToStr(0);rn lbl_FileName.Caption :='文件接收完毕!';rn //UpdateDB;rn //EndRun(DEF_ALARM_END) ;rn if FRevMediaCount+FRevDBCount = FMediaCount+ FDbCount thenrn disconnect;rn end;rn end;rnrnend;
java.sql.SQLException: Closed Connection
本机上运行一个程序,用的是java1.5, oracle9,正常!rn将程序移植到unix服务器上之后,执行了几次查询数据库的操作之后,就报错为:“java.sql.SQLException: Closed Connection ”。rn我的DB连接方式是程序开始就连上,到程序结束时才断开的。rnWhy?? 请高手指点!!!
A underlying connection was closed: A connection that was expected to be kept alive was closed by the server
我用webClientupload数据时,出现的错误。rn我在网上找了下是超时引起的,在不webclient换成httpwebrequest的情况下,有什么方法可以解决吗?
Connection Closed Gracefully,Indy.IdHTTP的错误
求教,如何修改? post后提示 Connection Closed Gracefully 且无返回值
网站测试小问题 The connection was not closed ……
网址:rnwww.szdchj.comrn点中文版。多进几次就报错了rnrn相关代码如下:rnpublic DataSet ReDataSet(string sSql)rn rn tryrn rn //if (Sconn.State != ConnectionState.Open)rn //rn // Sconn.Open();rn //rn if (Sconn.State == ConnectionState.Closed)rn rn Sconn.Open();rn rn DataSet Ds = new DataSet();rn OleDbDataAdapter Da = new OleDbDataAdapter(sSql, Sconn);rn Da.Fill(Ds);rn return Ds;rn rn catch (Exception ex)rn rn throw new Exception(ex.Message, ex);rn rn finallyrn rn CloseConn(); rn rn rnrn说明: 屏蔽的3行是原来的,下面3行是我写上去的,我感觉应该和原来是等同的。请指教,小弟在线等
登录时报错 connection is closed
我用struts2.0做的网站,tomcat做服务器,连接数据库的方式为,数据库连接池,用一个静态方法进行连接,代码如下rnpublic static Connection getConnection()rn Connection conn = null;rn try rn Context c = new InitialContext();rn DataSource ds = (DataSource)c.lookup("java:comp/env/jdbc/jlbzy");rn conn = ds.getConnection();rn catch (NamingException e) rn e.printStackTrace();rn catch (SQLException e) rn e.printStackTrace();rn rn return conn;rn rn每次获取连接时用 DB.getConnection(),用完了就conn.<em>closed</em>,自己测试时大多数情况下还没发现问题,只有登录的时候,当执行到conn.closeed的时候, 会报一个conection is <em>closed</em>的错。
c#的HttpWebResponse 怎么老是报The underlying connection was closed
我是用循环来调用的.不是马上出现,出现的时间不定...奇怪了rnrn[code=csharp]string loginUrl = "http://192.168.1.101/DoServer.Class.php";rn Encoding encoding = Encoding.GetEncoding("UTF-8");rnrn HttpWebResponse response = HttpWebResponseUtility.CreatePostHttpResponse(loginUrl, parameters, null, null, encoding, null);rn //response.tirn StreamReader sr = new StreamReader(response.GetResponseStream(), Encoding.UTF8);rn String retValue = sr.ReadToEnd();rnrn sr.Close();rnrn return retValue;[/code]rnrnSystem.Net.WebException: <em>The</em> <em>underlying</em> <em>connection</em> was <em>closed</em>: A <em>connection</em> that was expected to be kept alive was <em>closed</em> by the server.rn at System.Net.HttpWebRequest.GetResponse()rn at WindowsEE.HttpWebResponseUtility.CreatePostHttpResponse(String url, IDictionary`2 parameters, Nullable`1 timeout, String userAgent, Encoding requestEncoding, CookieCollection cookies)rn at WindowsEE.MethodOption.common(IDictionary`2 parameters)rn at WindowsEE.Main.timer2_Tick(Object sender, EventArgs e)rn at System.Windows.Forms.Timer.OnTick(EventArgs e)rn at System.Windows.Forms.Timer.TimerNativeWindow.WndProc(Message& m)rn at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)rn
急:The underlying connection was closed: Unable to connect to the remote server
在一台winxp professional的机器上安装了一个asp.net 程序和一个web服务,运行asp.net 程序程序rn出现如下错误,如何解决:rn<em>The</em> <em>underlying</em> <em>connection</em> was <em>closed</em>: Unable to connect to the remote server. rnDescription: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. rnrnException Details: System.Net.WebException: <em>The</em> <em>underlying</em> <em>connection</em> was <em>closed</em>: Unable to connect to the remote server.rnrnSource Error: rnrnAn unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. rnrnStack Trace: rnrnrn[WebException: <em>The</em> <em>underlying</em> <em>connection</em> was <em>closed</em>: Unable to connect to the remote server.]rn System.Net.HttpWebRequest.CheckFinalStatus() +673rn System.Net.HttpWebRequest.EndGetRequestStream(IAsyncResult asyncResult) +75rn System.Net.HttpWebRequest.GetRequestStream() +132rn System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters) +105rn GSFace.UserSvr.User.CheckUser(String User, String Password) +64rn GSFace.WebForm1.bt_Yes_Click(Object sender, ImageClickEventArgs e) +68rn System.Web.UI.WebControls.ImageButton.OnClick(ImageClickEventArgs e) +109rn System.Web.UI.WebControls.ImageButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +69rn System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +18rn System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33rn System.Web.UI.Page.ProcessRequestMain() +1277rnrn rn
The underlying connection was closed: An unexpected error occurred on a send.
求各位大神帮忙:rn本地ajax发送post请求访问 asp.net 接口出错。一开始以为是跨域问题,加了Http头后还是不行。接口服务器是win server 2003 。.Net版本4.0。本地测试的时候没啥毛病,放到服务器上就不行了.[img=https://img-bbs.csdn.net/upload/201804/24/1524559782_596950.png][/img][img=https://img-bbs.csdn.net/upload/201804/24/1524559791_582713.png][/img][img=https://img-bbs.csdn.net/upload/201804/24/1524559817_578938.png][/img][img=https://img-bbs.csdn.net/upload/201804/24/1524559832_269196.png][/img]
救命:The underlying connection was closed: Unable to connect to the remote server.
在Asp.net的程序中用Web service,连接远程的server,开始设name can not be resolved ,我在程序中设置了代理的地址,端口号后,就变为如题的错误了,rn怎么办?rn那位指点一下我rnrn
closed~~~closed~~~closed
<em>closed</em> <em>closed</em>~~~<em>closed</em>~~~<em>closed</em> <em>closed</em>~~~<em>closed</em>~~~<em>closed</em>
解决SecureCRT登录服务器Connection closed错误
症状:使用SecureCRT登录远程服务器失败,返回Connection <em>closed</em>,直接使用ssh命令可以正常登录。解决:打开Session Options界面,选中Connection——SSH2,在右面的Key exchange分组中,将ecdh开头的几个复选框取消选中,单击OK,如下图所示...
java.sql.SQLException: Connection handle has been closed and is unusable
015-03-24 10:50:38,000 INFO [STDOUT] Warning: <em>The</em> encoding 'GBK' is not supported by the Java runtime.rn2015-03-24 10:50:42,578 INFO [STDOUT] 0 getWorkItemTodoCountrn2015-03-24 10:50:42,703 ERROR [java.sql.Connection] Error calling Connection.prepareStatement:rnjava.sql.SQLException: Connection handle has been <em>closed</em> and is unusablern at org.jboss.resource.adapter.jdbc.WrappedConnection.checkStatus(WrappedConnection.java:537)rn at org.jboss.resource.adapter.jdbc.WrappedConnection.checkTransaction(WrappedConnection.java:524)rn at org.jboss.resource.adapter.jdbc.WrappedConnection.prepareStatement(WrappedConnection.java:184)rn at sun.reflect.GeneratedMethodAccessor156.invoke(Unknown Source)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)rn at java.lang.reflect.Method.invoke(Method.java:585)rn at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:168)rn at $Proxy62.prepareStatement(Unknown Source)rn at sun.reflect.GeneratedMethodAccessor156.invoke(Unknown Source)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)rn at java.lang.reflect.Method.invoke(Method.java:585)rn at com.ibatis.common.jdbc.logging.ConnectionLogProxy.invoke(ConnectionLogProxy.java:53)rn at $Proxy63.prepareStatement(Unknown Source)rn at com.ibatis.sqlmap.engine.execution.SqlExecutor.executeQuery(SqlExecutor.java:172)rn at com.ibatis.sqlmap.engine.mapping.statement.GeneralStatement.sqlExecuteQuery(GeneralStatement.java:205)rn at com.ibatis.sqlmap.engine.mapping.statement.GeneralStatement.executeQueryWithCallback(GeneralStatement.java:173)rn at com.ibatis.sqlmap.engine.mapping.statement.GeneralStatement.executeQueryForObject(GeneralStatement.java:104)rn at com.ibatis.sqlmap.engine.impl.SqlMapExecutorDelegate.queryForObject(SqlMapExecutorDelegate.java:565)rn at com.ibatis.sqlmap.engine.impl.SqlMapExecutorDelegate.queryForObject(SqlMapExecutorDelegate.java:540)rn at com.ibatis.sqlmap.engine.impl.SqlMapSessionImpl.queryForObject(SqlMapSessionImpl.java:106)rn at org.springframework.orm.ibatis.SqlMapClientTemplate$1.doInSqlMapClient(SqlMapClientTemplate.java:243)rn at org.springframework.orm.ibatis.SqlMapClientTemplate.execute(SqlMapClientTemplate.java:193)rn at org.springframework.orm.ibatis.SqlMapClientTemplate.queryForObject(SqlMapClientTemplate.java:241)rn at com.smartdot.nebula.docquery.dao.DocQueryDao.queryAllDocTodoCount(DocQueryDao.java:315)rn at com.smartdot.nebula.docquery.bo.DocQueryBO.queryTodoAllTypeDocCount(DocQueryBO.java:323)rn at com.smartdot.nebula.docquery.action.DocQueryAction.queryTodoAllTypeDocList(DocQueryAction.java:822)rn at sun.reflect.GeneratedMethodAccessor288.invoke(Unknown Source)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)rn at java.lang.reflect.Method.invoke(Method.java:585)rn at org.apache.struts.actions.DispatchAction.dispatchMethod(DispatchAction.java:270)rn at org.apache.struts.actions.DispatchAction.execute(DispatchAction.java:187)rn at org.apache.struts.actions.MappingDispatchAction.execute(MappingDispatchAction.java:169)rn at com.smartdot.galaxy.portal.action.MappingDispatchBaseAction.execute(Unknown Source)rn at org.springframework.web.struts.DelegatingActionProxy.execute(DelegatingActionProxy.java:106)rn at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)rn at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)rn at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)rn at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:697)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)rn at com.smartdot.galaxy.portal.filter.IncludeAccountFilter.doFilter(Unknown Source)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)rn at com.smartdot.galaxy.portal.filter.log.ActionLogFilter.doFilter(Unknown Source)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)rn at com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java:39)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)rn at com.smartdot.galaxy.portal.filter.auth.URLProtectionFilter.doFilter(Unknown Source)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)rn at com.smartdot.galaxy.portal.filter.auth.AuthFilter.doFilter(Unknown Source)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)rn at com.smartdot.galaxy.portal.filter.ShareLdapConnectionFilter.doFilter(Unknown Source)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)rn at com.smartdot.util.server.SetCharacterEncodingFilter.doFilter(Unknown Source)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)rn at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)rn at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)rn at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)rn at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)rn at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)rn at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)rn at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)rn at org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)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:869)rn at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)rn at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)rn at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)rn at java.lang.Thread.run(Thread.java:595)rn2015-03-24 10:50:42,703 WARN [org.apache.struts.action.RequestProcessor] Unhandled Exception thrown: class org.springframework.jdbc.UncategorizedSQLExceptionrn2015-03-24 10:50:42,703 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/sipo].[action]] Servlet.service() for servlet action threw exceptionrncom.ibatis.common.jdbc.exception.NestedSQLException: rn--- <em>The</em> error occurred in ibatis/DocQueryMapping.xml. rn--- <em>The</em> error occurred while executing query. rn--- Check the select count(*) from( select distinct d.*,pp.object_id as flowid,pp.label as flowtemplate,p.object_id as activityid, p.displayName as activityname,p.start_date as activitystart from (select sendid as id , doctype,title,startdept, startdate,startuser,kind,docstatus,notuse, emergency,secret,subject,docmark from goa_senddoc union select recvid as id,doctype,title,comegodept as startdept, null as startdate ,null as startuser, kind,docstatus,notuse, emergency,secret,subject,docmark from goa_recvdoc )d left outer join GOA_BUSINESS_FLOW_ASSOCIATE gbfa on (d.id=gbfa.BUSINESSID and gbfa.BUSINESSTYPE=d.doctype ) left outer join process pp on (pp.OBJECT_ID=gbfa.FLOWID) left outer join process p on (p.superprocess = pp.object_id) left outer join processace ace on(ace.object_id = p.object_id) where ( ( ( ace.profile_name = lower(?) and ace.profile_type = 3) ) and (p.state = 2 or p.state=6) and pp.is_definition = 0 and pp.state=2 and pp.superprocess is null ) and notuse=0  ) . rn--- Check the SQL Statement (preparation failed). rn--- Cause: java.sql.SQLException: Connection handle has been <em>closed</em> and is unusablernrn请问这是什么原因引起的,用的是ibatis连接数据库
Nginx An existing connection was forcibly closed by the remote host
在用nginx并发100次请求nginx里面的TCP时候提示An existing <em>connection</em> was forcibly <em>closed</em> by the remote hostrnrnerror.log文件如下rn2017/10/24 10:18:11 [error] 8492#16524: *581304 WSARecv() failed (10054: An existing <em>connection</em> was forcibly <em>closed</em> by the remote host) while proxying <em>connection</em>, client: 101.457.149.558, server: 0.0.0.0:3540, upstream: "114.55.149.170:5672", bytes from/to client:0/0, bytes from/to upstream:0/0rnrnrnnginx Tcp配置如下rnrnstream rn upstream rabbitmqrn server 114.55.149.170:5672;rn server 114.55.149.171:5672;rn rn server rn listen 3540;rn proxy_connect_timeout 600s;rn #proxy_timeout 3s;rn proxy_pass rabbitmq;rn rnrn想到可能是并发下nginx有限制,但是stream里面好像没办法添加keepalive_requests来设置并发数,请问如何解决?
Qtcpsocket The remote host closed the connection 问题
C/S程序,tcp连接。rnrn本来都是用winsock写的。rnrnserver端对我来说是黑盒的,rn现在想把客户端改成用qt实现(qtcpsocket)。rnrn现在的问题是,连接能够连接上,rn但是下面代码rnif(!SendDataToEC(&head,sizeof(HEAD)))rn rn return buf;rn rn [color=#FF0000] socket->waitForBytesWritten();[/color]rnrnrn走到红色代码行的时候就会触发error信号,提示信息是<em>The</em> remote host <em>closed</em> the <em>connection</em> 。rnrn由于server端是黑盒的。我自己又用winsock写了一个简单的tcpserver端程序。rn然后分别用用qt写的和winsock 写的client程序连接,发现接收到的数据结构是一模一样的,从而排除了数据上的问题。rnrn大家觉得还有可能是什么问题?rn
关于ftp:Connection closed by remote host
我有一台服务器,其网络是通的,ftp服务也启动了。rn但是在本机命令行下运行ftp命令都不行,会提示:Connection <em>closed</em> by remote hostrn请问是什么问题,应该怎么解决
时不时出现Invalid operation.The connection is closed
我的程序时不时的出现 Invalid operation.<em>The</em> <em>connection</em> is <em>closed</em> 但是刷新一下 就又没问题了。rn 怎么回事??
Indy控件抛出异常:Connection Closed Gracefully
客户端程序框架如下:rnrnthread()rnrn sleep(1000)rnrn while( 表中有数据 )rn rn idhttp->Get('http')rn rn 清空表rn rnrnrn问题:当表中有多条数的时,可以循环发送,并将表清空rn 但是隔一段时间后(大约10秒)再写入表的数据就发不出去了rn 抛出异常:Connection Closed Gracefullyrn 虽然可以通过设置不显示这个异常窗口,但程序仍处在阻塞状态,无法循环下去rnrn服务端是 Tomcatrn
用indy发邮件,提示connection closed gracefully!
有遇到过该问题的朋友吗?欢迎指点一下,十分感谢~
关于TIdHttp 出现 Connection Closed Gracefully 的问题
我想用这个控件获得 百度 mp3的真实地址。rnrn1. 先用 TIdHttp 的 Get() 获得 http://mp3.baidu.com/m?f=ms&rn=&tn=baidump3&ct=134217728&word=真的爱你&lm=0 的html源码。rnrn2. 用正则解析出下一个网页地址。rn http://220.181.38.82/m?ct=134217728&tn=baidusg,真的爱你 &word=mp3,http://202.91.128.8/uploadet/q5aUojU$.mp3,,[%D5%E6%B5%C4%B0%AE%C4%E3]&si=%D5%E6%B5%C4%B0%AE%C4%E3;;beyond;;27311;;27311&lm=16777216&sgid=1rnrn3.再次用 Get() 获得 源码 这时就出现 了 Connection Closed Gracefully 的错误!rn不知道问什么?rnrnbcb6 + windowsXP sp3rnrn我试过 Request->UserAgent = "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)"; 方法了不行。rnrn各位帮帮忙啦!
You can't operate on a closed connection!!!
出现这个错误是在显示JFreeChart图的时候。rn在提交后需要显示两张图,显示页面是这么写的rn[code=HTML]rnrnrn[/code]rn这是两个不同的action。 一提交后就出现You can't operate on a <em>closed</em> <em>connection</em>!!!的错误。rn对上面两个action分开测试一点问题没有,但放到一起就出错。rnrn可是获取数据的每个方法都是向连接池请求新的连接,然后用完关闭。因此不可能出现对一个已关闭的连接进行操作。rn而且两个action分开使用是好的,放到一起就不行。rn难道他们在内存里有冲突了? 现在头疼一直找不到解决方法。
求助~indytcpserver报错Connection Closed Gracefully.
client发送一张图片流rn[code=delphi]procedure Tf_Client.btn1Click(Sender: TObject);rnvarrn ms: TMemoryStream;rnbeginrn ms := TMemoryStream.Create;rn with ms dorn beginrn tryrn img1.Picture.Graphic.SaveToStream(ms);rn// ms.SaveToFile('C:\Users\fky1989\Desktop\Indy\123.bmp');rn ms.Position := 0;rn IdTCPClient1.Connect;rn IdTCPClient1.IOHandler.Write(ms);rn IdTCPClient1.Disconnect;rn end;rn finallyrn Free;rn end;rn end;rnend;[/code]rnrn服务端接收的代码rn[code=delphi]procedure Tf_Server.IdTCPServer1Execute(AContext: TIdContext);rnvarrn ms: TMemoryStream;rnbeginrn tryrn ms := TMemoryStream.Create;rn with ms dorn beginrn tryrn// mmo1.Lines.Add(AContext.Connection.IOHandler.ReadString(10));//如果运行这句则能把流信息显示出来rn AContext.Connection.IOHandler.ReadStream(ms); //运行到这里报错Connection Closed Gracefully.rn ms.SaveToFile('C:\Users\fky1989\Desktop\Indy\123.bmp');rn img1.Picture.Graphic.LoadFromStream(ms);rnrn finallyrn Free;rn end;rn end;rn exceptrn on E: Exception dorn beginrn ShowMessage(E.Message);rn end;rn end;rnend;[/code]
kettle 【关闭的连接】Closed Connection 的问题
求教 各位大神,rnkettle运行一段时间就会出现【关闭的链接】错误,相同数据、相同程序逻辑在另外一台服务器就没有这个问题。rnrn应用:kettle版本4.3 rn数据库:oracle 11grn操作系统:suse12rnrn以下是日志部分:rnERROR 15-01 01:00:36,783 - T_USER - Because of an error, this step can't continue: rn ERROR 15-01 01:00:36,783 - T_USER - org.pentaho.di.core.exception.KettleDatabaseException: rn Error performing rollback on <em>connection</em>rn Closed Connectionrnrn at org.pentaho.di.core.database.Database.rollback(Database.java:743)rn at org.pentaho.di.core.database.Database.rollback(Database.java:717)rn at org.pentaho.di.trans.steps.tableoutput.TableOutput.writeToTable(TableOutput.java:384)rn at org.pentaho.di.trans.steps.tableoutput.TableOutput.processRow(TableOutput.java:117)rn at org.pentaho.di.trans.step.RunThread.run(RunThread.java:40)rn at java.lang.Thread.run(Thread.java:745)rn Caused by: java.sql.SQLException: Closed Connectionrn at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:112)rn at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:146)rn at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:208)rn at oracle.jdbc.driver.PhysicalConnection.rollback(PhysicalConnection.java:1142)rn at org.pentaho.di.core.database.Database.rollback(Database.java:732)rn ... 5 morern大体出错的地方是有8个转换串行连接,转换里面都是2个表之间的同步操作。
idhttp ssl Connection Closed Gracefully困扰好几天了
报错:EIdConnClosedGracefully Msg:Connection Closed Gracefully. rnTIdSSLIOHandlerSocket.StatusInfo打印出来如下 rn10:30:36: SSL status: "before/connect initialization " rn10:30:36: SSL status: "before/connect initialization " rn10:30:36: SSL status: "SSLv3 write client hello A " rn10:30:36: SSL status: "SSLv3 read server hello A " rn10:30:36: SSL status: "SSLv3 read server certificate A " rn10:30:36: SSL status: "SSLv3 read server key exchange A " rn10:30:36: SSL status: "SSLv3 read server done A " rn10:30:36: SSL status: "SSLv3 write client key exchange A " rn10:30:36: SSL status: "SSLv3 write change cipher spec A " rn10:30:36: SSL status: "SSLv3 write finished A " rn10:30:36: SSL status: "SSLv3 flush data " rn10:30:36: SSL status: "SSLv3 read finished A " rn10:30:36: SSL status: "SSL negotiation finished successfully " rn10:30:36: SSL status: "SSL negotiation finished successfully " rn10:30:36: Cipher: name = EDH-RSA-DES-CBC3-SHA; description = EDH-RSA-DES-CBC3-SHA SSLv3 Kx=DH Au=RSA Enc=3DES(168) Mac=SHA1 rn; bits = 168; version = TLSv1/SSLv3;
使用IDHTTP后弹出Connection Closed Grancefully.
我在timer里面放了idhttp的一个get,设置的是1500毫秒循环一次,rn我不知道哪里出错了,它总是一分钟左右就弹出一两个对话框,提示Connection Closed Grancefully.rn请问怎么解决啊~!
IDFTP的Data connection closed abnormally问题
使用IDFTP客户端和服务端传文件的时候会出现这样的错误,并不是所有的客户端会这样,只有极个别的客户端会这样,而且这个客户端还不是每次都这样,只是比较频繁,有了解是怎么回事的吗,谢谢
telnet mysql :Connection closed by foreign host.
我在telnet linux服务器上的mysql时出现下面的情况:rnrnTrying ip...rnConnected to aaa1 (ip).rnEscape character is '^]'.rnNrn5.5.10-log?1[W"Chd?MEOA6*mhDXl9mysql_native_passwordrnrn如何解决呢?
python stmplib发送邮件 Connection unexpectedly closed
[code=python]#!/usr/bin/pythonrn#-*- coding: utf-8 -*-rnimport smtplibrnimport sysrnimport stringrnrn#def sendemail():rnsmtp = smtplib.SMTP()rnrnuser = "××××××××@163.com"rnpasswd = "××××××××××"rnrntry:rn smtp.connect("smtp.163.com", "25")rnexcept Exception,e:rn print "smtp.connect:",str(e)rn exit()rnsmtp.starttls()rnsmtp.login(user, passwd)rnrntext = "Hello!"rnbody = string.join((rn "From: %s" % user,rn "To: %s" % sys.argv[1],rn "Subject: %s" % "Python",rn "",rn textrn ),"\r\n")rnrnprint bodyrntry:rn smtp.sendmail(user, [sys.argv[1]], body)rnexcept Exception,e:rn print "smtp.sendmail:",str(e)rn exit()rnrnsmtp.quit()rnrnrn[/code]rnrn第一次执行时能够发送,没修改过再运行老是出现标题的错误,,,什么原因?
dbcp 连接mysql 报connection is closed
java项目使用 spring + mybatis + struts ,用dbcp 连接mysql 报<em>connection</em> is <em>closed</em>
idhttp组件 老是提示 Connection Closed Gracefully
idhttp组件 老是提示 Connection Closed Gracefully
SecureCRT 连不上服务器 显示 Connection closed
[img=https://img-bbs.csdn.net/upload/201506/15/1434334453_286879.png][/img][img=https://img-bbs.csdn.net/upload/201506/15/1434334462_863717.png][/img]rnrn之前是可以成功链接服务器的。在发布项目时 报了一个错 Structure need cleanning 。 之后就再也链接不上了,求大神帮帮忙。
idftp上传文件出现connection closed gracefully
idftp上传文件的时候,有时候可以正常传完,有时候出现<em>connection</em> <em>closed</em> gracefully异常,rnrn出错地方,idftp.Put('d:\123.txt','123.txt',true);rnrn是连接断开了,请问这个怎么解决啊,是本身控件的BUG吗?谁能给详细的解决方法,50分就是你的,谢谢了,rn这个问题今天搞得很郁闷!
解决莫名其妙出现connection closed的错误
最近发现使用了springMVC的新项目偶尔出现<em>connection</em> <em>closed</em>,同事反映当访问同一个controller时经常出现类似错误 上回发现在使用 &lt;context:component-scan base-package="com.controller" /&gt; ...
An existing connection was forcibly closed by the remote host(WCF)
当我用WCF调用SERVICE时出现如下错误: rn如:rnClient.ILISTGetObject()rnAn existing <em>connection</em> was forcibly <em>closed</em> by the remote hostrnrn"<em>The</em> socket <em>connection</em> was aborted. This could be caused by an error processing your message or a receive timeout being exceeded by the remote host, or an <em>underlying</em> network resource issue. Local socket timeout was '01:01:00'."
阿里云linux服务器登录失败,Connection closed
阿里云linux服务器登录失败,Connection <em>closed</em>
An existing connection was forcibly closed by the remote host
用C#,从FTP服务器下载文件到本地,出现了这个错误rn是在这句话:rnbytes = clientSocket.Receive(buffer, buffer.Length, 0);rnrnrn我用FileZilla Client连接是没问题的rnrn
Xshell Connection closed by foreign host.问题
[size=24px]本地VMWare虚拟机,xshell工具 用的好好的突然间就断了,再连提示:rnrn[color=#FF0000]Connecting to 192.168.2.222:22...rnConnection established.rnTo escape to local shell, press 'Ctrl+Alt+]'.rnrnConnection <em>closed</em> by foreign host.rnrnType `help' to learn how to use Xshell prompt.rnXshell:\>[/color][/size]rnrn网上找了很多帖子都不管用,求大神帮忙看看!rnrnPS:虚拟机正常运行,ping本地IP、网关都能通,就是xshell连不上 郁闷 rnrn
ftp问题connection closed by remote host
我有一个win2003的vps服务器,安装了serv-u的ftp服务,并且可以使用cuteftp来上传下载文件,但是,在命令行中执行ftp的mkdir ,cd等命令都没有问题,但是执行bin,send,put等命令就会<em>connection</em> <em>closed</em> by remote host ,如下:rnftp>open 118.123.8.35rn然后输入用户名,密码登陆成功rn230 user logged in,proceedrn接着,可以执行mkdir ,cd等命令,都可以成功,但是bin,send,put等命令却不行,如下:rnftp>binrn<em>connection</em> <em>closed</em> by remote host rn或者rnftp>put c:\temp.txtrn<em>connection</em> <em>closed</em> by remote host rn为什么用cuteftp就可以上传下载呢?rn我已经在serv_u中允许了passive模式,连接超时,空闲超时等都设置的20分钟以上rn之所以做这些测试,是因为在程序中使用inet1也是不能上传下载,但是如果在.net开发的项目中使用FtpWebRequest对象 rn却可以向这个serv-u的ftp服务上传下载
基础连接已经关闭: 无法连接到远程服务器 The underlying connection was closed: Unable to connect to the remote server.
这个问题困扰了我一个多星期,搞得我现在学Java。rn 问题:rn 基础连接已经关闭: 无法连接到远程服务器 <em>The</em> <em>underlying</em> <em>connection</em> was <em>closed</em>: Unable to connect to the remote server.rnrn 解决方法:rn 你把web引用的http://localhost/...rn改变成http://127.0.0.1/...(后面是你的服务名),就行了。rn我的信箱:happy.every.day@126.com,多联系!rnrn Java和C#差不多,很好学。呵呵。
大家救命,在线等,报措信息“the underlying connection was closed: An unexpected error occurred on a receive”
用的是C#的CS程序调WEBSERVICE,大家救命,在线等
基础连接已经关闭: 无法连接到远程服务器 The underlying connection was closed: Unable to connect to the remote server. 的解决办法
这个问题困扰了我一个多星期,搞得我现在学Java。rn 问题:rn 基础连接已经关闭: 无法连接到远程服务器 <em>The</em> <em>underlying</em> <em>connection</em> was <em>closed</em>: Unable to connect to the remote server.rnrn 解决方法:rn 你把web引用的http://localhost/...rn改变成http://127.0.0.1/...(后面是你的服务名),就行了。rn我的信箱:happy.every.day@126.com,多联系!rnrn Java和C#差不多,很好学。呵呵。
调用WebService出错:The underlying connection was closed: An unexpected error occurred on a send.
具体情况如下:rn现在客互端(c#开发)调用WebService时候,rn报错:rn20080227 00:20:48 CRecordUpdate::RecordUpdateThread error:System.Net.WebException: <em>The</em> <em>underlying</em> <em>connection</em> was <em>closed</em>: An unexpected error occurred on a send.rn at System.Web.Services.Protocols.WebClientProtocol.GetWebResponse(WebRequest request)rn at System.Web.Services.Protocols.HttpWebClientProtocol.GetWebResponse(WebRequest request)rn at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)rn at SASDataControl.WebReference.JZNetbarUpdate.GetServerID(String MAC)rn at BBVOD.CRecordUpdate.RecordUpdateThread()rn初步估计是访问量大的缘故,因为以前访问量小的时候不太会出错,现在量上来了,就报这个错误.rn请各位高手指点,小弟实在没办法了:(
调用remoting报错-the underlying connection is closed,unable to connect tothe remote server!
我的remoting服务器端是宿主在IIS上的rn我每次编译了remoting服务器端!如果不用IE浏览一下服务器端提供的服务,直接就用windows客户端去访问服务,就会提示错误:the <em>underlying</em> <em>connection</em> is <em>closed</em>,unable to connect tothe remote server。请问是怎么回事,怎么解决呢?
基础连接已经关闭:无法连接到远程服务器 The underlying connection was closed: Unable to connect to the remote server.
大家好。rn被弄了一个多星期的问题终于浮出水面:rn 基础连接已经关闭:无法连接到远程服务器 <em>The</em> <em>underlying</em> <em>connection</em> was <em>closed</em>: Unable to connect to the remote server.rnrn 解决的办法:rn rn 你把web引用的http://localhost/...rn改变成http://127.0.0.1/...(后面是你的服务名),就行了。rn我的信箱:happy.every.day@126.com,多联系!
求大神帮忙解决,post 请求Asp.net接口。出现 The underlying connection was closed: An unexpected
这两天刚写了一个接口,用来接收文件。在本地测一点问题都没有。发布到服务器上就不行了(win serever 2003 .Net 4.0版本)。rnajax访问出现 <em>The</em> <em>underlying</em> <em>connection</em> was <em>closed</em>: An unexpected error occurred on a send。这个错误。后来自己用c#模拟了post 请求还是不行,同样的错误。rn[img=https://img-bbs.csdn.net/upload/201804/25/1524641175_736224.png][/img][img=https://img-bbs.csdn.net/upload/201804/25/1524641194_835419.png][/img][img=https://img-bbs.csdn.net/upload/201804/25/1524641226_661579.png][/img]
访问webswevice出现奇怪问题?有时The underlying connection was closed: Unable to connect to the remote server
我的程序调用一个远程的webservice,经常会出现<em>The</em> <em>underlying</em> <em>connection</em> was <em>closed</em>: Unable to connect to the remote server的错误,但不是总这样大部分时间正常。rn当不能连接时在IE中访问webservice地址时能够正常连接,我想不是线路的问题,我没有使用代理,没有防火墙,服务器和客户端都用的adsl拨号上网,服务器端用花生壳绑定动态IP,客户端程序是一个windows服务,两段的系统都是winxp。rn请帮我分析一下原因。rn谢谢!!
自动化测试之生成测试脚本自动发送邮件(554异常和connection unexpectedly closed)
今天在学习发送邮件的时候遇到了几个问题,这边一是记录一下 二是给同样遇到问题的同学解惑 1、这个问题我发生的原因是163邮箱 SMTP协议未开启,如果已开启还是报这个错误尝试重新开启一次。开启之后是设置变量也好还是input密码记住不能用163邮箱的登录密码,而是需要使用设置的客户端授权密码。以上针对我出现的这个问题得到了解决。 2、看廖雪峰的简单邮件实例发现自己运行后报554,官方解释就
关于JDBC中No operations allowed after connection closed的问题
rn[code=Java]public static Operater check(String name, String password) rn Operater operater=new Operater();//操作员信息对象rn String sql = "select * from tb_operator where name='" + namern + "' and password='" + password + "'and admin=1";//查询字符串rn ResultSet rs = Dao.executeQuery(sql);//执行查询rn try rn while (rs.next()) //如果查询到了记录rn operater.setId(rs.getString("id"));//设置操作员编号rn operater.setName(rs.getString("name"));//设置操作员用户名rn operater.setGrade(rs.getString("admin"));//设置操作员等级rn operater.setPassword(rs.getString("password"));//设置管理员密码rn rn catch (Exception e) rn e.printStackTrace();rn rn Dao.close(); //关闭连接对象rn return operater;//返回操作员信息对象rn [/code]rnrn第一次调用此方法没问题 可第二次就出现下面的问题rnrncom.mysql.jdbc.exceptions.MySQLNonTransientConnectionException: rnNo operations allowed after <em>connection</em> <em>closed</em>rnrn这个问题怎么解决啊 只有把Dao.close();这个关闭Connection的方法去掉,可是这样好像也不对啊?rn各位有没有碰到过类似的问题,有好的解决办法?
ssh 登录出现:ssh_exchange_identification: Connection closed by remote host
操作如下所示:rn[root@myhost root]# ssh root@61.124.113.152rnssh_exchange_identification: Connection <em>closed</em> by remote hostrnrn前两天还好好的?请大家帮忙分析原因?
ssh连接不上 Connection closed by foreign host
contos6.5rn使用xshell连接出错rn[img=https://img-bbs.csdn.net/upload/201710/31/1509438077_445474.png][/img]
struts+hibernate+tomcat运行一段时候后报java.sql.SQLException: Closed Connection
一开始正常rn但tomcat运行一段时候后就会报rnrnjava.sql.SQLException: Closed Connectionrnrn查看日志文件,该错误是出现在rnrncatalina.outrnrn而不是rnrnlocalhost_log.2006-11-20.txtrnrn重起tomcat后恢复正常,自己猜测可能是hibernate的问题,但又不知道具体问题出在哪,该怎么解决,希望经历过或知道的朋友能给予帮助.rnrn具体错误代码是rnrnCaused by: java.sql.SQLException: Closed Connectionrn at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:111)rn at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:145)rn at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:207)rn at oracle.jdbc.driver.PhysicalConnection.rollback(PhysicalConnection.java:1132)rn at org.hibernate.transaction.JDBCTransaction.rollback(JDBCTransaction.java:134)rn ... 74 more
WCF无法返回List,出现The connection was closed unexpectedly异常
如题,当使用下列代码返回List of IBook的时候,客户端出现"<em>The</em> <em>underlying</em> <em>connection</em> was <em>closed</em>: <em>The</em> <em>connection</em> was <em>closed</em> <em>unexpectedly</em>."异常。应该是客户端不知道如何反序列化Books,但是我已经用了knownType了啊。哪位大师知道解决的方法,谢谢。rnpublic class BookType1 :IBookrnrn //一些代码rnrnrnpublic class BookTyoe2 : IBookrnrn//一些代码rnrnrn[DataContract]rn[KnownType(typeof(BookType1))]rn[KnownType(typeof(BookType2))]rnpublic class Libaryrnrn [DataMember]rn List Booksget;set;rn
【求助】使用occi连接数据库时出错:ORA-12537:TNS:connection closed
我的想法很简单很简单。。。rnrn只不过是:刚在新装的Centos下安装了oracle11g。在sqlplus下使用select table_name from user_tables,能够成功执行并返回结果,说明数据库已经正常运行了。rn现在想要通过写一个occi连接oracle的小程序在本机测验一下是否能够正常操作oracle数据库。代码极其简单:rn[code=c]rn#include rn#include rn#include rn#include rnusing namespace std;rnusing namespace oracle::occi;rnrnint main()rnrn Environment *env = Environment::createEnvironment(Environment::DEFAULT); rn string name = "sys";rn string pass = "123";rn string srvName = "xxx.xxx.xxx.xxx:1521/ORCL"; //ip是本机的ip地址。rn cout << " run to 1 !!!!!!!!" << endl;rn Connection *conn = env->createConnection(name,pass,srvName);rn cout << " run to 2 !!!!!!!!" << endl;rn if(conn) cout << "con suc" << endl;rn Statement *stmt = NULL;rn string sql = "select table_name from user_tables where rownum, status UNKNOWN, has 1 handler(s) for this service...rn<em>The</em> command completed successfullyrn[/code]rn状态是unknown是否不对啊,是不是应该是ready才对呢?rn此问题,在网上查了好多资料还是不知道如何解决,网上有说是限制ip的问题,在我的配置里边没有限制。rn我只是想使用occi编程操作数据库,数据库现在应该是正常运行了,可能是网络连接配置的问题,现在连接不上数据。rnrn现在真的迷茫了,大家帮帮忙,这是怎么回事。
wcf 连接异常“An existing connection was forcibly closed by the remote host.”
使用wcf创建的web service,其中有一对接口,分别是get和set,用来去数据和更新数据rn当数据量小的时候一切正常,当数据量达到某个点的时候,get方法没问题,而调用set方法是出现了如下错误。rnrnAn error occurred while receiving the HTTP response to http://localhost:55378/OperationContract/KarteService.svc. This could be due to the service endpoint binding not using the HTTP protocol. This could also be due to an HTTP request context being aborted by the server (possibly due to the service shutting down). See server logs for more details.rnrn<em>The</em> <em>underlying</em> <em>connection</em> was <em>closed</em>: An unexpected error occurred on a receive.rnrnUnable to read data from the transport <em>connection</em>: An existing <em>connection</em> was forcibly <em>closed</em> by the remote host.rnrn主要逻辑是get方法返回一个自定义的数据类型,其中包含一个datatable,修改datatable中的某个值之后,将这个自定义的数据类型再作为参数调用wcf的set方法,还没有进入service的接口就出现了上面的异常。
c3p0连接池,You can't operate on a closed Connection
RT,第一次没问题,第二次以及以后就会出现这个问题rn是不是我从连接池获取Connection,使用完的时候,最后只需要关闭ResultSet和StatementrnConnection不用关
IdTCP出现的温和的关闭连接connection closed Gracefully!
本人初学Delphi,在进行基于TCP的网络聊天工具的实现时,出现“<em>connection</em> <em>closed</em> Gracefully”提示,请高手指点!谢谢!
TOMCAT配置MYSQL连接池出现No operations allowed after connection closed
在TOMCAT4里配置MYSQL连接池后,系统持续运行不会出现问题,但如果几分钟没操作就会出现No operations allowed after <em>connection</em> <em>closed</em>异常。rn我仔细检查过URL,已经设置了autoReconnect=true,maxWait也设为-1(无限时等待)。rn请问为什么会出现这种错误?有什么要注意吗?rn谢谢
用WINDOWS连LINUX时提示:Connection closed by remote host.
我已把/etc/xinetd.d/wu-ftp文件中的disable改为no了。rn请问该怎样才能连上呢?rn谢谢!
Connection没有关闭呀,为什么出现java.sql.SQLException: ResultSet is closed
private <em>The</em>MainFrame frame = new <em>The</em>MainFrame();rnprivate Boolean flag = false;rnrnprivate void jButton1ActionPerformed(java.awt.event.ActionEvent evt) rn tryrn rn//DbCon是连接数据库的类,getConnection()是其中得到连接的方法rn Connection con = new DbCon().getConnection();rn Statement stm = con.createStatement();rn ResultSet rs=stm.executeQuery("select 用户名,密码 from admin ");rn while(rs.next())rn rn String name = rs.getString(1).trim();rn String pass = rs.getString(2).trim();rn rn if (txtUser.getText().equals(name))rn rn if( String.copyValueOf(txtPwd.getPassword()).equals(pass))rn rn flag = true;rn frame.setVisible(true);rn dispose();rn rn elsern rn JOptionPane.showMessageDialog(this,"密码错误");rn txtPwd.setText("");rn txtPwd.requestFocus();rn return;rn rn rn elsern continue;rn rn if(flag == false)rn rn if(!rs.next())rn rn JOptionPane.showMessageDialog(this,"用户名错误");rn txtUser.setText("");rn txtUser.requestFocus();rn txtPwd.setText("");rn rn rn catch(SQLException e)rn rn e.printStackTrace();rn rn rn是不是哪里不对呀,在netbeans5.0中运行时出现的错误。rn
Java上传到fth时提示Connection closed without indication.
如题,自己在系统中直接上传的话是可以的,但用代码上传就不行了,代码是这样的npackage cn.com.sensetech.ftp;nnimport java.io.File;nimport java.io.FileInputStream;nimport java.io.IOException;nimport java.io.InputStream;nnimport org.apache.commons.net.ftp.FTPClient;nimport org.apache.commons.net.ftp.FTPReply;nnpublic class Uploadnn /**n * Description: 向FTP服务器上传文件n * @param url FTP服务器hostnamen * @param port FTP服务器端口n * @param username FTP登录账号n * @param password FTP登录密码n * @param path FTP服务器保存目录n * @param filename 上传到FTP服务器上的文件名n * @param input 输入流n * @return 成功返回true,否则返回falsen */ n public static boolean uploadFile(String url,int port,String username, String password, String path, String filename, InputStream input) n boolean success = false; n FTPClient ftp = new FTPClient(); n tryn n int reply; n ftp.connect(url, port);//连接FTP服务器 n //如果采用默认端口,可以使用ftp.connect(url)的方式直接连接FTP服务器 n ftp.login(username, password);//登录 n reply = ftp.getReplyCode(); n if (!FTPReply.isPositiveCompletion(reply))n n ftp.disconnect();n return success; n n ftp.changeWorkingDirectory(path); n ftp.storeFile(filename, input); n n input.close();n ftp.logout();n success = true;n n catch (IOException e)n n e.printStackTrace();n n finallyn n if (ftp.isConnected())n n tryn n ftp.disconnect();n n catch (Exception e)n n e.printStackTrace();n n n n return success;n n n public static void main(String[] args)n n tryn n String filepath = "D:/upload/liuqian.txt";n FileInputStream in = new FileInputStream(new File(filepath));n boolean flag = uploadFile("localhost", 21, "lq", "123", "D:/upload", "walmartDemo", in);n System.out.println(flag);n n catch (Exception e)n n e.printStackTrace();n n nnn提示出错信息norg.apache.commons.net.ftp.FTPConnectionClosedException: Connection <em>closed</em> without indication.n at org.apache.commons.net.ftp.FTP.__getReply(FTP.java:317)n at org.apache.commons.net.ftp.FTP.__getReply(FTP.java:294)n at org.apache.commons.net.ftp.FTP._connectAction_(FTP.java:400)n at org.apache.commons.net.ftp.FTPClient._connectAction_(FTPClient.java:924)n at org.apache.commons.net.SocketClient.connect(SocketClient.java:183)n at org.apache.commons.net.SocketClient.connect(SocketClient.java:203)n at cn.com.sensetech.ftp.Upload.uploadFile(Upload.java:30)n at cn.com.sensetech.ftp.Upload.main(Upload.java:105)nfalsennn调试的时候发现错误出现在这里nfinallyn n if (ftp.isConnected())n n tryn n ftp.disconnect();n n catch (Exception e)n n e.printStackTrace();n n n n这究竟是怎么回事啊,怎么修改才能够跑通,本人新手,求各位大师帮忙,感激不尽
IO Connection reset !java.sql.SQLException: Already closed,可能是DBCP的问题。。
java.sql.SQLException: Io 异常: Connection resetrn at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:112)rn at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:146)rn at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:255)rnrn at org.apache.commons.dbcp.DelegatingPreparedStatement.executeQuery(DelegatingPreparedStatement.java:93)rn at com.common.html.dao.jdbc.JdbcUtil.getList(JdbcUtil.java:350)rn at com.common.html.vo.IndexVo.initTOP_AD(IndexVo.java:147)rn at com.common.html.vo.IndexVo.init(IndexVo.java:42)rn at com.common.html.vo.IndexVo.(IndexVo.java:18)rn at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)rn at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)rn at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)rn at java.lang.reflect.Constructor.newInstance(Constructor.java:513)rn at java.lang.Class.newInstance0(Class.java:355)rn at java.lang.Class.newInstance(Class.java:308)rn at com.common.html.vo.VoFactory.createVo(VoFactory.java:13)rn at com.inte.web.action.CreateAction.execute(CreateAction.java:29)rn java.sql.SQLException: Already <em>closed</em>.rn at org.apache.commons.dbcp.PoolableConnection.close(PoolableConnection.java:84)rn at org.apache.commons.dbcp.PoolingDataSource$PoolGuardConnectionWrapper.close(PoolingDataSource.java:181)rn at com.common.html.dao.jdbc.JdbcUtil.getList(JdbcUtil.java:377)rn at com.common.html.vo.IndexVo.initTOP_AD(IndexVo.java:147)rn at com.common.html.vo.IndexVo.init(IndexVo.java:42)rn at com.common.html.vo.IndexVo.(IndexVo.java:18)rn (DelegatingConstructorAccessorImpl.java:27)rn at java.lang.reflect.Constructor.newInstance(Constructor.java:513)rn at java.lang.Class.newInstance0(Class.java:355)rn at java.lang.Class.newInstance(Class.java:308)rn at com.common.html.vo.VoFactory.createVo(VoFactory.java:13)rn at com.inte.web.action.CreateAction.execute(CreateAction.java:29)rn at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:419)rn at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:224)rn at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194)rn at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)rn java.sql.SQLException: Io 异常: Connection resetrn at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:112)rn at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:146)rn at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:255)rnrn at org.apache.commons.dbcp.DelegatingPreparedStatement.executeQuery(DelegatingPreparedStatement.java:93)rn at com.common.html.dao.jdbc.JdbcUtil.getList(JdbcUtil.java:350)rn at com.common.html.vo.IndexVo.parseLogo(IndexVo.java:407)rn at com.common.html.vo.IndexVo.init(IndexVo.java:43)rn at com.common.html.vo.IndexVo.(IndexVo.java:18)rn (DelegatingConstructorAccessorImpl.java:27)rn at java.lang.reflect.Constructor.newInstance(Constructor.java:513)rn at java.lang.Class.newInstance0(Class.java:355)rn at java.lang.Class.newInstance(Class.java:308)rn at com.common.html.vo.VoFactory.createVo(VoFactory.java:13)rn at com.inte.web.action.CreateAction.execute(CreateAction.java:29)rn java.sql.SQLException: Already <em>closed</em>.rn at org.apache.commons.dbcp.PoolableConnection.close(PoolableConnection.java:84)rn at org.apache.commons.dbcp.PoolingDataSource$PoolGuardConnectionWrapper.close(PoolingDataSource.java:181)rn at com.common.html.dao.jdbc.JdbcUtil.getList(JdbcUtil.java:377)rn at com.common.html.vo.IndexVo.parseLogo(IndexVo.java:407)rn at com.common.html.vo.IndexVo.init(IndexVo.java:43)rn at com.common.html.vo.IndexVo.(IndexVo.java:18)rn (DelegatingConstructorAccessorImpl.java:27)rn at java.lang.reflect.Constructor.newInstance(Constructor.java:513)rn at java.lang.Class.newInstance0(Class.java:355)rn at java.lang.Class.newInstance(Class.java:308)rn at com.common.html.vo.VoFactory.createVo(VoFactory.java:13)rn at com.inte.web.action.CreateAction.execute(CreateAction.java:29)rn at java.lang.Thread.run(Thread.java:619)rnjava.sql.SQLException: Io 异常: Connection resetrn at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:112)rn at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:146)rn at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:255)rn at oracle.jdbc.driver.T4CPreparedStatement.executeForDescribe(T4CPreparedStatement.java:815)rnrn at org.apache.commons.dbcp.DelegatingPreparedStatement.executeQuery(DelegatingPreparedStatement.java:93)rn at com.common.html.dao.jdbc.JdbcUtil.getList(JdbcUtil.java:350)rn at com.common.html.vo.IndexVo.parserFlash(IndexVo.java:84)rn at com.common.html.vo.IndexVo.init(IndexVo.java:44)rn at com.common.html.vo.IndexVo.(IndexVo.java:18)rn (DelegatingConstructorAccessorImpl.java:27)rn at java.lang.reflect.Constructor.newInstance(Constructor.java:513)rn at java.lang.Class.newInstance0(Class.java:355)rn at java.lang.Class.newInstance(Class.java:308)rn at com.common.html.vo.VoFactory.createVo(VoFactory.java:13)rn at com.inte.web.action.CreateAction.execute(CreateAction.java:29)rn java.sql.SQLException: Already <em>closed</em>.rn at org.apache.commons.dbcp.PoolableConnection.close(PoolableConnection.java:84)rn at org.apache.commons.dbcp.PoolingDataSource$PoolGuardConnectionWrapper.close(PoolingDataSource.java:181)rn at com.common.html.dao.jdbc.JdbcUtil.getList(JdbcUtil.java:377)rn at com.common.html.vo.IndexVo.parserFlash(IndexVo.java:84)rn at com.common.html.vo.IndexVo.init(IndexVo.java:44)rn at com.common.html.vo.IndexVo.(IndexVo.java:18)rn (DelegatingConstructorAccessorImpl.java:27)rn at java.lang.reflect.Constructor.newInstance(Constructor.java:513)rn at java.lang.Class.newInstance0(Class.java:355)rn at java.lang.Class.newInstance(Class.java:308)rn at com.common.html.vo.VoFactory.createVo(VoFactory.java:13)rn at com.inte.web.action.CreateAction.execute(CreateAction.java:29)rn
tomcat连接池,重复多次调用方法出错: Connection is closed
配置了一个tomcat连接池,rnrn然后多次重复调用下面方法[b]getStaticEntiy[/b]() ,部分能获取数据,部分报错误:java.sql.SQLException: Connection is <em>closed</em>rnrn大家帮忙看看,是什么原因导致的?看看有什么优化方法 ?谢了!!rnrn[b]--获取连接池--[/b]rn[code=Java]public class DBPoolrnrn private static DataSource pool;rn staticrn rn Context env = null;rn tryrn rn env = (Context) new InitialContext().lookup("java:comp/env");rn pool = (DataSource) env.lookup("jdbc/DBpool");rn if(pool == null)rn System.err.println("'DBpool' is an unknown DataSource");rn rn catch (NamingException ne)rn rn ne.printStackTrace();rn rn rnrn public static DataSource getPool()rn rn return pool;rn rn[/code]rnrnrn[b]--getStaticEntity() 方法:--[/b]rn[code=Java]rnpublic byte[] getStaticEntiy(String pmname, int scalesize, float x, float y)rn rn byte[] bContent = null;rn tryrn rn conn = DBPool.getPool().getConnection(); //获取连接池中的链接rnrn bContent = scaledao.getStaticEntiy(pmname, scalesize, x, y, conn); //这是一般的从数据库读取流数据的方法 rn rn catch (SQLException e)rn rn e.printStackTrace();rn rn finallyrn rn if(conn!=null)rn tryrn rn conn.close(); //释放链接rn rn catch (SQLException e)rn rn e.printStackTrace();rn rn rn rn rn return bContent;rn rn[/code]rnrn
求助:MYSQL出错:java.sql.SQLException: No operations allowed after connection closed
web应用平台是apache2.51 + tomcat4.1.30 ,采用mysql数据库,都在一台机器上,在并发100以下用户时不会出现任何问题,但在做5次100并发测试时,tomcat控制台报错rnrnjava.sql.SQLException: No operations allowed after <em>connection</em> <em>closed</em>rnrn进入mysql时发现rnMax_used_<em>connection</em>s | 90 rn而mysql的最大连接数据是500,远远高于90,rnshow processlist;也只有50左右rn数据库的连接池的大小是400,rnrnshow status;状态如下:rn| Max_used_<em>connection</em>s | 90 |rn| Not_flushed_key_blocks | 0 |rn| Not_flushed_delayed_rows | 0 |rn| Open_tables | 142 |rn| Open_files | 170 |rn| Open_streams | 0 |rn| Opened_tables | 148 |rn| Questions | 212930 |rn| Qcache_queries_in_cache | 1083 |rn| Qcache_inserts | 31126 |rn| Qcache_hits | 135176 |rn| Qcache_lowmem_prunes | 0 |rn| Qcache_not_cached | 1391 |rn| Qcache_free_memory | 15118992 |rn| Qcache_free_blocks | 319 |rn| Qcache_total_blocks | 2523 |rn| Rpl_status | NULL |rn| Select_full_join | 33886 |rn| Select_full_range_join | 0 |rn| Select_range | 13714 |rn| Select_range_check | 0 |rn| Select_scan | 3236 |rn| Slave_open_temp_tables | 0 |rn| Slave_running | OFF |rn| Slow_launch_threads | 0 |rn| Slow_queries | 1 |rn| Sort_merge_passes | 0 |rn| Sort_range | 9654 |rn| Sort_rows | 239147 |rn| Sort_scan | 8136 |rn| Table_locks_immediate | 98411 |rn| Table_locks_waited | 549 |rn| Threads_cached | 2 |rn| Threads_created | 7428 |rn| Threads_connected | 53 |rn| Threads_running | 1 |rn| Uptime | 4294855340 |rnrn rnrn谁能告诉我是哪出了问题撒,在此谢过了......
redis远程连接后,输入命令出现Error:Server closed the connection
需要将 远程redis服务器的 protected-mode 设置为no。protected-mode默认是开启状态,当处于开启状态并且bind没有设置一组特定的地址也没有设置权限密码,redis只接受来自本机的指令。在没有绑定特定地址和没有设置权限面膜的情况下,就需要设置protected-mode为no。如果不想设置protected-mode为no,可以设置requirepass,然后远程连...
shh登陆后报 Connection closed by foreign host
linux服务器日redhat5.5,装好系统后修改了密码,重启后,发现了shh登陆很卡,登陆成功后,一小段时间就报Connection <em>closed</em> by foreign host,然后连接中断了。网络检查没问题。rnrn请教各位高手,是什么地方配置出错了吗
使用Tomcat数据源,程序抛出java.sql.exception connection is closed
[img=http://img.my.csdn.net/uploads/201211/16/1353071418_4958.jpg][/img]rn出错的是蓝点处rn[img=http://img.my.csdn.net/uploads/201211/16/1353071604_9826.jpg][/img]rnTomcat数据源的配置都没有问题,执行rnauction = AuctionDaoFactory.getAuctionDaoInstance().findById(auid); rn时是没有问题的,不会抛出java.sql.exception :<em>connection</em> is <em>closed</em>异常rnfindById方法的代码rn[img=http://img.my.csdn.net/uploads/201211/16/1353072301_6515.jpg][/img]rn但在之后执行rnAuctionDaoFactory.getAuctionDaoInstance().doUpdate(auid, "hit", auction.getHit()+1);rn[color=#FF0000]就会抛出异常.经过测试后找到了原因,是因为this.dbc.close()这里的原因,只要把findById 里的this.dbc.close()删了,就不会抛出异常,就是不关闭数据库连接就不会抛出异常。rn下面是DAO的代码[/color]rn这是AuctionDaoProxy类的rn[img=http://img.my.csdn.net/uploads/201211/16/1353071785_4546.jpg][/img]rn这是AuctionDaoImpl类的rn[img=http://img.my.csdn.net/uploads/201211/16/1353071923_8556.jpg][/img]rndbc是数据库连接类的实例rn数据库连接类的代码使用的是tomcat 数据源rn[img=http://img.my.csdn.net/uploads/201211/16/1353072005_2990.jpg][/img]rn[img=http://img.my.csdn.net/uploads/201211/16/1353072101_9956.jpg][/img]rn[color=#FF0000]我想知道使用this.dbc.close()后关闭的是整个数据库连接池还是只是释放数据库连接对象,如果只是释放数据库连接对象,为什么释放后会抛出异常?[/color][img=https://forum.csdn.net/PointForum/ui/scripts/csdn/Plugin/003/onion/4.gif][/img]rn
用idftp控件下载东西出现 connection closed gracefully
rt,rn请问这是什么原因,怎么解决,拜谢!!
关于网易企业邮箱发邮件的问题connection closed gracefully
还是关于网易企业邮箱发邮件的问题rn我搜了一下,发现问的人蛮多的,但是解决就没有下文了rnrn问题一,群发(一条一条的发)如何等邮件发完,再发第二条,rn Application.ProcessMessages;rn sleep(5000);rn 有时一封邮件发得快,马上就发完了,但有时发得慢,这个两语句就显得不灵活了,能否得知发完了,再发邮件呢控制语句rnrn问题二,群发,发到两三百条邮件就抛出<em>connection</em> <em>closed</em> gracefully,有没有好的办法rndelphi 通过smpt服务器发送邮 XP 控件TidMesssge SMPTrnrnrnrn问题三,邮件正文不用网页格式,字体可以不同颜色,及大小吗rn
linux svn Could not read status line: connection was closed by proxy server
rn我在linux上安装svn rn安装教程:http://www.blogjava.net/zhouf/articles/251476.htmlrnrnsvn已经安装成功了,服务也启动了,但客服端连接报错。如下:rn[img=http://img.my.csdn.net/uploads/201211/16/1353064385_5773.jpg][/img]rnERROR:OPTIONS of 'http://183.61.171.23:3690/repos1': Could not read status line:<em>connection</em> was <em>closed</em> by proxy server (http://183.61.171.23:3690)rnrn[img=http://img.my.csdn.net/uploads/201211/16/1353064128_9991.jpg][/img]rnrn求大牛指教,小弟先谢了。rnrn
struts+spring+hibernate开发,连接数据库用JNDI 数据库连接池 遇到的 connection closed 问题
请高手帮忙解决问题:我用struts+spring+hibernate开发,连接数据库用JNDI 数据库连接池,用spring管理事务的,可是为什么会报以下错误。 注:并不是每次都报,但几率不小,绝对是有问题的。如果你刷一遍网页就恢复正常。请给我好的解决方案………………谢谢rn[color=#FF0000]2008-11-23 22:09:26,781 WARN [org.hibernate.util.JDBCExceptionReporter] - SQL Error: 0, SQLState: 08003rn2008-11-23 22:09:26,781 ERROR [org.hibernate.util.JDBCExceptionReporter] - No operations allowed after <em>connection</em> <em>closed</em>.rn2008-11-23 22:09:26,781 WARN [org.hibernate.util.JDBCExceptionReporter] - SQL Error: 0, SQLState: 08003rn2008-11-23 22:09:26,781 ERROR [org.hibernate.util.JDBCExceptionReporter] - No operations allowed after <em>connection</em> <em>closed</em>.[/color]rn[color=#00FF00]org.hibernate.exception.GenericJDBCException: could not execute query[/color]rn at org.hibernate.exception.ErrorCodeConverter.handledNonSpecificException(ErrorCodeConverter.java:92)rn at org.hibernate.exception.ErrorCodeConverter.convert(ErrorCodeConverter.java:80)rn at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43)rn at org.hibernate.loader.Loader.doList(Loader.java:1596)rn at org.hibernate.loader.Loader.list(Loader.java:1577)rn at org.hibernate.loader.hql.QueryLoader.list(QueryLoader.java:395)rn at org.hibernate.hql.ast.QueryTranslatorImpl.list(QueryTranslatorImpl.java:271)rn at org.hibernate.impl.SessionImpl.list(SessionImpl.java:844)rn at org.hibernate.impl.QueryImpl.list(QueryImpl.java:74)rn at org.lxh.myzngt.dao.impl.IUserDAOImpl.login(IUserDAOImpl.java:49)rn at org.lxh.myzngt.struts.action.UserAction.login(UserAction.java:145)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:585)rn at org.apache.struts.actions.DispatchAction.dispatchMethod(DispatchAction.java:274)rn at org.apache.struts.actions.DispatchAction.execute(DispatchAction.java:194)rn at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:419)rn at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:224)rn at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194)rn at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)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.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:174)rn at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:77)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.lxh.myzngt.filter.EncodingFilter.doFilter(EncodingFilter.java:22)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:175)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:844)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:595)rn[color=#00FF00]Caused by: com.mysql.jdbc.exceptions.MySQLNonTransientConnectionException: No operations allowed after <em>connection</em> <em>closed</em>.[/color]rn at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:888)rn at com.mysql.jdbc.Connection.checkClosed(Connection.java:1931)rn at com.mysql.jdbc.Connection.prepareStatement(Connection.java:4705)rn at com.mysql.jdbc.Connection.prepareStatement(Connection.java:4671)rn at org.apache.tomcat.dbcp.dbcp.DelegatingConnection.prepareStatement(DelegatingConnection.java:248)rn at org.apache.tomcat.dbcp.dbcp.PoolingDataSource$PoolGuardConnectionWrapper.prepareStatement(PoolingDataSource.java:302)rn at org.hibernate.jdbc.AbstractBatcher.getPreparedStatement(AbstractBatcher.java:396)rn at org.hibernate.jdbc.AbstractBatcher.getPreparedStatement(AbstractBatcher.java:334)rn at org.hibernate.jdbc.AbstractBatcher.prepareQueryStatement(AbstractBatcher.java:88)rn at org.hibernate.loader.Loader.prepareQueryStatement(Loader.java:1162)rn at org.hibernate.loader.Loader.doQuery(Loader.java:390)rn at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:218)rn at org.hibernate.loader.Loader.doList(Loader.java:1593)rn ... 38 more
客户端连接oracle 出错 ora-12537 TNS:connection closed
rnoracle版本9.2.0.1rnrn服务器端(10.1.1.138)rnrn客户端1(10.1.1.21)配置连接,正常rnrn客户端2(10.1.1.22)配置连接,出错 ora-12537 TNS:<em>connection</em> <em>closed</em>;rn但是配置连接到其他的服务器(10.1.1.139)却是可以的rnrn这个问题是怎么回事啊???
TOMCAT配置MYSQL连接池,出现No operations allowed after connection closed
在TOMCAT4里配置MYSQL连接池后,系统持续运行不会出现问题,但如果几分钟没操作就会出现No operations allowed after <em>connection</em> <em>closed</em>异常。rn我仔细检查过URL,已经设置了autoReconnect=true,maxWait也设为-1(无限时等待)。rn请问为什么会出现这种错误?有什么要注意吗?rn谢谢
SSH可用,SFTP登录不上,提示connection closed
1、 可能是密码过期,重置密码即可 2、 初次使用的话,查看sftp-server(/usr/libexec/openssh/sftp-server)是否有权限,没有权限则加权限 可以使用chmod 755 3、 vi /etc/passwd 把要登录用户最后的/bin/false改为/bin/bash ...
FTP上传遇难题:426 data connection closed, transfer aborted.
COMMAND:> LISTrn 150 Opening ASCII mode data <em>connection</em> for /bin/ls.rn 426-Maximum disk quota limited to 20000 Kbytesrn Used disk quota 7 Kbytes, available 19992 Kbytesrn 426 Data <em>connection</em> <em>closed</em>, transfer aborted. rn连不上呀!
技术问题:Connection Closed Gracefully,Indy.IdHTTP的错误,搞了好几天了
POST的时候实际数据已经返回了,可是还是报这个错.........
putty连接出现server unexpectly closed network connection
之前都有的好好的,突然今天就报这样的错误了~NAT和桥接都试了,都PING得通,就是连不上~郁闷~防火墙我也没开啊,怎么会这样呢?????赶快来人啊~
FTP上传问题-426 Data connection closed, transfer aborted.
状态:> Socket 已连接。正在等待欢迎消息...rn 220-Serv-U FTP Server v6.4 for WinSock ready...rn 220-欢迎您使用本虚拟主机.rn 220-请使用CUTEFTP或者LEAFTP等软件上传您的网页.rn 220-注意,如果上传不了,请把FTP软件的PASV模式关掉再试.rn 220-rn 220-您登陆进去的根目录为FTP根目录 rn 220-\--wwwroot 网站根目录,网页请上传到这个目录 rn 220-\--logfiles 网站访问日志文件,本目录不占用您的空间. rn 220-\--database 数据库目录,用来存放ACCESS数据库 rn 220-\--others 用于存放您的其它文件,该类文件不会出现在网站上rn 220-为了保证服务器高速稳定运行,请勿上传江湖游戏,广告交换,rn 220 博彩类网站,大型论坛,软件下载等耗费系统资源的程序。rn状态:> 已连接,正在验证...rn命令:> USER 0724jobrn 331 User name okay, need password.rn命令:> PASS ********rn 230 User logged in, proceed.rn状态:> 登录成功rn命令:> TYPE Irn 200 Type set to I.rn状态:> 该站点支持断点续传rn命令:> PWDrn 257 "/" is current directory.rn命令:> TYPE Arn 200 Type set to A.rn命令:> REST 0rn 350 Restarting at 0. Send STORE or RETRIEVE.rn状态:> 正在重获目录列表...rn命令:> PORT 121,61,213,80,5,40rn 200 PORT Command successful.rn命令:> LISTrn [color=#FF0000]150 Opening ASCII mode data <em>connection</em> for /bin/ls.rn 426-Maximum disk quota limited to 819200 kBytesrn Used disk quota 19054 kBytes, available 800145 kBytesrn 426 Data <em>connection</em> <em>closed</em>, transfer aborted. [/color]rnrn 设置为PORT模式上传(之前用PASV模式不行),到上面提示代码结束处,就没有反应了!rn 请高手帮忙!
帮分析下xshell “Connection closed by foreign host”的原因
远端肯定是正常的,其他同事使用正常。rn本地能连接上远程,但是使用着突然就没有响应了,过几秒就自动断开“Connection <em>closed</em> by foreign host”rnrn初步判断是网络问题,但ping结果显示正常,路由表正常。
GIS空间分析原理与方法下载
建立完善的空间数据分析理论和方法体系,集成先进的空间数据分析工具,增强GIS的空间分析能力,使数据库型GIS上升为分析型GIS,是GIS技术与应用的发展目标和趋势。 相关下载链接:[url=//download.csdn.net/download/lylhqc277374902/2372938?utm_source=bbsseo]//download.csdn.net/download/lylhqc277374902/2372938?utm_source=bbsseo[/url]
电脑锁屏软件(挂机装用)下载
没密码绝对打不开,自定义桌面文字,自定义透明…… 相关下载链接:[url=//download.csdn.net/download/wangbin1143290225/5973631?utm_source=bbsseo]//download.csdn.net/download/wangbin1143290225/5973631?utm_source=bbsseo[/url]
学生学籍成绩管理系统下载
学生学籍成绩管理系统.rar Delphi development 相关下载链接:[url=//download.csdn.net/download/skyinsea_07/6284875?utm_source=bbsseo]//download.csdn.net/download/skyinsea_07/6284875?utm_source=bbsseo[/url]
相关热词 c#检测非法字符 c#双屏截图 c#中怎么关闭线程 c# 显示服务器上的图片 api嵌入窗口 c# c# 控制网页 c# encrypt c#微信网页版登录 c# login 居中 c# 考试软件
我们是很有底线的