首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > JAVA > Java Exception >

org.hibernate.exception.SQLGrammarException: could not execute query -to

2014-01-26 
HTTP Status 500 ---------------------------------------------------------------------------------typ

HTTP Status 500 -
 
  --------------------------------------------------------------------------------
 
  type Exception report
 
  message
 
  description The server encountered an internal error () that prevented it from fulfilling this request.
 
  exception
 
  javax.servlet.ServletException: could not execute query
  org.apache.struts.action.RequestProcessor.processException(RequestProcessor.java:514)
  org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421)
  org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:224)
  org.apache.struts.action.ActionServlet.process(ActionServlet.java:1192)
  org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:430)
  javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
  javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
 
 
  root cause
 
  org.hibernate.exception.SQLGrammarException: could not execute query
  org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:65)
  org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43)
  org.hibernate.loader.Loader.doList(Loader.java:2150)
  org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2026)
  org.hibernate.loader.Loader.list(Loader.java:2021)
  org.hibernate.loader.hql.QueryLoader.list(QueryLoader.java:369)
  org.hibernate.hql.ast.QueryTranslatorImpl.list(QueryTranslatorImpl.java:296)
  org.hibernate.impl.SessionImpl.list(SessionImpl.java:992)
  org.hibernate.impl.QueryImpl.list(QueryImpl.java:74)
  classmate.DbOperate.getUser(DbOperate.java:23)
  classmate.RegistAction.execute(RegistAction.java:26)
  org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:419)
  org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:224)
  org.apache.struts.action.ActionServlet.process(ActionServlet.java:1192)
  org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:430)
  javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
  javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
 
 
  note The full stack trace of the root cause is available in the Apache Tomcat/5.0.28 logs.   

 

------解决方法--------------------------------------------------------
org.hibernate.exception.SQLGrammarException: could not execute query
  org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:65)
 
 
  就这两句话就知道是哪里出问题了阿。

        

热点排行