Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-110716

NoSuchUserException throws when deleting a virtual instance sometimes

    Description

    Steps to reproduce:
    1. Add a new virtual instance(like 127.0.0.2)
    2. Go to DM in the virtual instance
    3. Add a folder
    4. Add a subfolder
    5. Edit the subfolder
    6. Delete the virtual instance

    Expected Result
    No NoSuchUserException throws when deleting a virtual instance.

    Actual Result
    Can delete this virtual instance, but sometimes NoSuchUserException throws(Cannot be reproduced continuously):

         [exec] 22:17:17,978 ERROR [liferay/audit-14][CompanyThreadLocal:68] com.liferay.portal.kernel.exception.NoSuchUserException: No User exists with the key {companyId=38540, defaultUser=true}
         [exec] com.liferay.portal.kernel.exception.NoSuchUserException: No User exists with the key {companyId=38540, defaultUser=true}
         [exec] 	at com.liferay.portal.service.persistence.impl.UserPersistenceImpl.findByC_DU(UserPersistenceImpl.java:4458)
         [exec] 	at com.liferay.portal.service.impl.UserLocalServiceImpl.loadGetDefaultUser(UserLocalServiceImpl.java:2958)
         [exec] 	at sun.reflect.GeneratedMethodAccessor239.invoke(Unknown Source)
         [exec] 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
         [exec] 	at java.lang.reflect.Method.invoke(Method.java:498)
         [exec] 	at com.liferay.portal.kernel.bean.ClassLoaderBeanHandler.invoke(ClassLoaderBeanHandler.java:66)
         [exec] 	at com.sun.proxy.$Proxy686.loadGetDefaultUser(Unknown Source)
         [exec] 	at com.liferay.portal.kernel.service.UserLocalServiceWrapper.loadGetDefaultUser(UserLocalServiceWrapper.java:2255)
         [exec] 	at sun.reflect.GeneratedMethodAccessor239.invoke(Unknown Source)
         [exec] 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
         [exec] 	at java.lang.reflect.Method.invoke(Method.java:498)
         [exec] 	at com.liferay.portal.kernel.bean.ClassLoaderBeanHandler.invoke(ClassLoaderBeanHandler.java:66)
         [exec] 	at com.sun.proxy.$Proxy687.loadGetDefaultUser(Unknown Source)
         [exec] 	at sun.reflect.GeneratedMethodAccessor239.invoke(Unknown Source)
         [exec] 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
         [exec] 	at java.lang.reflect.Method.invoke(Method.java:498)
         [exec] 	at com.liferay.portal.spring.aop.AopMethodInvocationImpl.proceed(AopMethodInvocationImpl.java:50)
         [exec] 	at com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:69)
         [exec] 	at com.liferay.portal.spring.aop.AopMethodInvocationImpl.proceed(AopMethodInvocationImpl.java:57)
         [exec] 	at com.liferay.portal.spring.aop.AopInvocationHandler.invoke(AopInvocationHandler.java:49)
         [exec] 	at com.sun.proxy.$Proxy38.loadGetDefaultUser(Unknown Source)
         [exec] 	at com.liferay.portal.service.impl.UserLocalServiceImpl.getDefaultUser(UserLocalServiceImpl.java:2164)
         [exec] 	at sun.reflect.GeneratedMethodAccessor162.invoke(Unknown Source)
         [exec] 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
         [exec] 	at java.lang.reflect.Method.invoke(Method.java:498)
         [exec] 	at com.liferay.portal.kernel.bean.ClassLoaderBeanHandler.invoke(ClassLoaderBeanHandler.java:66)
         [exec] 	at com.sun.proxy.$Proxy686.getDefaultUser(Unknown Source)
         [exec] 	at com.liferay.portal.kernel.service.UserLocalServiceWrapper.getDefaultUser(UserLocalServiceWrapper.java:1287)
         [exec] 	at sun.reflect.GeneratedMethodAccessor162.invoke(Unknown Source)
         [exec] 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
         [exec] 	at java.lang.reflect.Method.invoke(Method.java:498)
         [exec] 	at com.liferay.portal.kernel.bean.ClassLoaderBeanHandler.invoke(ClassLoaderBeanHandler.java:66)
         [exec] 	at com.sun.proxy.$Proxy687.getDefaultUser(Unknown Source)
         [exec] 	at sun.reflect.GeneratedMethodAccessor162.invoke(Unknown Source)
         [exec] 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
         [exec] 	at java.lang.reflect.Method.invoke(Method.java:498)
         [exec] 	at com.liferay.portal.spring.aop.AopMethodInvocationImpl.proceed(AopMethodInvocationImpl.java:50)
         [exec] 	at com.liferay.portal.spring.aop.AopInvocationHandler.invoke(AopInvocationHandler.java:49)
         [exec] 	at com.sun.proxy.$Proxy38.getDefaultUser(Unknown Source)
         [exec] 	at com.liferay.portal.kernel.service.UserLocalServiceUtil.getDefaultUser(UserLocalServiceUtil.java:1201)
         [exec] 	at com.liferay.portal.kernel.security.auth.CompanyThreadLocal.setCompanyId(CompanyThreadLocal.java:60)
         [exec] 	at com.liferay.portal.messaging.internal.MessageBusThreadLocalUtil.populateThreadLocalsFromMessage(MessageBusThreadLocalUtil.java:88)
         [exec] 	at com.liferay.portal.messaging.internal.ParallelDestination$1.run(ParallelDestination.java:52)
         [exec] 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
         [exec] 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
         [exec] 	at java.lang.Thread.run(Thread.java:745)
         [exec]     LIFERAY_ERROR: com.liferay.portal.kernel.exception.NoSuchUserException: No User exists with the key {companyId=38540, defaultUser=true}
    

      Attachments

        Issue Links

          Activity

            People

            Assignee:
            support-lep@liferay.com SE Support
            Reporter:
            yvonne.han Yvonne Han
            Participants of an Issue:
            Recent user:
            Rodrigo Cunha
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Days since last comment:
              2 weeks, 4 days ago

                Packages

                Version Package