JDBC rollback failed如何解决?

corpse2010 2016-10-31 02:51:02
HTTP Status 500 - Could not roll back Hibernate transaction; nested exception is org.hibernate.TransactionException: JDBC rollback failed

--------------------------------------------------------------------------------

type Exception report

message Could not roll back Hibernate transaction; nested exception is org.hibernate.TransactionException: JDBC rollback failed

description The server encountered an internal error that prevented it from fulfilling this request.

exception

org.springframework.transaction.TransactionSystemException: Could not roll back Hibernate transaction; nested exception is org.hibernate.TransactionException: JDBC rollback failed
org.springframework.orm.hibernate3.HibernateTransactionManager.doRollback(HibernateTransactionManager.java:677)
org.springframework.transaction.support.AbstractPlatformTransactionManager.processRollback(AbstractPlatformTransactionManager.java:800)
org.springframework.transaction.support.AbstractPlatformTransactionManager.rollback(AbstractPlatformTransactionManager.java:777)
org.springframework.transaction.interceptor.TransactionAspectSupport.completeTransactionAfterThrowing(TransactionAspectSupport.java:339)
org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:110)
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
com.sun.proxy.$Proxy12.findRecs(Unknown Source)

...全文
2406 2 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
corpse2010 2016-10-31
  • 打赏
  • 举报
回复
The root cause of this problem was too many database sessions open.We got a few of them killed by DBAs and the problem vanished.
So may be we are having a connection leakage issue.

http://forum.spring.io/forum/spring-projects/data/27416-org-hibernate-transactionexception-jdbc-rollback-failed
corpse2010 2016-10-31
  • 打赏
  • 举报
回复
https://zhidao.baidu.com/question/514338577.html

回滚失败 不能执行事物回滚
检查一下连接池

看看代码 打开连接 进行查询 获得返回值后 你是否关闭了数据库连接的操作

24,923

社区成员

发帖
与我相关
我的任务
社区描述
Web 开发 Apache
社区管理员
  • Apache
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧