net.sf.hibernate.LazyInitializationException: Failed to lazily initialize a collection - no session or session was closed

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Atlassian JIRA by Christopher Owen [Atlassian], 1 year ago
Failed to lazily initialize a collection - no session or session was closed
via Atlassian JIRA by Christopher Owen [Atlassian], 1 year ago
Failed to lazily initialize a collection - no session or session was closed
via Coderanch by Stuart Houston, 11 months ago
Failed to lazily initialize a collection: No row with the given identifier exists: 3770246, of class: DEpFilesIn
via Atlassian JIRA by Mark Chaimungkalanont, 1 year ago
cannot access loading collection
via Atlassian JIRA by Mark Chaimungkalanont, 1 year ago
cannot access loading collection
via Hibernate JIRA by David Wright, 1 year ago
Failed to lazily initialize a collection - no session or session was closed
net.sf.hibernate.LazyInitializationException: Failed to lazily initialize a collection - no session or session was closed
at net.sf.hibernate.collection.PersistentCollection.initialize(PersistentCollection.java:209)
at net.sf.hibernate.collection.PersistentCollection.read(PersistentCollection.java:71)
at net.sf.hibernate.collection.Set.isEmpty(Set.java:114)
at com.atlassian.user.impl.hibernate.DefaultHibernateUser.toString(DefaultHibernateUser.java:77)
at com.atlassian.user.impl.hibernate.HibernateUserManager.logUser(HibernateUserManager.java:229)
at com.atlassian.user.impl.hibernate.HibernateUserManager.removeUser(HibernateUserManager.java:188)
at com.atlassian.user.impl.cache.CachingUserManager.removeUser(CachingUserManager.java:154)
at com.atlassian.user.impl.delegation.DelegatingListUserManager.removeUser(DelegatingListUserManager.java:149)
at bucket.user.DefaultUserAccessor.removeUser(DefaultUserAccessor.java:212)
at com.atlassian.confluence.user.DefaultUserAccessor.removeUser(DefaultUserAccessor.java:189)
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:296)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:177)
at com.atlassian.spring.interceptors.SpringProfilingInterceptor.invoke(SpringProfilingInterceptor.java:20)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:166)
at undefined.$Proxy26.removeUser(Unknown Source)
at com.atlassian.confluence.user.actions.RemoveUserAction.execute(RemoveUserAction.java:38)

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.

Know the solutions? Share your knowledge to help other developers to debug faster.