# org.hibernate.LazyInitializationException

**URL:** <https://community.sailpoint.com/discuss/t/org-hibernate-lazyinitializationexception/32236>\
**Category:** Administration & Troubleshooting\
**Tags:** access-request-approval, identityiq-8.3, compliance\
**Created:** [November 29, 2023, 1:31pm UTC](https://community.sailpoint.com/discuss/t/org-hibernate-lazyinitializationexception/32236 "2023-11-29T13:31:44Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![pritishmhrn](https://sea3.discourse-cdn.com/sailpoint2/discuss/user_avatar/community.sailpoint.com/pritishmhrn/32/16734_2.png) [@pritishmhrn](https://community.sailpoint.com/discuss/u/pritishmhrn)\
**Post date:** [November 29, 2023, 1:31pm UTC](https://community.sailpoint.com/discuss/t/org-hibernate-lazyinitializationexception/32236/1 "2023-11-29T13:31:44Z")

</div>

Hi All,

When we login to lower env using one EID to raise an access request, there is an error always at the start for any access request as&nbsp; **org.hibernate.LazyInitializationException: failed to lazily initialize a collection of role: sailpoint.object.Rule.referencedRules, could not initialize proxy - no Session**

but if we login using another EID, there is no error. Has anyone faced such issue?

Error:

org.hibernate.LazyInitializationException: failed to lazily initialize a collection of role: sailpoint.object.Rule.referencedRules, could not initialize proxy - no Session  
at org.hibernate.collection.internal.AbstractPersistentCollection.throwLazyInitializationException(AbstractPersistentCollection.java:606)  
at org.hibernate.collection.internal.AbstractPersistentCollection.withTemporarySessionIfNeeded(AbstractPersistentCollection.java:218)  
at org.hibernate.collection.internal.AbstractPersistentCollection.initialize(AbstractPersistentCollection.java:585)  
at org.hibernate.collection.internal.AbstractPersistentCollection.read(AbstractPersistentCollection.java:149)  
at org.hibernate.collection.internal.PersistentList.hashCode(PersistentList.java:506)  
at sailpoint.object.Rule.hashCode(Rule.java:415)  
at java.base/java.util.WeakHashMap.hash(WeakHashMap.java:298)  
at java.base/java.util.WeakHashMap.put(WeakHashMap.java:450)  
at org.apache.commons.lang3.builder.ToStringStyle.register(ToStringStyle.java:223)  
at org.apache.commons.lang3.builder.ToStringStyle.appendClassName(ToStringStyle.java:1484)  
at org.apache.commons.lang3.builder.ToStringStyle.appendStart(ToStringStyle.java:409)  
at org.apache.commons.lang3.builder.ToStringBuilder.\<init\>(ToStringBuilder.java:260)  
at org.apache.commons.lang3.builder.ToStringBuilder.\<init\>(ToStringBuilder.java:223)  
at sailpoint.object.SailPointObject.toString(SailPointObject.java:1289)  
at java.base/java.lang.String.valueOf(String.java:2951)  
at java.base/java.lang.StringBuilder.append(StringBuilder.java:172)  
at java.base/java.util.AbstractCollection.toString(AbstractCollection.java:473)  
at java.base/java.lang.String.valueOf(String.java:2951)  
at sailpoint.tools.TracingAspect.isSensitive(TracingAspect.java:466)  
at sailpoint.tools.TracingAspect.filterValue(TracingAspect.java:406)  
at sailpoint.tools.TracingAspect.filterValue(TracingAspect.java:380)  
at sailpoint.tools.TracingAspect.exitMsg(TracingAspect.java:536)  
at sailpoint.tools.TracingAspect.traceMethodExit(TracingAspect.java:150)  
at sailpoint.api.Workflower.getRuleLibraries(Workflower.java:6036)  
at sailpoint.api.Workflower.callInterceptor(Workflower.java:6709)  
at sailpoint.api.Workflower.interceptStartApproval(Workflower.java:6575)  
at sailpoint.api.Workflower.start(Workflower.java:6301)  
at sailpoint.api.Workflower.advanceApproval(Workflower.java:6057)  
at sailpoint.api.Workflower.advanceStep(Workflower.java:5146)  
at sailpoint.api.Workflower.advance(Workflower.java:4558)  
at sailpoint.api.Workflower.startCase(Workflower.java:3144)  
at sailpoint.api.Workflower.launchSubcase(Workflower.java:5474)  
at sailpoint.api.Workflower.launchSubcases(Workflower.java:5367)  
at sailpoint.api.Workflower.advanceStep(Workflower.java:5158)  
at sailpoint.api.Workflower.advance(Workflower.java:4558)  
at sailpoint.api.Workflower.startCase(Workflower.java:3144)  
at sailpoint.api.Workflower.launchSubcase(Workflower.java:5474)  
at sailpoint.api.Workflower.launchSubcases(Workflower.java:5390)  
at sailpoint.api.Workflower.advanceStep(Workflower.java:5158)  
at sailpoint.api.Workflower.advance(Workflower.java:4558)  
at sailpoint.api.Workflower.assimilate(Workflower.java:4208)  
at sailpoint.api.Workflower.handleWorkItem(Workflower.java:7635)  
at sailpoint.api.Workflower.processEvent(Workflower.java:1912)  
at sailpoint.api.Workflower.processEvent(Workflower.java:1894)  
at sailpoint.task.WorkflowerThread.process(WorkflowerThread.java:363)  
at sailpoint.task.WorkflowerThread.run(WorkflowerThread.java:288)

Thanks

---

<div class="post-metadata">

**Author:** ![sa8173](https://sea3.discourse-cdn.com/sailpoint2/discuss/user_avatar/community.sailpoint.com/sa8173/32/18965_2.png) [@sa8173](https://community.sailpoint.com/discuss/u/sa8173)\
**Post date:** [November 29, 2023, 6:49pm UTC](https://community.sailpoint.com/discuss/t/org-hibernate-lazyinitializationexception/32236/2 "2023-11-29T18:49:10Z")

</div>

Can you enable the workflow trace and share the logs, could be an issue with one of the rule? Also, is the other user similar in terms of role, entitlements with the first one?

---

<div class="post-metadata">

**Author:** ![pritishmhrn](https://sea3.discourse-cdn.com/sailpoint2/discuss/user_avatar/community.sailpoint.com/pritishmhrn/32/16734_2.png) [@pritishmhrn](https://community.sailpoint.com/discuss/u/pritishmhrn)\
**Post date:** [December 6, 2023, 11:11am UTC](https://community.sailpoint.com/discuss/t/org-hibernate-lazyinitializationexception/32236/3 "2023-12-06T11:11:26Z")

</div>

Hello Sunny, there was no issue with rule ( any decache() was not found ), I had to include sailpoint support and the issue got resolved after updating log4j2.properties file as they suggested this file can also cause issues:  
sailpoint.api.workflower was “all”, got resolved by updating it “off”.

Thanks

---

<div class="post-metadata">

**Author:** ![mahima](https://avatars.discourse-cdn.com/v4/letter/m/ee7513/32.png) [@mahima](https://community.sailpoint.com/discuss/u/mahima)\
**Post date:** [March 28, 2024, 5:47pm UTC](https://community.sailpoint.com/discuss/t/org-hibernate-lazyinitializationexception/32236/4 "2024-03-28T17:47:08Z")

</div>

Hi&nbsp; @pritishmhrn

I was getting the same error during Access Request intermittently (IIQ 8.3p3) and noticed that the following logs were enabled in log4j2 and as per your resolution, I removed them from log4j2 and the error resolved immediately after reloading the log4j2. I am curious as to how you changed “all” to “off”? May be a different way of enabling the logs for workflower in log4j2. Could you please let me know the format?

I am using this format -

logger.workflower.name=sailpoint.api.Workflower  
logger.workflower.level=trace

---

<div class="post-metadata">

**Author:** ![lsteuerTD](https://avatars.discourse-cdn.com/v4/letter/l/7ea924/32.png) [@lsteuerTD](https://community.sailpoint.com/discuss/u/lsteuerTD)\
**Post date:** [June 10, 2025, 2:03pm UTC](https://community.sailpoint.com/discuss/t/org-hibernate-lazyinitializationexception/32236/5 "2025-06-10T14:03:24Z")

</div>

Comment the logger out and it will not be used. Then reload of course.
