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

NoSuchRoleException on PortalLogAssertorTest#testScanXMLLog

    Details

    • Sprint:
      Iteration 44

      Description

      Testray

      Jenkins

        [junit] Portal log assert failure, see above log for more information: 
          [junit] com.liferay.portal.kernel.exception.ModelListenerException: com.liferay.portal.kernel.exception.NoSuchRoleException: No Role exists with the primary key 110977
          [junit] com.liferay.portal.kernel.exception.ModelListenerException: com.liferay.portal.kernel.exception.NoSuchRoleException: No Role exists with the primary key 110977
          [junit] 	at com.liferay.portal.security.audit.event.generators.internal.model.listener.RoleModelListener.auditOnAddorRemoveAssociation(RoleModelListener.java:140)
          [junit] 	at com.liferay.portal.security.audit.event.generators.internal.model.listener.RoleModelListener.onBeforeRemoveAssociation(RoleModelListener.java:71)
          [junit] 	at com.liferay.portal.kernel.internal.service.persistence.TableMapperImpl._deleteTableMapping(TableMapperImpl.java:624)
          [junit] 	at com.liferay.portal.kernel.internal.service.persistence.TableMapperImpl.deleteTableMappings(TableMapperImpl.java:247)
          [junit] 	at com.liferay.portal.kernel.internal.service.persistence.change.tracking.CTTableMapper.deleteTableMappings(CTTableMapper.java:226)
          [junit] 	at com.liferay.portal.kernel.internal.service.persistence.ReverseTableMapper.deleteTableMappings(ReverseTableMapper.java:86)
          [junit] 	at com.liferay.portal.service.persistence.impl.UserPersistenceImpl.setRoles(UserPersistenceImpl.java:10581)
          [junit] 	at com.liferay.portal.service.impl.RoleLocalServiceImpl.setUserRoles(RoleLocalServiceImpl.java:1493)
          [junit] 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          [junit] 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
          [junit] 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
          [junit] 	at java.lang.reflect.Method.invoke(Method.java:498)
          [junit] 	at com.liferay.portal.spring.aop.AopMethodInvocationImpl.proceed(AopMethodInvocationImpl.java:50)
          [junit] 	at com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:69)
          [junit] 	at com.liferay.portal.spring.aop.AopMethodInvocationImpl.proceed(AopMethodInvocationImpl.java:57)
          [junit] 	at com.liferay.portal.spring.aop.AopInvocationHandler.invoke(AopInvocationHandler.java:49)
          [junit] 	at com.sun.proxy.$Proxy171.setUserRoles(Unknown Source)
          [junit] 	at com.liferay.portal.service.impl.CompanyLocalServiceImpl._checkCompany(CompanyLocalServiceImpl.java:1841)
          [junit] 	at com.liferay.portal.service.impl.CompanyLocalServiceImpl.checkCompany(CompanyLocalServiceImpl.java:283)
          [junit] 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          [junit] 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
          [junit] 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
          [junit] 	at java.lang.reflect.Method.invoke(Method.java:498)
          [junit] 	at com.liferay.portal.spring.aop.AopMethodInvocationImpl.proceed(AopMethodInvocationImpl.java:50)
          [junit] 	at com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:69)
          [junit] 	at com.liferay.portal.spring.aop.AopMethodInvocationImpl.proceed(AopMethodInvocationImpl.java:57)
          [junit] 	at com.liferay.portal.spring.aop.AopInvocationHandler.invoke(AopInvocationHandler.java:49)
          [junit] 	at com.sun.proxy.$Proxy76.checkCompany(Unknown Source)
          [junit] 	at com.liferay.portal.service.impl.CompanyLocalServiceImpl.checkCompany(CompanyLocalServiceImpl.java:260)
          [junit] 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          [junit] 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
          [junit] 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
          [junit] 	at java.lang.reflect.Method.invoke(Method.java:498)
          [junit] 	at com.liferay.portal.spring.aop.AopMethodInvocationImpl.proceed(AopMethodInvocationImpl.java:50)
          [junit] 	at com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:69)
          [junit] 	at com.liferay.portal.spring.aop.AopMethodInvocationImpl.proceed(AopMethodInvocationImpl.java:57)
          [junit] 	at com.liferay.portal.spring.aop.AopInvocationHandler.invoke(AopInvocationHandler.java:49)
          [junit] 	at com.sun.proxy.$Proxy76.checkCompany(Unknown Source)
          [junit] 	at com.liferay.portal.kernel.service.CompanyLocalServiceUtil.checkCompany(CompanyLocalServiceUtil.java:86)
          [junit] 	at com.liferay.portal.util.PortalInstances.initCompany(PortalInstances.java:277)
          [junit] 	at com.liferay.portal.internal.servlet.MainServlet._initCompanies(MainServlet.java:776)
          [junit] 	at com.liferay.portal.internal.servlet.MainServlet.init(MainServlet.java:416)
          [junit] 	at javax.servlet.GenericServlet.init(GenericServlet.java:158)
          [junit] 	at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1134)
          [junit] 	at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1089)
          [junit] 	at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:983)
          [junit] 	at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4876)
          [junit] 	at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5185)
          [junit] 	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
          [junit] 	at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:717)
          [junit] 	at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:690)
          [junit] 	at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:705)
          [junit] 	at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:631)
          [junit] 	at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1831)
          [junit] 	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
          [junit] 	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
          [junit] 	at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
          [junit] 	at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:112)
          [junit] 	at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:526)
          [junit] 	at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:425)
          [junit] 	at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1576)
          [junit] 	at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:309)
          [junit] 	at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:123)
          [junit] 	at org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:423)
          [junit] 	at org.apache.catalina.util.LifecycleBase.setState(LifecycleBase.java:366)
          [junit] 	at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:936)
          [junit] 	at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:841)
          [junit] 	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
          [junit] 	at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1384)
          [junit] 	at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1374)
          [junit] 	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
          [junit] 	at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
          [junit] 	at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:134)
          [junit] 	at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:909)
          [junit] 	at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:262)
          [junit] 	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
          [junit] 	at org.apache.catalina.core.StandardService.startInternal(StandardService.java:421)
          [junit] 	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
          [junit] 	at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:930)
          [junit] 	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
          [junit] 	at org.apache.catalina.startup.Catalina.start(Catalina.java:633)
          [junit] 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          [junit] 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
          [junit] 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
          [junit] 	at java.lang.reflect.Method.invoke(Method.java:498)
          [junit] 	at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:343)
          [junit] 	at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:474)
          [junit] Caused by: com.liferay.portal.kernel.exception.NoSuchRoleException: No Role exists with the primary key 110977
          [junit] 	at com.liferay.portal.service.persistence.impl.RolePersistenceImpl.findByPrimaryKey(RolePersistenceImpl.java:10813)
          [junit] 	at com.liferay.portal.service.persistence.impl.RolePersistenceImpl.findByPrimaryKey(RolePersistenceImpl.java:10829)
          [junit] 	at com.liferay.portal.service.base.RoleLocalServiceBaseImpl.getRole(RoleLocalServiceBaseImpl.java:269)
          [junit] 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          [junit] 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
          [junit] 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
          [junit] 	at java.lang.reflect.Method.invoke(Method.java:498)
          [junit] 	at com.liferay.portal.spring.aop.AopMethodInvocationImpl.proceed(AopMethodInvocationImpl.java:50)
          [junit] 	at com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:69)
          [junit] 	at com.liferay.portal.spring.aop.AopMethodInvocationImpl.proceed(AopMethodInvocationImpl.java:57)
          [junit] 	at com.liferay.portal.spring.aop.AopInvocationHandler.invoke(AopInvocationHandler.java:49)
          [junit] 	at com.sun.proxy.$Proxy171.getRole(Unknown Source)
          [junit] 	at com.liferay.portal.security.audit.event.generators.internal.model.listener.RoleModelListener.auditOnAddorRemoveAssociation(RoleModelListener.java:133)
          [junit] 	... 86 more
      

        Attachments

          Activity

            People

            Assignee:
            della.wang Della Wang (Inactive)
            Reporter:
            nicholas.kwon Nicholas Kwon
            Participants of an Issue:
            Recent user:
            Della Wang (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

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

                Packages

                Version Package
                Master