Uploaded image for project: 'Confluence Data Center'
  1. Confluence Data Center
  2. CONFSERVER-10117

Removing a user for c.a.c results in an lazy initialization exception

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • High
    • 2.7
    • 2.7
    • None
    • confluence.atlassian.com; confluence-2.6-m6-r2

    Description

      When attemting to remove a user from c.a.c (for example username shoesnew01), a LazyInitializationException is thrown and the user is not removed.

      Stack trace:

      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 org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:144)
      	at com.atlassian.spring.interceptors.SpringProfilingInterceptor.invoke(SpringProfilingInterceptor.java:20)
      	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:166)
      	at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:107)
      	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:166)
      	at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
      	at $Proxy26.removeUser(Unknown Source)
      	at com.atlassian.confluence.user.actions.RemoveUserAction.execute(RemoveUserAction.java:38)
      

      Attachments

        Activity

          People

            dave@atlassian.com dave (Inactive)
            christopher.owen@atlassian.com Christopher Owen [Atlassian]
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: