Java开发网 Java开发网
注册 | 登录 | 帮助 | 搜索 | 排行榜 | 发帖统计  

您没有登录

» Java开发网 » Java EE 综合讨论区 » Hibernate  

按打印兼容模式打印这个话题 打印话题    把这个话题寄给朋友 寄给朋友    该主题的所有更新都将Email到你的邮箱 订阅主题
flat modethreaded modego to previous topicgo to next topicgo to back
作者 hibernate could not execute query问题
zilanfeixue





发贴: 6
积分: 0
于 2006-11-27 09:44 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
在一个系统的登陆校验中,有时候刚登上系统(对数据库进行第一次查询)就会抛错并且产生一个could not execute query的提示。但是代码是可用的,多刷新几次就可以正常使用了。
请问哪位也有碰到这样的现象,或能告诉我是怎么回事吗?
谢谢。



作者 Re:hibernate could not execute query问题 [Re:zilanfeixue]
zilanfeixue





发贴: 6
积分: 0
于 2006-11-28 12:08 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
有人在乜。。。。。


作者 Re:hibernate could not execute query问题 [Re:zilanfeixue]
sljsuper





发贴: 30
积分: 0
于 2006-12-05 15:34 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
以前用hibernate2做过一个项目也出现过类似问题,后来用3就OK了,不知道是不是hibernate的bug。


作者 Re:hibernate could not execute query问题 [Re:zilanfeixue]
zilanfeixue





发贴: 6
积分: 0
于 2006-12-08 15:38 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
我现在就是用的3的啊。还是这样子。
页面开始是可以访问的,用一段时间后就连接不上了。产生org.hibernate.exception.JDBCConnectionException: could not execute query
具体:
type Exception report

message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

org.hibernate.exception.JDBCConnectionException: could not execute query
  org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:74)
  org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43)
  org.hibernate.loader.Loader.doList(Loader.java:2148)
  org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2029)
  org.hibernate.loader.Loader.list(Loader.java:2024)
  org.hibernate.loader.hql.QueryLoader.list(QueryLoader.java:375)
  org.hibernate.hql.ast.QueryTranslatorImpl.list(QueryTranslatorImpl.java:308)
  org.hibernate.engine.query.HQLQueryPlan.performList(HQLQueryPlan.java:153)
  org.hibernate.impl.SessionImpl.list(SessionImpl.java:1106)
  org.hibernate.impl.QueryImpl.list(QueryImpl.java:79)
  servlet.UserCheckServlet.doUserVerifyEx(UserCheckServlet.java:50)
  servlet.UserCheckServlet.doPost(UserCheckServlet.java:29)
  javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
  javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
  filter.EncodeFilter.doFilter(EncodeFilter.java:12)

note The full stack trace of the root cause is available in the Apache Tomcat/5.5.15 logs.



作者 Re:hibernate could not execute query问题 [Re:zilanfeixue]
zilanfeixue





发贴: 6
积分: 0
于 2006-12-10 16:15 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
顶一下


作者 Re:hibernate could not execute query问题 [Re:zilanfeixue]
z15920007





发贴: 2
积分: 0
于 2007-01-01 18:55 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
有兴趣的朋友可以加群探讨Struts+hibernate+Spring

群号:5979637




flat modethreaded modego to previous topicgo to next topicgo to back
  已读帖子
  新的帖子
  被删除的帖子
Jump to the top of page

   Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent
Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1
客服电话 18559299278    客服信箱 714923@qq.com    客服QQ 714923