在我的电脑(xp)上没出现问题,换了个windows2003就出现了
com.mysql.jdbc.CommunicationsException: The driver was unable to create a connec
tion due to an inability to establish the client portion of a socket.This is usually caused by a limit on the number of sockets imposed by the operat
ing system. This limit is usually configurable.For Unix-based platforms, see the manual page for the 'ulimit' command. Kernel o
r system reconfiguration may also be required.For Windows-based platforms, see Microsoft Knowledge Base Article 196271 (Q19627
1).
at com.mysql.jdbc.Connection.createNewIO(Connection.java:2820)
at com.mysql.jdbc.Connection.<init>(Connection.java:1553)
at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java
:285)
at java.sql.DriverManager.getConnection(Unknown Source)
at java.sql.DriverManager.getConnection(Unknown Source)
at upgradedb.DBUtil.getMySqlConn(DBUtil.java:32)
at upgradedb.MysqlDB.getAltEname(MysqlDB.java:109)
at upgradedb.XmlParse.parseTraitStrTrees(XmlParse.java:258)
at upgradedb.XmlParse.parseTraitItems(XmlParse.java:235)
at upgradedb.XmlParse.parseAll(XmlParse.java:75)
at upgradedb.UpgradeDBView$UpgradedbTask.doInBackground(UpgradeDBView.ja
va:454)
com.mysql.jdbc.CommunicationsException: The driver was unable to create a connec
tion due to an inability to establish the client portion of a socket.This is usually caused by a limit on the number of sockets imposed by the operat
ing system. This limit is usually configurable.For Unix-based platforms, see the manual page for the 'ulimit' command. Kernel o
r system reconfiguration may also be required.For Windows-based platforms, see Microsoft Knowledge Base Article 196271 (Q19627
1).
at com.mysql.jdbc.Connection.createNewIO(Connection.java:2820)
at com.mysql.jdbc.Connection.<init>(Connection.java:1553)
at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java
:285)
at java.sql.DriverManager.getConnection(Unknown Source)
at java.sql.DriverManager.getConnection(Unknown Source)
at upgradedb.DBUtil.getMySqlConn(DBUtil.java:32)
at upgradedb.MysqlDB.getAltEname(MysqlDB.java:109)
at upgradedb.XmlParse.parseTraitStrTrees(XmlParse.java:258)
at upgradedb.XmlParse.parseTraitItems(XmlParse.java:235)
at upgradedb.XmlParse.parseAll(XmlParse.java:75)
at upgradedb.UpgradeDBView$UpgradedbTask.doInBackground(UpgradeDBView.ja
va:454)
ing system. This limit is usually configurable.检查你的操作系统的并发sockets 的允许数量。