异常积累:org.hibernate.exception.SQLGrammarException: could not execute query-hibernate解释后的sql语句有问题
2016-09-11 00:00
579 查看
错误信息
Hibernate:
select
first 0 agentstate0_.id as id2_,
agentstate0_.agentid as agentid2_,
agentstate0_.agentpassword as agentpas3_2_,
agentstate0_.agenttype as agenttype2_,
agentstate0_.apptype as apptype2_,
agentstate0_.autoidle as autoidle2_,
agentstate0_.autoworkinterval as autowork7_2_,
agentstate0_.autoworkon as autoworkon2_,
agentstate0_.devicenumber as devicenu9_2_,
agentstate0_.donotdistribute as donotdi10_2_,
agentstate0_.group_id as group11_2_,
agentstate0_.phonetype as phonetype2_
from
cts_agentinfo agentstate0_
where
agentstate0_.group_id='999999'
WARN - SQL Error: -201, SQLState: 42000
ERROR - A syntax error has occurred.
ERROR - Error:
org.hibernate.exception.SQLGrammarException: could not execute query
原因1:hibernate方言有问题
原因2:hibernate设置分页的first与max为0;
相关文章推荐
- org.hibernate.exception.SQLGrammarException: could not execute query
- org.hibernate.exception.SQLGrammarException: could not execute query
- org.hibernate.exception.SQLGrammarException: could not execute query处理方式
- nested exception is org.hibernate.exception.SQLGrammarException: could not execute query
- org.hibernate.exception.SQLGrammarException: could not execute query
- org.hibernate.exception.SQLGrammarException: could not execute query
- org.hibernate.exception.SQLGrammarException: could not execute query
- org.hibernate.exception.SQLGrammarException: could not execute query
- org.hibernate.exception.SQLGrammarException: could not execute query
- org.hibernate.exception.SQLGrammarException: could not execute query处理方式
- org.hibernate.exception.SQLGrammarException: could not execute query
- org.hibernate.exception.SQLGrammarException:Could not execute JDBC batch update问题的解决
- org.hibernate.exception.SQLGrammarException: Could not execute JDBC batch update
- nested exception is org.hibernate.exception.SQLGrammarException: Could not execute JDBC batch update
- org.hibernate.exception.SQLGrammarException:Could not execute JDBC batch update问题的解决
- org.hibernate.exception.SQLGrammarException: could not execute batch
- 记录org.hibernate.exception.GenericJDBCException: could not execute query异常
- Hibernate org.hibernate.exception.ConstraintViolationException: could not execute update query 异常分析
- hibernate创建数据库时报错:org.hibernate.exception.SQLGrammarException: could not execute statement
- org.hibernate.exception.SQLGrammarException: Could not execute JDBC batch update