这个项目前几天都还能运行正常,昨天突然就出现了这个错误
错误如下:
java.sql.SQLException: org.logicalcobwebs.proxool.ProxoolException: Unexpected prototyping problem
at org.logicalcobwebs.proxool.ConnectionPool.getConnection(ConnectionPool.java:224)
at org.logicalcobwebs.proxool.ProxoolDriver.connect(ProxoolDriver.java:89)
at java.sql.DriverManager.getConnection(DriverManager.java:525)
at java.sql.DriverManager.getConnection(DriverManager.java:193)
at com.xxxx.asse.db.DBConnection.getConnection(DBConnection.java:31)
at com.xxxx.asse.db.DB.initialConnection(DB.java:77)
at com.xxxx.asse.db.DB.getData(DB.java:1008)
at com.xxxx.asse.profession.statistics.statisticsManager.selecttxtj)
自己调试后发现:
Class.forName("org.logicalcobwebs.proxool.ProxoolDriver");
Connection conn = DriverManager.getConnection("proxool.OrclConn");
第二句代码出错了,没有执行
为什么???(关于配置文件,我看了很多次了,是没有写错的)
------解决方案--------------------
DriverManager.getConnection(url,username,password)