Topic: hibernate could not execute query问题

  Print this page

1.hibernate could not execute query问题 Copy to clipboard
Posted by: zilanfeixue
Posted on: 2006-11-27 09:44

在一个系统的登陆校验中,有时候刚登上系统(对数据库进行第一次查询)就会抛错并且产生一个could not execute query的提示。但是代码是可用的,多刷新几次就可以正常使用了。
请问哪位也有碰到这样的现象,或能告诉我是怎么回事吗?
谢谢。

2.Re:hibernate could not execute query问题 [Re: zilanfeixue] Copy to clipboard
Posted by: zilanfeixue
Posted on: 2006-11-28 12:08

有人在乜。。。。。

3.Re:hibernate could not execute query问题 [Re: zilanfeixue] Copy to clipboard
Posted by: sljsuper
Posted on: 2006-12-05 15:34

以前用hibernate2做过一个项目也出现过类似问题,后来用3就OK了,不知道是不是hibernate的bug。

4.Re:hibernate could not execute query问题 [Re: zilanfeixue] Copy to clipboard
Posted by: zilanfeixue
Posted on: 2006-12-08 15:38

我现在就是用的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.

5.Re:hibernate could not execute query问题 [Re: zilanfeixue] Copy to clipboard
Posted by: zilanfeixue
Posted on: 2006-12-10 16:15

顶一下

6.Re:hibernate could not execute query问题 [Re: zilanfeixue] Copy to clipboard
Posted by: z15920007
Posted on: 2007-01-01 18:55

有兴趣的朋友可以加群探讨Struts+hibernate+Spring

群号:5979637


   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