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

ServicePreActionTest logs NoSuchRoleException

    Details

      Description

      ServicePreActionTest integration test is logging an error in Portal log

          [junit] 13:44:42,824 ERROR [com.liferay.portal.events.test-executor-thread][SearchPermissionCheckerImpl:159] com.liferay.portal.kernel.exception.NoSuchRoleException: No Role exists with the key {companyId=0, name=Organization User}
          [junit] com.liferay.portal.kernel.exception.NoSuchRoleException: No Role exists with the key {companyId=0, name=Organization User}
          [junit] 	at com.liferay.portal.service.persistence.impl.RolePersistenceImpl.findByC_N(RolePersistenceImpl.java:5707)
          [junit] 	at com.liferay.portal.service.impl.RoleLocalServiceImpl.loadGetRole(RoleLocalServiceImpl.java:1249)
          [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.$Proxy114.loadGetRole(Unknown Source)
          [junit] 	at com.liferay.portal.service.impl.RoleLocalServiceImpl.getRole(RoleLocalServiceImpl.java:827)
          [junit] 	at sun.reflect.GeneratedMethodAccessor173.invoke(Unknown Source)
          [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.aop.AopInvocationHandler.invoke(AopInvocationHandler.java:49)
          [junit] 	at com.sun.proxy.$Proxy114.getRole(Unknown Source)
          [junit] 	at com.liferay.portal.search.internal.SearchPermissionCheckerImpl._createSearchPermissionContext(SearchPermissionCheckerImpl.java:374)
          [junit] 	at com.liferay.portal.search.internal.SearchPermissionCheckerImpl._getPermissionBooleanFilter(SearchPermissionCheckerImpl.java:491)
          [junit] 	at com.liferay.portal.search.internal.SearchPermissionCheckerImpl._getPermissionBooleanFilter(SearchPermissionCheckerImpl.java:436)
          [junit] 	at com.liferay.portal.search.internal.SearchPermissionCheckerImpl.getPermissionBooleanFilter(SearchPermissionCheckerImpl.java:154)
          [junit] 	at com.liferay.portal.search.internal.indexer.PreFilterContributorHelperImpl._addPermissionFilter(PreFilterContributorHelperImpl.java:132)
          [junit] 	at com.liferay.portal.search.internal.indexer.PreFilterContributorHelperImpl._createPreFilterForEntryClassName(PreFilterContributorHelperImpl.java:155)
          [junit] 	at com.liferay.portal.search.internal.indexer.PreFilterContributorHelperImpl.contribute(PreFilterContributorHelperImpl.java:62)
          [junit] 	at com.liferay.portal.search.internal.indexer.IndexerQueryBuilderImpl._addPreFilters(IndexerQueryBuilderImpl.java:258)
          [junit] 	at com.liferay.portal.search.internal.indexer.IndexerQueryBuilderImpl.getQuery(IndexerQueryBuilderImpl.java:102)
          [junit] 	at com.liferay.portal.search.internal.indexer.IndexerSearcherImpl.doSearch(IndexerSearcherImpl.java:147)
          [junit] 	at com.liferay.portal.search.internal.permission.SearchResultPermissionFilterFactoryImpl._search(SearchResultPermissionFilterFactoryImpl.java:89)
          [junit] 	at com.liferay.portal.search.internal.permission.SearchResultPermissionFilterFactoryImpl.lambda$create$0(SearchResultPermissionFilterFactoryImpl.java:57)
          [junit] 	at com.liferay.portal.search.internal.permission.DefaultSearchResultPermissionFilter.getHits(DefaultSearchResultPermissionFilter.java:186)
          [junit] 	at com.liferay.portal.search.internal.permission.DefaultSearchResultPermissionFilter.search(DefaultSearchResultPermissionFilter.java:98)
          [junit] 	at com.liferay.portal.search.internal.indexer.IndexerSearcherImpl._search(IndexerSearcherImpl.java:182)
          [junit] 	at com.liferay.portal.search.internal.indexer.IndexerSearcherImpl.search(IndexerSearcherImpl.java:100)
          [junit] 	at com.liferay.portal.search.internal.indexer.DefaultIndexer.search(DefaultIndexer.java:265)
          [junit] 	at com.liferay.layout.internal.search.spi.model.index.contributor.LayoutModelDocumentContributor._getStagedContent(LayoutModelDocumentContributor.java:197)
          [junit] 	at com.liferay.layout.internal.search.spi.model.index.contributor.LayoutModelDocumentContributor.contribute(LayoutModelDocumentContributor.java:130)
          [junit] 	at com.liferay.layout.internal.search.spi.model.index.contributor.LayoutModelDocumentContributor.contribute(LayoutModelDocumentContributor.java:64)
          [junit] 	at com.liferay.portal.search.internal.indexer.IndexerDocumentBuilderImpl.lambda$getDocument$1(IndexerDocumentBuilderImpl.java:60)
          [junit] 	at java.lang.Iterable.forEach(Iterable.java:75)
          [junit] 	at com.liferay.portal.search.internal.indexer.IndexerDocumentBuilderImpl.getDocument(IndexerDocumentBuilderImpl.java:58)
          [junit] 	at com.liferay.portal.search.internal.indexer.IndexerWriterImpl.reindex(IndexerWriterImpl.java:235)
          [junit] 	at com.liferay.portal.search.internal.indexer.IndexerWriterImpl.lambda$reindex$0(IndexerWriterImpl.java:166)
          [junit] 	at java.util.Optional.ifPresent(Optional.java:159)
          [junit] 	at com.liferay.portal.search.internal.indexer.IndexerWriterImpl.reindex(IndexerWriterImpl.java:166)
          [junit] 	at com.liferay.portal.search.internal.indexer.DefaultIndexer.reindex(DefaultIndexer.java:250)
          [junit] 	at com.liferay.portal.search.buffer.NoAutoCommitIndexer.reindex(NoAutoCommitIndexer.java:230)
          [junit] 	at sun.reflect.GeneratedMethodAccessor275.invoke(Unknown Source)
          [junit] 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
          [junit] 	at java.lang.reflect.Method.invoke(Method.java:498)
          [junit] 	at com.liferay.portal.search.buffer.IndexerRequest.execute(IndexerRequest.java:96)
          [junit] 	at com.liferay.portal.search.internal.buffer.BaseIndexerRequestBufferExecutor.executeIndexerRequest(BaseIndexerRequestBufferExecutor.java:66)
          [junit] 	at com.liferay.portal.search.internal.buffer.DefaultIndexerRequestBufferExecutor.execute(DefaultIndexerRequestBufferExecutor.java:77)
          [junit] 	at com.liferay.portal.search.internal.buffer.BaseIndexerRequestBufferExecutor.execute(BaseIndexerRequestBufferExecutor.java:35)
          [junit] 	at com.liferay.portal.search.internal.buffer.IndexerRequestBufferTransactionLifecycleListener.committed(IndexerRequestBufferTransactionLifecycleListener.java:46)
          [junit] 	at com.liferay.portal.kernel.transaction.TransactionLifecycleNotifier.fireTransactionCommittedEvent(TransactionLifecycleNotifier.java:70)
          [junit] 	at com.liferay.portal.kernel.transaction.TransactionLifecycleNotifier$1.doCommitted(TransactionLifecycleNotifier.java:39)
          [junit] 	at com.liferay.portal.kernel.transaction.NewTransactionLifecycleListener.committed(NewTransactionLifecycleListener.java:29)
          [junit] 	at com.liferay.portal.kernel.transaction.TransactionLifecycleManager.fireTransactionCommittedEvent(TransactionLifecycleManager.java:34)
          [junit] 	at com.liferay.portal.spring.transaction.DefaultTransactionExecutor.commit(DefaultTransactionExecutor.java:51)
          [junit] 	at com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:77)
          [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.$Proxy28.removeResourcePermissions(Unknown Source)
          [junit] 	at com.liferay.portal.events.test.ServicePreActionTest._getThemeDisplayPlid(ServicePreActionTest.java:218)
          [junit] 	at com.liferay.portal.events.test.ServicePreActionTest.testInitThemeDisplayPlidDefaultUserPersonalSiteLayoutComposite(ServicePreActionTest.java:121)
          [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.arquillian.extension.junit.bridge.server.TestExecutorRunnable$2.evaluate(TestExecutorRunnable.java:234)
          [junit] 	at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
          [junit] 	at com.liferay.portal.kernel.test.rule.AbstractTestRule$2.evaluate(AbstractTestRule.java:99)
          [junit] 	at com.liferay.portal.kernel.test.rule.AbstractTestRule$2.evaluate(AbstractTestRule.java:99)
          [junit] 	at com.liferay.portal.kernel.test.rule.AbstractTestRule$2.evaluate(AbstractTestRule.java:99)
          [junit] 	at com.liferay.portal.kernel.test.rule.AbstractTestRule$2.evaluate(AbstractTestRule.java:99)
          [junit] 	at com.liferay.portal.kernel.test.rule.AbstractTestRule$2.evaluate(AbstractTestRule.java:99)
          [junit] 	at com.liferay.portal.kernel.test.rule.TimeoutTestRule$1.evaluate(TimeoutTestRule.java:89)
          [junit] 	at org.junit.rules.RunRules.evaluate(RunRules.java:20)
          [junit] 	at com.liferay.arquillian.extension.junit.bridge.server.TestExecutorRunnable$1.evaluate(TestExecutorRunnable.java:143)
          [junit] 	at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:59)
          [junit] 	at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:59)
          [junit] 	at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:59)
          [junit] 	at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:59)
          [junit] 	at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:59)
          [junit] 	at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:59)
          [junit] 	at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:59)
          [junit] 	at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:59)
          [junit] 	at org.junit.rules.RunRules.evaluate(RunRules.java:20)
          [junit] 	at com.liferay.arquillian.extension.junit.bridge.server.TestExecutorRunnable._execute(TestExecutorRunnable.java:181)
          [junit] 	at com.liferay.arquillian.extension.junit.bridge.server.TestExecutorRunnable.run(TestExecutorRunnable.java:95)
          [junit] 	at java.lang.Thread.run(Thread.java:745) 

       
      Full log jenkins-console.txt

      Regression range: https://github.com/liferay/liferay-portal/compare/d677c4fa47e91518f9a1fa898de67b333cf5554c...cbe13b3d9c2b7ffa0e5c173f70e2914bb25f55b7

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                21 weeks, 6 days ago

                Packages

                Version Package
                7.2.10 DXP FP6
                7.2.X
                Master