net.sf.hibernate.LazyInitializationException

Failed to lazily initialize a collection

Samebug tips0

There are no available Samebug tips for this exception. If you know how to solve this issue, help other users by writing a short tip.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web116

  • Failed to lazily initialize a collection
  • via Atlassian JIRA by Daniel Ponzio [Atlassian], 10 months ago
    Failed to lazily initialize a collection
  • via Atlassian JIRA by Jens Schumacher, 11 months ago
    Failed to lazily initialize a collection
  • Stack trace

    • net.sf.hibernate.LazyInitializationException: Failed to lazily initialize a collection at net.sf.hibernate.collection.PersistentCollection.initialize(PersistentCollection.java:201) at net.sf.hibernate.collection.PersistentCollection.read(PersistentCollection.java:71) at net.sf.hibernate.collection.Set.size(Set.java:106) at com.opensymphony.user.provider.hibernate.entity.HibernateGroup.getUserNameList(HibernateGroup.java:33) at com.opensymphony.user.provider.hibernate.HibernateAccessProvider.listUsersInGroup(HibernateAccessProvider.java:151) at bucket.user.providers.ChainedAccessProvider.listUsersInGroup(ChainedAccessProvider.java:45) at com.opensymphony.user.Group.getUsers(Group.java:65) at com.atlassian.confluence.user.DefaultUserAccessor.getActiveUsers(DefaultUserAccessor.java:168) 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:324) at org.springframework.aop.framework.AopProxyUtils.invokeJoinpointUsingReflection(AopProxyUtils.java:61) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:149) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:116) at com.atlassian.confluence.util.profiling.SpringProfilingInterceptor.invoke(SpringProfilingInterceptor.java:16) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:138) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:56) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:138) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:152) at $Proxy8.getActiveUsers(Unknown Source) at com.atlassian.confluence.user.actions.BrowseUsersAction.getUsers(BrowseUsersAction.java:65) at com.atlassian.confluence.user.actions.BrowseUsersAction.execute(BrowseUsersAction.java:46) at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:168)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    You’re the first here who have seen this exception.