org.hibernate.exception.SQLGrammarException
2009-02-27 16:37
232 查看
具体错误信息就是这样的
org.hibernate.exception.SQLGrammarException: could not execute query
at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:67)
at org.hibernate.engine.query.HQLQueryPlan.performList(HQLQueryPlan.java:153)
at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1106)
at org.hibernate.impl.QueryImpl.list(QueryImpl.java:79)
at org.zero.space.dao.BaseHibernateDAO.search(BaseHibernateDAO.java:112)
at org.zero.space.dao.impl.HouseInfoHibernateDAOImpl.search(HouseInfoHibernateDAOImpl.java:50)
at org.zero.space.biz.impl.HouseInfoBizImpl.search(HouseInfoBizImpl.java:37)
at org.zero.space.action.HouseInfoAction.toList(HouseInfoAction.java:51)
at java.lang.Thread.run(Thread.java:619)
Caused by: com.microsoft.sqlserver.jdbc.SQLServerException: 在将 varchar 值 'null' 转换成数据类型 int 时失败。
org.hibernate.exception.SQLGrammarException: 顾名思义, 就是sql语法错误
org.hibernate.exception.SQLGrammarException: could not execute query
at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:67)
at org.hibernate.engine.query.HQLQueryPlan.performList(HQLQueryPlan.java:153)
at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1106)
at org.hibernate.impl.QueryImpl.list(QueryImpl.java:79)
at org.zero.space.dao.BaseHibernateDAO.search(BaseHibernateDAO.java:112)
at org.zero.space.dao.impl.HouseInfoHibernateDAOImpl.search(HouseInfoHibernateDAOImpl.java:50)
at org.zero.space.biz.impl.HouseInfoBizImpl.search(HouseInfoBizImpl.java:37)
at org.zero.space.action.HouseInfoAction.toList(HouseInfoAction.java:51)
at java.lang.Thread.run(Thread.java:619)
Caused by: com.microsoft.sqlserver.jdbc.SQLServerException: 在将 varchar 值 'null' 转换成数据类型 int 时失败。
org.hibernate.exception.SQLGrammarException: 顾名思义, 就是sql语法错误
相关文章推荐
- org.hibernate.exception.SQLGrammarException:Could not execute JDBC batch update问题的解决
- 解决org.hibernate.exception.SQLGrammarException:could not insert
- 报错org.springframework.dao.InvalidDataAccessResourceUsageException: could not extract ResultSet; SQL [n/a]; nested exception is org.hibernate.exception.SQLGrammarException: could not extract ResultSet"
- org.hibernate.exception.SQLGrammarException: could notinsert: [com.michael.model.Storen]
- org.hibernate.exception.SQLGrammarException: could not insert
- 关于org.hibernate.exception.SQLGrammarException: could not insert
- org.hibernate.exception.SQLGrammarException: Cannot open connection解决
- org.hibernate.exception.SQLGrammarException: Could not execute JDBC batch update
- 用struts2标签 出现黄色的提示org.hibernate.exception.SQLGrammarException: could not execute qu
- “org.hibernate.exception.SQLGrammarException: could not insert...”解决方法
- org.hibernate.exception.SQLGrammarException: 关键字 'user' 附近有语法错误。
- org.hibernate.exception.SQLGrammarException: could not inYou have an error in your SQL syntax;完美解决错误
- 异常积累:org.hibernate.exception.SQLGrammarException: could not execute query-hibernate解释后的sql语句有问题
- hibernate创建数据库时报错:org.hibernate.exception.SQLGrammarException: could not execute statement
- org.hibernate.exception.SQLGrammarException: could not execute query
- nested exception is org.hibernate.exception.SQLGrammarException: Could not execute JDBC batch update
- org.hibernate.exception.SQLGrammarException: could not insert:
- org.hibernate.exception.SQLGrammarException: could not execute statement
- org.hibernate.exception.SQLGrammarExceptionCould not execute JDBC batch update的问题
- Table 't21.tb_user' doesn't exist...nested exception is org.hibernate.exception.SQLGrammarException: