当前位置: 代码迷 >> Java Web开发 >> tomcat报错解决方案
  详细解决方案

tomcat报错解决方案

热度:48   发布时间:2016-04-17 16:34:31.0
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间也应该是必须截获异常的
不然就会抛出
  相关解决方案