亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? communicationsexception.java

?? mysql jdbc驅動程序 mysql jdbc驅動程序 mysql jdbc驅動程序 mysql jdbc驅動程序
?? JAVA
字號:
/* Copyright (C) 2002-2007 MySQL AB This program is free software; you can redistribute it and/or modify it under the terms of version 2 of the GNU General Public License as  published by the Free Software Foundation. There are special exceptions to the terms and conditions of the GPL  as it is applied to this software. View the full text of the  exception in file EXCEPTIONS-CONNECTOR-J in the directory of this  software distribution. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA */package com.mysql.jdbc;import java.net.BindException;import java.sql.SQLException;/** * An exception to represent communications errors with the database. *  * Attempts to provide 'friendler' error messages to end-users, including last * time a packet was sent to the database, what the client-timeout is set to, * and whether the idle time has been exceeded. *  * @author Mark Matthews *  * @version $Id: CommunicationsException.java,v 1.1.2.1 2005/05/13 18:58:37 *          mmatthews Exp $ */public class CommunicationsException extends SQLException {	private static final long DEFAULT_WAIT_TIMEOUT_SECONDS = 28800;	private static final int DUE_TO_TIMEOUT_FALSE = 0;	private static final int DUE_TO_TIMEOUT_MAYBE = 2;	private static final int DUE_TO_TIMEOUT_TRUE = 1;	private String exceptionMessage;	private boolean streamingResultSetInPlay = false;		public CommunicationsException(Connection conn, long lastPacketSentTimeMs,			Exception underlyingException) {		long serverTimeoutSeconds = 0;		boolean isInteractiveClient = false;		if (conn != null) {			isInteractiveClient = conn.getInteractiveClient();			String serverTimeoutSecondsStr = null;			if (isInteractiveClient) {				serverTimeoutSecondsStr = conn						.getServerVariable("interactive_timeout"); //$NON-NLS-1$			} else {				serverTimeoutSecondsStr = conn						.getServerVariable("wait_timeout"); //$NON-NLS-1$			}			if (serverTimeoutSecondsStr != null) {				try {					serverTimeoutSeconds = Long							.parseLong(serverTimeoutSecondsStr);				} catch (NumberFormatException nfe) {					serverTimeoutSeconds = 0;				}			}		}		StringBuffer exceptionMessageBuf = new StringBuffer();		if (lastPacketSentTimeMs == 0) {			lastPacketSentTimeMs = System.currentTimeMillis();		}		long timeSinceLastPacket = (System.currentTimeMillis() - lastPacketSentTimeMs) / 1000;		int dueToTimeout = DUE_TO_TIMEOUT_FALSE;		StringBuffer timeoutMessageBuf = null;		if (this.streamingResultSetInPlay) {			exceptionMessageBuf.append(Messages					.getString("CommunicationsException.ClientWasStreaming")); //$NON-NLS-1$		} else {				if (serverTimeoutSeconds != 0) {				if (timeSinceLastPacket > serverTimeoutSeconds) {					dueToTimeout = DUE_TO_TIMEOUT_TRUE;						timeoutMessageBuf = new StringBuffer();						timeoutMessageBuf.append(Messages							.getString("CommunicationsException.2")); //$NON-NLS-1$						if (!isInteractiveClient) {						timeoutMessageBuf.append(Messages								.getString("CommunicationsException.3")); //$NON-NLS-1$					} else {						timeoutMessageBuf.append(Messages								.getString("CommunicationsException.4")); //$NON-NLS-1$					}					}			} else if (timeSinceLastPacket > DEFAULT_WAIT_TIMEOUT_SECONDS) {				dueToTimeout = DUE_TO_TIMEOUT_MAYBE;					timeoutMessageBuf = new StringBuffer();					timeoutMessageBuf.append(Messages						.getString("CommunicationsException.5")); //$NON-NLS-1$				timeoutMessageBuf.append(Messages						.getString("CommunicationsException.6")); //$NON-NLS-1$				timeoutMessageBuf.append(Messages						.getString("CommunicationsException.7")); //$NON-NLS-1$				timeoutMessageBuf.append(Messages						.getString("CommunicationsException.8")); //$NON-NLS-1$			}				if (dueToTimeout == DUE_TO_TIMEOUT_TRUE					|| dueToTimeout == DUE_TO_TIMEOUT_MAYBE) {					exceptionMessageBuf.append(Messages						.getString("CommunicationsException.9")); //$NON-NLS-1$				exceptionMessageBuf.append(timeSinceLastPacket);				exceptionMessageBuf.append(Messages						.getString("CommunicationsException.10")); //$NON-NLS-1$					if (timeoutMessageBuf != null) {					exceptionMessageBuf.append(timeoutMessageBuf);				}					exceptionMessageBuf.append(Messages						.getString("CommunicationsException.11")); //$NON-NLS-1$				exceptionMessageBuf.append(Messages						.getString("CommunicationsException.12")); //$NON-NLS-1$				exceptionMessageBuf.append(Messages						.getString("CommunicationsException.13")); //$NON-NLS-1$				} else {				//				// Attempt to determine the reason for the underlying exception				// (we can only make a best-guess here)				//					if (underlyingException instanceof BindException) {					if (conn.getLocalSocketAddress() != null && 							!Util.interfaceExists(conn.getLocalSocketAddress())) {						exceptionMessageBuf.append(Messages							.getString("CommunicationsException.19a")); //$NON-NLS-1$					} else {						// too many client connections???						exceptionMessageBuf.append(Messages								.getString("CommunicationsException.14")); //$NON-NLS-1$						exceptionMessageBuf.append(Messages								.getString("CommunicationsException.15")); //$NON-NLS-1$						exceptionMessageBuf.append(Messages								.getString("CommunicationsException.16")); //$NON-NLS-1$						exceptionMessageBuf.append(Messages								.getString("CommunicationsException.17")); //$NON-NLS-1$						exceptionMessageBuf.append(Messages								.getString("CommunicationsException.18")); //$NON-NLS-1$						exceptionMessageBuf.append(Messages								.getString("CommunicationsException.19")); //$NON-NLS-1$					}				}			}		}				if (exceptionMessageBuf.length() == 0) {			// We haven't figured out a good reason, so copy it.			exceptionMessageBuf.append(Messages					.getString("CommunicationsException.20")); //$NON-NLS-1$			if (underlyingException != null) {				exceptionMessageBuf.append(Messages						.getString("CommunicationsException.21")); //$NON-NLS-1$				exceptionMessageBuf.append(Util						.stackTraceToString(underlyingException));			}						if (conn != null && conn.getMaintainTimeStats() && 					!conn.getParanoid()) {				exceptionMessageBuf.append("\n\nLast packet sent to the server was ");				exceptionMessageBuf.append(System.currentTimeMillis() - lastPacketSentTimeMs);				exceptionMessageBuf.append(" ms ago.");			}		}		this.exceptionMessage = exceptionMessageBuf.toString();	}	/*	 * (non-Javadoc)	 * 	 * @see java.lang.Throwable#getMessage()	 */	public String getMessage() {		return this.exceptionMessage;	}	/*	 * (non-Javadoc)	 * 	 * @see java.sql.SQLException#getSQLState()	 */	public String getSQLState() {		return SQLError.SQL_STATE_COMMUNICATION_LINK_FAILURE;	}		protected void setWasStreamingResults() {		this.streamingResultSetInPlay = true;	}}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲视频免费在线观看| 日韩影院免费视频| 久久伊99综合婷婷久久伊| 欧美性淫爽ww久久久久无| 在线观看亚洲一区| 91视频91自| 911精品国产一区二区在线| 91麻豆精品国产91久久久更新时间| 91视频国产观看| 91丨porny丨中文| 欧美三区在线观看| 国产亚洲综合在线| ●精品国产综合乱码久久久久| 成人高清视频在线观看| 国产精品18久久久久| 91传媒视频在线播放| 欧美精品一区二区蜜臀亚洲| 亚洲免费av观看| 国产精品99久久久久久久女警 | 午夜电影网亚洲视频| 国产美女在线精品| 欧美三级日韩三级| 国产精品天美传媒沈樵| 久久国产精品露脸对白| 色狠狠av一区二区三区| 欧美国产成人在线| 国产一区999| 欧美成人三级电影在线| 一区二区三区精品在线观看| 不卡一区二区三区四区| 久久亚洲欧美国产精品乐播| 26uuu色噜噜精品一区| 亚洲自拍偷拍图区| 色激情天天射综合网| 亚洲激情成人在线| 99久久精品国产导航| 亚洲免费资源在线播放| 久久99精品久久久久久国产越南| 欧美丰满一区二区免费视频| 亚洲一卡二卡三卡四卡无卡久久| 91麻豆精品国产91久久久久| 国产日韩欧美麻豆| 91视频国产观看| 亚洲午夜久久久久久久久久久 | 老司机免费视频一区二区三区| 91福利精品第一导航| 亚洲综合色在线| 韩国av一区二区三区四区| 久久久亚洲午夜电影| 91一区二区在线观看| 久久精品国产久精国产| 中文字幕在线观看不卡| 91在线播放网址| 国产欧美一区二区三区鸳鸯浴| 日本伊人色综合网| 欧美日韩高清一区二区| 免费高清在线一区| 久久精品一区四区| 69久久99精品久久久久婷婷| 国产成人日日夜夜| 亚洲成人av在线电影| 亚洲蜜臀av乱码久久精品蜜桃| 7777精品伊人久久久大香线蕉超级流畅| 国产精品456| 亚洲在线视频一区| 中文字幕亚洲欧美在线不卡| 欧美色爱综合网| 成人小视频在线| 免费在线观看一区| 亚洲一区二区三区四区的| 一区二区三区在线观看国产| 国产精品久久一卡二卡| 日韩一级完整毛片| 欧美xingq一区二区| 国产欧美一区二区精品秋霞影院| 亚洲欧洲另类国产综合| 视频一区国产视频| 国产福利一区二区三区视频| 91久久线看在观草草青青| 91精品在线观看入口| 欧美大片日本大片免费观看| 日韩精品一区二区三区三区免费| 国产精品你懂的| 亚洲va国产天堂va久久en| 国产高清久久久| 91精品视频网| 日日夜夜免费精品| 亚洲成人av电影在线| 国产一区二区视频在线播放| av电影天堂一区二区在线观看| 精品理论电影在线观看| 国产欧美视频在线观看| 日韩成人dvd| 色哟哟国产精品免费观看| 国产精品久久久久影院色老大| 男女男精品视频网| 国产+成+人+亚洲欧洲自线| 日韩精品中文字幕在线一区| 亚洲欧美乱综合| 99久久久精品| 1000部国产精品成人观看| 美日韩黄色大片| 久久久久国产精品麻豆| 国产精品一区二区三区网站| 久久婷婷国产综合精品青草| 五月天欧美精品| 91精品国产综合久久精品app| 亚洲va韩国va欧美va| 欧美日本一区二区在线观看| 亚洲综合久久久久| 欧美日韩在线播放| 国内精品久久久久影院一蜜桃| 精品国产乱码久久| 成人激情午夜影院| 一区二区三区在线视频免费观看| 色综合久久综合网| 亚洲成av人片一区二区梦乃| 日韩三级视频在线观看| 国产成人在线视频播放| 亚洲图片自拍偷拍| 欧美va亚洲va在线观看蝴蝶网| 久久不见久久见免费视频7| 欧美极品少妇xxxxⅹ高跟鞋| 91 com成人网| 国产精品羞羞答答xxdd| 亚洲gay无套男同| 久久综合中文字幕| 色狠狠综合天天综合综合| 日本欧美大码aⅴ在线播放| 欧美激情一二三区| 欧美日韩一区二区三区四区| 国产精品一区二区三区99| 秋霞午夜av一区二区三区| 国产精品国产三级国产专播品爱网 | 久久综合综合久久综合| 亚洲日本va午夜在线影院| 日韩欧美成人午夜| 色天天综合久久久久综合片| 国产九色精品成人porny| 麻豆一区二区99久久久久| 天堂va蜜桃一区二区三区 | 中文字幕一区二区日韩精品绯色| 欧美日韩免费高清一区色橹橹| 欧美日韩一区二区欧美激情| 欧美精品一区二区久久久| 国产精品初高中害羞小美女文| 亚洲乱码日产精品bd| 亚洲视频一区二区在线| 日本一区二区综合亚洲| 一区二区三区日韩精品视频| 中文字幕综合网| 免费在线欧美视频| 春色校园综合激情亚洲| 51午夜精品国产| 欧美国产精品劲爆| 日本在线不卡一区| 波多野结衣在线aⅴ中文字幕不卡| 欧美专区日韩专区| 久久综合久色欧美综合狠狠| 亚洲色图欧洲色图婷婷| 天堂va蜜桃一区二区三区漫画版| 高清视频一区二区| 欧美成人国产一区二区| 综合精品久久久| 国内精品第一页| 日韩欧美一区二区久久婷婷| 国产精品黄色在线观看| 国产成人亚洲综合a∨婷婷| 日韩一级黄色大片| 麻豆免费精品视频| 欧美日韩夫妻久久| 天天色天天操综合| 色婷婷综合久久久中文一区二区| 中文字幕欧美国产| 91影院在线免费观看| 久久一二三国产| 成人av资源下载| 中文子幕无线码一区tr| 国产伦精品一区二区三区视频青涩| 欧美性videosxxxxx| 亚洲成av人综合在线观看| 欧美午夜精品一区二区三区| 人禽交欧美网站| 欧美成人精品3d动漫h| 懂色av一区二区在线播放| 国产女人aaa级久久久级| 972aa.com艺术欧美| 亚洲精品视频在线观看网站| 欧美一区日韩一区| 国产精品白丝av| 污片在线观看一区二区| 欧美肥妇bbw| 成人精品亚洲人成在线| 男人操女人的视频在线观看欧美| 久久久精品黄色| 日韩一级片网站| 51精品国自产在线| 欧美在线观看你懂的| 亚洲成人tv网| 亚洲猫色日本管|