Could not synchronize database state with session : Could not execute JDBC batch update
来源:互联网 发布:斯塔克大厦数据 编辑:程序博客网 时间:2024/06/03 22:57
org.springframework.dao.DataIntegrityViolationException: Could not execute JDBC batch update; nested exception is org.hibernate.exception.ConstraintViolationException: Could not execute JDBC batch update
at org.springframework.orm.hibernate3.SessionFactoryUtils.convertHibernateAccessException(SessionFactoryUtils.java:624)
12:37:46,796 ERROR AbstractFlushingEventListener:301 - Could not synchronize database state with session
org.hibernate.exception.ConstraintViolationException: Could not execute JDBC batch update
Caused by: java.sql.BatchUpdateException: null, message from server: "Duplicate entry 'j2ee fans' for key 1"
解决方法:
查看添加的对象主键是否唯一
- Could not synchronize database state with session : Could not execute JDBC batch update
- Could not synchronize database state with session
- Could not synchronize database state with session
- Could not synchronize database state with session
- Could not synchronize database state with session
- Could not synchronize database state with session
- Could not synchronize database state with session
- Could not synchronize database state with session解决方法
- Data truncation -Could not synchronize database state with session
- Could not execute JDBC batch update
- 再说Could not execute JDBC batch update
- SQLGrammarException: Could not execute JDBC batch update
- Could not execute JDBC batch update....
- Could not execute JDBC batch update问题
- Could not execute JDBC batch update
- Could not execute JDBC batch update
- Could not execute JDBC batch update
- Could not execute JDBC batch update
- 国际:十个习惯让你精通新的开发技术
- 高校学生工作信息系统研究
- 水晶报表异常和常规报错处理之总汇
- ext动态创建grid
- 坐飞机不是因为它安全—谈Windows和Linux安全性之争
- Could not synchronize database state with session : Could not execute JDBC batch update
- 新生報道
- BoundsChecker的用法
- SQL基本语句
- 日常基本功训练方法及要求与标准。
- 开发大型高负载类网站应用的几个要点
- 海量数据库的查询优化及分页算法方案(转载)
- 总结必须学习的10项.NET技术
- 如何成为远程DBA服务提供者