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

jsp+连接池+mysql出现很奇怪的错误,从来都没有见过!
我在连接数据时,也能连上,并且能把数据读出来。
但是eclipse的控制台里一直都在报错。
刚开始报:Query:com.mysql.jdbc.PreparedStatement@1b71c12:   select   msgRootId   from   plugin_auction   where   orderId=-1   and   endDate < '1187076329609 '   and   sellType=0---Table   'nihai2007.plugin_auction '   doesn 't   existQuery:com.mysql.jdbc.PreparedStatement@1370ab:   select   msgRootId   from   plugin_auction   where   orderId=-1   and   endDate < '1187076389796 '   and   sellType=0---Table   'nihai2007.plugin_auction '   doesn 't   existQuery:com.mysql.jdbc.PreparedStatement@12ad974:   select   msgRootId   from   plugin_auction   where   orderId=-1   and   endDate < '1187076450000 '   and   sellType=0---Table   'nihai2007.plugin_auction '   doesn 't   existQuery:com.mysql.jdbc.PreparedStatement@1b9ef8c:   select   id   from   sq_message   where   color <> ' '   and   colorExpire < '1187076500250 '---Table   'nihai2007.sq_message '   doesn 't   existQuery:com.mysql.jdbc.PreparedStatement@766186:   select   id   from   sq_message   where   isBold=1   and   boldExpire < '1187076500250 '---Table   'nihai2007.sq_message '   doesn 't   existexecutePreUpdate:com.mysql.jdbc.PreparedStatement@1752bea:   delete   from   sq_online   where   staytime < '1187075602250 '---Table   'nihai2007.sq_online '   doesn 't   exist


就算我不对程序做任何操作,过上一会它会报下面的错误:

java.sql.SQLException:   Table   'nihai2007.sq_online '   doesn 't   exist
at   com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2851)
at   com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1531)
at   com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1622)
at   com.mysql.jdbc.Connection.execSQL(Connection.java:2379)
at   com.mysql.jdbc.Connection.execSQL(Connection.java:2306)
at   com.mysql.jdbc.Statement.executeQuery(Statement.java:1192)
at   sun.reflect.NativeMethodAccessorImpl.invoke0(Native   Method)
at   sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at   sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at   java.lang.reflect.Method.invoke(Method.java:589)
at   org.logicalcobwebs.proxool.ProxyStatement.invoke(ProxyStatement.java:68)
at   org.logicalcobwebs.cglib.proxy.Proxy$ProxyImpl$$EnhancerByCGLIB$$930a1e6f.executeQuery( <generated> )
at   cn.js.fan.db.Conn.executeQuery(Conn.java:128)
at   cn.js.fan.base.ObjectCache.getObjectCount(ObjectCache.java:219)
at   com.redmoon.forum.OnlineUserCache.getAllCount(OnlineUserCache.java:27)
at   com.redmoon.forum.OnlineUserCache.refreshAll(OnlineUserCache.java:73)
at   com.redmoon.forum.OnlineUserDb.refreshOnlineUser(OnlineUserDb.java:77)
at   com.redmoon.forum.ForumSchedulerUnit.OnTimer(ForumSchedulerUnit.java:77)
at   cn.js.fan.kernel.Scheduler.run(Scheduler.java:64)
我就奇怪了,怎么也找不到问题在哪?
我用的是一个自己写的连接池,连接池的配置如下:
driver   =com.mysql.jdbc.Driver
url   =jdbc:mysql://localhost:3306/nihai2007?useUnicode=true&amp;characterEncoding=UTF-8&amp;zeroDateTimeBehavior=convertToNull
user   =root
password   =root