HibernateException: No Hibernate Session bound to thread, and configuration does not allow creation
来源:互联网 发布:辐射4室内优化mod 编辑:程序博客网 时间:2024/05/17 23:31
org.hibernate.HibernateException: No Hibernate Session bound to thread, and configuration does not allow creation of non-transactional one here
at org.springframework.orm.hibernate3.SpringSessionContext.currentSession(SpringSessionContext.java:63)
at org.hibernate.impl.SessionFactoryImpl.getCurrentSession(SessionFactoryImpl.java:687)
at com.LovePatPrint.dao.impl.FileDaoImpl.delData(FileDaoImpl.java:86)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:196)
at $Proxy24.delData(Unknown Source)
at com.LovePatPrint.common.MyTaskFile.del(MyTaskFile.java:64)
at com.LovePatPrint.common.MyTaskFile.delOrBackup(MyTaskFile.java:57)
at com.LovePatPrint.common.MyTaskFile.run(MyTaskFile.java:34)
at java.util.TimerThread.mainLoop(Timer.java:512)
at org.springframework.orm.hibernate3.SpringSessionContext.currentSession(SpringSessionContext.java:63)
at org.hibernate.impl.SessionFactoryImpl.getCurrentSession(SessionFactoryImpl.java:687)
at com.LovePatPrint.dao.impl.FileDaoImpl.delData(FileDaoImpl.java:86)
at com.LovePatPrint.service.impl.FileServiceImpl.delData(FileServiceImpl.java:49)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:196)
at $Proxy24.delData(Unknown Source)
at com.LovePatPrint.common.MyTaskFile.del(MyTaskFile.java:64)
at com.LovePatPrint.common.MyTaskFile.delOrBackup(MyTaskFile.java:57)
at com.LovePatPrint.common.MyTaskFile.run(MyTaskFile.java:34)
at java.util.TimerThread.mainLoop(Timer.java:512)
at java.util.TimerThread.run(Timer.java:462)
注:service层没有加注解事务的原因,@Transactional
0 0
- HibernateException: No Hibernate Session bound to thread, and configuration does not allow creation
- org.hibernate.HibernateException: No Hibernate Session bound to thread, and configuration does not allow creation of non-transac
- Spring+Hibernate 异常No Hibernate Session bound to thread, and configuration does not allow creation
- No Hibernate Session bound to thread, and configuration does not allow creation of non-transactiona
- No Hibernate Session bound to thread, and configuration does not allow creation of non-transactional
- No Hibernate Session bound to thread, and configuration does not allow creation of non-transactiona
- @Transactional未添加就报错:No Hibernate Session bound to thread, and configuration does not allow creation
- No Hibernate Session bound to thread, and configuration does not allow creation of non-transactional
- No Hibernate Session bound to thread, and configuration does not allow creation of non-transactiona
- No Hibernate Session bound to thread, and configuration does not allow creation of non-transactional
- No Hibernate Session bound to thread, and configuration does not allow creation of non-transactional
- No Hibernate Session bound to thread, and configuration does not allow creation of non-transactional
- No Hibernate Session bound to thread, and configuration does not allow creation
- No Hibernate Session bound to thread, and configuration does not allow creation of non-transactional
- 关于: No Hibernate Session bound to thread, and configuration does not allow creation of non-transacti
- No Hibernate Session bound to thread, and configuration does not allow creation of non-transactional
- No Hibernate Session bound to thread, and configuration does not allow creation of non-transactional
- No Hibernate Session bound to thread, and configuration does not allow creation
- 通向架构师的道路(第四天)之Tomcat性能调优-让小猫飞奔
- 物理DG日常管理
- linux调试MCX314AL过程
- 汉码科技仓储管理信息化解决方案,助力生产企业提升仓储管理水平,提升企业竞争力,提升产品形象
- 资费的修改(struts2+jsp)
- HibernateException: No Hibernate Session bound to thread, and configuration does not allow creation
- Yarn公平调度器[转自 AIMP平台wiki]
- 全面理解Unity加载和内存管理
- 内存池的设计与实现
- axis2 客户端调用实例
- 利用OpenSSL库对Socket传输进行安全加密(RSA+AES)
- 第1次实验——NPC问题(回溯算法、聚类分析)
- SQLProgress 1.01.38 正式版发布
- 使用shape画圆