用spring +hibernate便成 单独运行不会出现这种异常但是 压力测试的时候就出现异常
OpenSessionInViewFilter 也配过了还不行
关注
码龄 粉丝数 原力等级 --
- 被采纳
- 被点赞
- 采纳率
已采纳
org.hibernate.LazyInitializationException: could not initialize proxy - the owni
收起
- 写回答
- 好问题 0 提建议
- 关注问题
微信扫一扫点击复制链接分享
- 邀请回答
- 编辑 收藏 删除 结题
- 收藏 举报
2条回答 默认 最新
- 关注
码龄 粉丝数 原力等级 --
- 被采纳
- 被点赞
- 采纳率
wanghaolovezlq 2010-03-16 17:25关注很可能有些代码在大并发量的时候,也就是多线程环境是出问题的,
本回答被题主选为最佳回答 , 对您是否有帮助呢? 本回答被专家选为最佳回答 , 对您是否有帮助呢? 本回答被题主和专家选为最佳回答 , 对您是否有帮助呢?解决 无用评论 打赏举报
微信扫一扫点击复制链接分享
评论按下Enter换行,Ctrl+Enter发表内容
报告相同问题?
提交
- iteye_13647的博客 org.hibernate.LazyInitializationException: could not initialize proxy - the owning Session was closed 分析原因:由于Spring控制的Hibernate的生命周期只针对数据层和服务层,而未管理到表现层,所以会...
- 2009-11-10 17:08vebasan的博客 其实这个异常写的非常之清楚,就是会话关闭,无法对Hibernate实体进行操作。造成这样的情况有很多,什么书写错误啊,逻辑错误啊,等等.不过,偶是因为LAZY. 关于lazy机制: 延迟初始化错误是运用Hibernate开发项目时最...
- 2009-02-18 16:12ycjunhua的博客 其实这个异常写的非常之清楚,就是会话关闭,无法对Hibernate实体进行操作。造成这样的情况有很多,什么书写错误啊,逻辑错误啊,等等.不过,偶是因为LAZY. 关于lazy机制: 延迟初始化错误是运用Hibernate开发...
- 2017-07-26 07:41个人知识管理布道师的博客 23: remote -> br.gov.frameworkdemoiselle.component.archetypes:jbehave-fest-archetype (Archetype for automated functional tests in desktop java applications) 24: remote -> br.gov.frameworkdemoiselle....
- 2024-10-04 20:21Smile sea breeze的博客 Hibernate面试核心问题(En)
- 2018-05-21 15:40爱的叹息的博客 Using maven-archetype-quickstart (org.apache.maven.archetypes:maven-archetype-quickstart:1.0) Choose archetype: 1: remote -> am.ik.archetype:maven-reactjs-blank-archetype (Blank Project for React.js)...
- 2016-12-19 23:32stevejobson的博客 # The location of the configuration file to use to initialize the cache manager. spring.cache.jcache.provider = # Fully qualified name of the CachingProvider implementation to use to retrieve the ...
- 2016-09-01 10:17a363722188的博客 src/java/org/quartz/simpl Quartz 提供的不衣赖于第三方产品的简单实现 src/java/org/quartz/impl 依赖于第三方产品的支持模块的实现 src/java/org/quartz/utils 整个框架要用到的辅助类和工具组件 src/...
- 2017-11-20 10:19沃德天•维森莫•拉莫帅的博客 要创建一个简单的 Java 应用程序,我们使用 maven-archetype-quickstart 插件。在下面的例子中,我们将创建一个基于Maven 的 Java 应用程序项目在 G:\workspace 文件夹。 让我们打开命令控制台,进入到 G:\...
- 2019-08-30 14:03it_haha的博客 Could not resolve placeholder 解决:根据springboot启动流程,会有自动扫描包没有扫描到相关注解, 默认Spring框架实现会从声明 @ComponentScan 所在的类的 package 进行扫描,来自动注入,因此启动类最好放在...
- 2012-07-22 10:30iteye_4972的博客 1 What is transient variable? ...Transient variable can't be serialize. For example if a variable is declared as transient in a Serializable class and the class is written to an Ob...
- 2005-09-09 17:08popkiler的博客 HIBERNATE - 符合Java习惯的关系数据库持久化Hibernate2 参考文档2.1.1Table of Contents前言 1. 在Tomcat中快速上手 1.1. 开始Hibernate之旅 1.2. 第一个可持久化类 1.3. 映射cat 1.4. 与猫同乐 1.5. 结语2. 体系...
- 2018-11-23 15:54谷大狼的博客 # =================================================================== # COMMON SPRING BOOT PROPERTIES # # This sample file is provided as a guideline. Do NOT copy it in ...# entirety to your own ...
- 2015-08-10 10:40achuo的博客 src/java/org/quartz/simpl Quartz 提供的不衣赖于第三方产品的简单实现 src/java/org/quartz/impl 依赖于第三方产品的支持模块的实现 src/java/org/quartz/utils 整个框架要用到的辅助类和工具组件 ...
- 2020-05-16 12:26CHCH998的博客 I've been working with JPA (implementation Hibernate) for some time now and each time I need to cre
- 2018-10-13 16:47qinhun0106的博客 Copies of this document may be made for your own use and for distribution to others, provided that you do not charge any fee for such copies and further provided that each copy contains this Copyright...
- 2014-04-22 03:38weixin_33968104的博客 * [NH-3436] - Linq-Query with IList<X>.Contains fails with NotSupportedException(The constant for 'System.Collections.Generic.List`1[System.Guid]' is not supported) at HqlTreeBuilder.Constant ...
- 2012-08-02 20:45cyclejdm的博客 "{Image Relocated}\nAn image file could not be mapped at the address specified in the image file. Local fixups must be performed on this image." 1073741828, "This informational level status ...
- 2011-06-24 15:21波哥的技术积累的博客 The problemA common issue in a typical (web-)application is the rendering of the view, after the main logic of the action has been completed, and therefore, the Hibernate Session has already been cl
- 没有解决我的问题, 去提问