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

BeanLocator is not set for BackgroundTaskThreadLocalManagerImplTest

    Description

    Testray

    Jenkins

         [exec] com.liferay.portal.background.task.internal.BackgroundTaskThreadLocalManagerImplTest > testSetThreadLocalValues STARTED
         [exec] 
         [exec] com.liferay.portal.background.task.internal.BackgroundTaskThreadLocalManagerImplTest > testSetThreadLocalValues STANDARD_OUT
         [exec]     Loading jar:file:/opt/dev/projects/github/liferay-portal/.m2/com/liferay/portal/com.liferay.portal.impl/6.0.0-SNAPSHOT/com.liferay.portal.impl-6.0.0-SNAPSHOT.jar!/system.properties
         [exec]     Loading jar:file:/opt/dev/projects/github/liferay-portal/bundles/tomcat-9.0.40/webapps/ROOT/WEB-INF/lib/portal-impl.jar!/system.properties
         [exec]     Loading file:/opt/dev/projects/github/liferay-portal/bundles/tomcat-9.0.40/webapps/ROOT/WEB-INF/classes/system-ext.properties
         [exec] 
         [exec] com.liferay.portal.background.task.internal.BackgroundTaskThreadLocalManagerImplTest > testSetThreadLocalValues FAILED
         [exec]     com.liferay.portal.kernel.bean.BeanLocatorException: BeanLocator is not set
         [exec]         at com.liferay.portal.kernel.bean.PortalBeanLocatorUtil.locate(PortalBeanLocatorUtil.java:68)
         [exec]         at com.liferay.portal.kernel.service.UserLocalServiceUtil.getService(UserLocalServiceUtil.java:3602)
         [exec]         at com.liferay.portal.kernel.service.UserLocalServiceUtil.fetchDefaultUser(UserLocalServiceUtil.java:1176)
         [exec]         at com.liferay.portal.kernel.security.auth.CompanyThreadLocal.setCompanyId(CompanyThreadLocal.java:59)
         [exec]         at com.liferay.portal.background.task.internal.BackgroundTaskThreadLocalManagerImpl.setThreadLocalValues(BackgroundTaskThreadLocalManagerImpl.java:111)
         [exec]         at com.liferay.portal.background.task.internal.BackgroundTaskThreadLocalManagerImplTest.testSetThreadLocalValues(BackgroundTaskThreadLocalManagerImplTest.java:69)
         [exec]         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         [exec]         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
         [exec]         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
         [exec]         at java.lang.reflect.Method.invoke(Method.java:498)
    

      Attachments

        Issue Links

          Activity

            People

            Assignee:
            summer.zhang Summer Zhang
            Reporter:
            nicholas.kwon Nicholas Kwon
            Participants of an Issue:
            Recent user:
            Sophia Zhang
            Engineering Assignee:
            Alberto Chaparro
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              40 weeks, 1 day ago

                Packages

                Version Package
                7.3.10 DXP FP1
                7.3.10.1 DXP SP1
                7.3.6 CE GA7
                7.3.X
                7.4.13 DXP GA1
                Master