tomcat报错
2007-2-5 18:14:07 org.logicalcobwebs.proxool.Prototyper sweep
严重: Prototype
java.sql.SQLException: Unable to connect to any hosts due to exception:
java.lang.ArrayIndexOutOfBoundsException: 40
at com.mysql.jdbc.Connection.createNewIO(Connection.java:1797)
at com.mysql.jdbc.Connection. <init> (Connection.java:562)
at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:361)
at java.sql.DriverManager.getConnection(DriverManager.java:525)
at java.sql.DriverManager.getConnection(DriverManager.java:140)
at org.logicalcobwebs.proxool.ProxyFactory.buildProxyConnection(ProxyFactory.java:41)
at org.logicalcobwebs.proxool.Prototyper.buildConnection(Prototyper.java:150)
at org.logicalcobwebs.proxool.Prototyper.sweep(Prototyper.java:95)
at org.logicalcobwebs.proxool.PrototyperThread.run(PrototyperThread.java:42)
数据均可以查出
控制台不断报错
------解决方案--------------------ArrayIndexOutOfBounds
数组越界异常
你把你的sql语句之间加上try{}catch{]
截获一下异常
sql间也应该是必须截获异常的
不然就会抛出