日期:2014-05-18  浏览次数:20683 次

刚出炉的新问题(用过proxool的请进......)
org.logicalcobwebs.proxool.Prototyper   sweep
严重:   Prototype
java.sql.SQLException:   Network   error   IOException:   No   route   to   host:   connect
at   net.sourceforge.jtds.jdbc.ConnectionJDBC2. <init> (ConnectionJDBC2.java:372)
at   net.sourceforge.jtds.jdbc.ConnectionJDBC3. <init> (ConnectionJDBC3.java:50)
at   net.sourceforge.jtds.jdbc.Driver.connect(Driver.java:178)
at   java.sql.DriverManager.getConnection(Unknown   Source)
at   java.sql.DriverManager.getConnection(Unknown   Source)
at   org.logicalcobwebs.proxool.DefaultConnectionBuilder.buildConnection(DefaultConnectionBuilder.java:39)
at   org.logicalcobwebs.proxool.Prototyper.buildConnection(Prototyper.java:159)
at   org.logicalcobwebs.proxool.Prototyper.sweep(Prototyper.java:102)
at   org.logicalcobwebs.proxool.PrototyperThread.run(PrototyperThread.java:44)
Caused   by:   java.net.NoRouteToHostException:   No   route   to   host:   connect
at   java.net.PlainSocketImpl.socketConnect(Native   Method)
at   java.net.PlainSocketImpl.doConnect(Unknown   Source)
at   java.net.PlainSocketImpl.connectToAddress(Unknown   Source)
at   java.net.PlainSocketImpl.connect(Unknown   Source)
at   java.net.SocksSocketImpl.connect(Unknown   Source)
at   java.net.Socket.connect(Unknown   Source)
at   sun.reflect.GeneratedMethodAccessor138.invoke(Unknown   Source)
at   sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown   Source)
at   java.lang.reflect.Method.invoke(Unknown   Source)
at   net.sourceforge.jtds.jdbc.SharedSocket.createSocketForJDBC3(SharedSocket.java:289)
at   net.sourceforge.jtds.jdbc.SharedSocket. <init> (SharedSocket.java:250)
at   net.sourceforge.jtds.jdbc.ConnectionJDBC2. <init> (ConnectionJDBC2.java:297)
...   8   more

tomcat+proxool连接池,今天中午网站打不开...看日志发现都是这些异常.....
大家给点意见啊.....谢谢

------解决方案--------------------
通常为无法到达远程主机,原因是防火墙干扰或者中间路由器停机
把数据库的服务器的防火墙关掉.telnet 数据的服务器IP 数据库端口 看看