jsp+连接池+mysql出现很奇怪的异常_MySQL, Oracle及数据库讨论区_Weblogic技术|Tuxedo技术|中间件技术|Oracle论坛|JAVA论坛|Linux/Unix技术|hadoop论坛_联动北方技术论坛  
网站首页 | 关于我们 | 服务中心 | 经验交流 | 公司荣誉 | 成功案例 | 合作伙伴 | 联系我们 |
联动北方-国内领先的云技术服务提供商
»  游客             当前位置:  论坛首页 »  自由讨论区 »  MySQL, Oracle及数据库讨论区 »
总帖数
1
每页帖数
101/1页1
返回列表
0
发起投票  发起投票 发新帖子
查看: 2063 | 回复: 0   主题: jsp+连接池+mysql出现很奇怪的异常        下一篇 
renruishen
注册用户
等级:新兵
经验:58
发帖:79
精华:0
注册:2011-12-25
状态:离线
发送短消息息给renruishen 加好友    发送短消息息给renruishen 发消息
发表于: IP:您无权察看 2014-12-15 17:56:23 | [全部帖] [楼主帖] 楼主

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
maxconn   =20


--转自 北京联动北方科技有限公司




赞(0)    操作        顶端 
总帖数
1
每页帖数
101/1页1
返回列表
发新帖子
请输入验证码: 点击刷新验证码
您需要登录后才可以回帖 登录 | 注册
技术讨论