org.hibernate.HibernateException: connnection proxy not usable after transaction
来源:互联网 发布:javascript 最新版本 编辑:程序博客网 时间:2024/04/30 11:23
org.hibernate.HibernateException: connnection proxy not usable after transaction completion
at org.hibernate.jdbc.BorrowedConnectionProxy.invoke(BorrowedConnectionProxy.java:42)
at $Proxy10.prepareStatement(Unknown Source)
at com.bjqa.crm.zizhu.ddgl.biz.DzfddDao.doUpdateDdzt(DzfddDao.java:714)
at com.bjqa.crm.zizhu.ddgl.biz.DzfddDao.OrderSettlement(DzfddDao.java:619)
at com.bjqa.crm.zizhu.ddgl.action.DdzfServletAction.doPost(DdzfServletAction.java:113)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
1.混用 hibernate + jdbc?
2、con = DBPool.getInstance().getConnection(); 建议直接使用session获取,也不需要自己关闭,由spring事务管理;
3、尽量不要混用,如果混用hibernate二级缓存可能会出现问题
4.统一用连接池管理
- org.hibernate.HibernateException: connnection proxy not usable after transaction
- org.hibernate.HibernateException: createSQLQuery is not valid without active transaction
- org.hibernate.HibernateException: delete is not valid without active transaction
- org.hibernate.HibernateException: save is not valid without active transaction
- org.hibernate.HibernateException: createSQLQuery is not valid without active transaction
- org.hibernate.HibernateException: save is not valid without active transaction
- org.hibernate.HibernateException: save is not valid without active transaction at org.hibernate.co
- ssh整合报错org.hibernate.HibernateException: createQuery is not valid without active transaction
- org.hibernate.HibernateException: Could not obtain transaction-synchronized Session for current 出错
- 解决 org.hibernate.HibernateException: Could not obtain transaction-synchronized Session for cu
- org.hibernate.HibernateException: Could not obtain transaction-synchronized Session for current thre
- 解决异常:org.hibernate.HibernateException: Could not obtain transaction-synchronized Session for current
- org.hibernate.HibernateException: Could not obtain transaction-synchronized Session for current thre
- 使用S2SH框架时,出现org.hibernate.HibernateException: createQuery is not valid without active transaction
- org.hibernate.HibernateException: Could not obtain transaction-synchronized Session for current thre
- SSH 整合报org.hibernate.HibernateException: ...... is not valid without active transaction异常
- org.hibernate.HibernateException: could not instantiate RegionFactory
- org.hibernate.HibernateException: Could not parse configuration: /hibernate.cfg.xml
- HttpClient 模拟登录Web版新浪微博
- Soap请求获取指定城市的天气情况并在天地图API Map中显示
- ajax 初探
- Fiddler 实现手机的抓包
- hdu 2089 不要62(基础)
- org.hibernate.HibernateException: connnection proxy not usable after transaction
- jQuery异步框架探究1:jQuery._Deferred方法
- [阿里笔试] 2016阿里校招业务性产品经理(商业领域)笔试题
- 针对TQ部分ARM开发板中QTCPServer不能接受数据的问题
- webdriver报不可见元素异常方法总结
- 网易互娱2017实习生招聘在线笔试第一场-题目3
- 整理的一些常用的Java日期时间上面的操作
- HttpClient4.X Invalid use of SingleClientConnManager: connection still allocated
- retrofit 如何查看日志