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

InstanceWorkflowMetricsIndexerTest failed intermittently with NullPointerException

    Description

    Testray

    Jenkins

    [exec] com.liferay.portal.workflow.metrics.service.internal.search.index.test.TokenWorkflowMetricsIndexerTest > testAddToken FAILED
         [exec]     java.lang.NullPointerException
         [exec]     	at com.liferay.portal.workflow.kaleo.service.impl.KaleoInstanceTokenLocalServiceImpl.addKaleoInstanceToken(KaleoInstanceTokenLocalServiceImpl.java:71)
         [exec]     	at jdk.internal.reflect.GeneratedMethodAccessor845.invoke(Unknown Source)
         [exec]     	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
         [exec]     	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
         [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.service.ServiceContextAdvice.invoke(ServiceContextAdvice.java:60)
         [exec]     	at com.liferay.portal.spring.aop.AopMethodInvocationImpl.proceed(AopMethodInvocationImpl.java:57)
         [exec]     	at com.liferay.portal.kernel.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:64)
         [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.$Proxy613.addKaleoInstanceToken(Unknown Source)
         [exec]     	at com.liferay.portal.workflow.kaleo.service.impl.KaleoInstanceTokenLocalServiceImpl.getRootKaleoInstanceToken(KaleoInstanceTokenLocalServiceImpl.java:244)
         [exec]     	at jdk.internal.reflect.GeneratedMethodAccessor850.invoke(Unknown Source)
         [exec]     	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
         [exec]     	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
         [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.service.ServiceContextAdvice.invoke(ServiceContextAdvice.java:60)
         [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.$Proxy613.getRootKaleoInstanceToken(Unknown Source)
         [exec]     	at com.liferay.portal.workflow.kaleo.service.KaleoInstanceTokenLocalServiceUtil.getRootKaleoInstanceToken(KaleoInstanceTokenLocalServiceUtil.java:375)
         [exec]     	at com.liferay.portal.workflow.kaleo.model.impl.KaleoInstanceImpl.getRootKaleoInstanceToken(KaleoInstanceImpl.java:41)
         [exec]     	at com.liferay.portal.workflow.kaleo.model.impl.KaleoInstanceImpl.getRootKaleoInstanceToken(KaleoInstanceImpl.java:50)
         [exec]     	at com.liferay.portal.workflow.kaleo.internal.search.spi.model.index.contributor.KaleoInstanceModelDocumentContributor.contribute(KaleoInstanceModelDocumentContributor.java:66)
         [exec]     	at com.liferay.portal.workflow.kaleo.internal.search.spi.model.index.contributor.KaleoInstanceModelDocumentContributor.contribute(KaleoInstanceModelDocumentContributor.java:38)
         [exec]     	at com.liferay.portal.search.internal.indexer.IndexerDocumentBuilderImpl.lambda$getDocument$1(IndexerDocumentBuilderImpl.java:60)
         [exec]     	at java.base/java.lang.Iterable.forEach(Iterable.java:75)
         [exec]     	at com.liferay.portal.search.internal.indexer.IndexerDocumentBuilderImpl.getDocument(IndexerDocumentBuilderImpl.java:58)
         [exec]     	at com.liferay.portal.search.internal.indexer.IndexerWriterImpl.reindex(IndexerWriterImpl.java:235)
         [exec]     	at com.liferay.portal.search.internal.indexer.DefaultIndexer.reindex(DefaultIndexer.java:261)
         [exec]     	at com.liferay.portal.search.internal.indexer.DefaultIndexer.reindex(DefaultIndexer.java:51)
         [exec]     	at com.liferay.portal.search.IndexableAdvice.afterReturning(IndexableAdvice.java:130)
         [exec]     	at com.liferay.portal.kernel.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:66)
         [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.$Proxy819.addKaleoInstance(Unknown Source)
         [exec]     	at com.liferay.portal.workflow.metrics.service.util.BaseWorkflowMetricsIndexerTestCase.addKaleoInstance(BaseWorkflowMetricsIndexerTestCase.java:138)
         [exec]     	at com.liferay.portal.workflow.metrics.service.util.BaseWorkflowMetricsIndexerTestCase.addKaleoTaskInstanceToken(BaseWorkflowMetricsIndexerTestCase.java:197)
         [exec]     	at com.liferay.portal.workflow.metrics.service.internal.search.index.test.TokenWorkflowMetricsIndexerTest.testAddToken(TokenWorkflowMetricsIndexerTest.java:49)
         [exec]     	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         [exec]     	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
         [exec]     	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
         [exec]     	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
         [exec]     	at com.liferay.arquillian.extension.junit.bridge.server.TestExecutorRunnable$2.evaluate(TestExecutorRunnable.java:234)
         [exec]     	at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
         [exec]     	at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
         [exec]     	at com.liferay.portal.kernel.test.rule.AbstractTestRule$2.evaluate(AbstractTestRule.java:99)
         [exec]     	at com.liferay.portal.kernel.test.rule.AbstractTestRule$2.evaluate(AbstractTestRule.java:99)
         [exec]     	at com.liferay.portal.kernel.test.rule.AbstractTestRule$2.evaluate(AbstractTestRule.java:99)
         [exec]     	at com.liferay.portal.kernel.test.rule.AbstractTestRule$2.evaluate(AbstractTestRule.java:99)
         [exec]     	at com.liferay.portal.kernel.test.rule.AbstractTestRule$2.evaluate(AbstractTestRule.java:99)
         [exec]     	at com.liferay.portal.kernel.test.rule.TimeoutTestRule$1.evaluate(TimeoutTestRule.java:89)
         [exec]     	at org.junit.rules.RunRules.evaluate(RunRules.java:20)
         [exec]     	at com.liferay.arquillian.extension.junit.bridge.server.TestExecutorRunnable$1.evaluate(TestExecutorRunnable.java:143)
         [exec]     	at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:59)
         [exec]     	at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:59)
         [exec]     	at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:59)
         [exec]     	at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:59)
         [exec]     	at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:59)
         [exec]     	at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:59)
         [exec]     	at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:59)
         [exec]     	at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:59)
         [exec]     	at org.junit.rules.RunRules.evaluate(RunRules.java:20)
         [exec]     	at com.liferay.arquillian.extension.junit.bridge.server.TestExecutorRunnable._execute(TestExecutorRunnable.java:181)
         [exec]     	at com.liferay.arquillian.extension.junit.bridge.server.TestExecutorRunnable.run(TestExecutorRunnable.java:95)
         [exec]     	at java.base/java.lang.Thread.run(Thread.java:834)
    

      Attachments

        Activity

          People

          Assignee:
          calvin.vo Calvin Vo
          Reporter:
          calvin.vo Calvin Vo
          Participants of an Issue:
          Recent user:
          Dennys Barros.1 (Inactive)
          Votes:
          0 Vote for this issue
          Watchers:
          0 Start watching this issue

            Dates

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

              Packages

              Version Package
              Master