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

SLAInstanceResultWorkflowMetricsIndexerTest Fails with NullPointerException at testReindex

    Details

    • Type: Bug
    • Status: Closed
    • Resolution: Duplicate
    • Affects Version/s: Master
    • Fix Version/s: None
    • Component/s: Testing > Portal
    • Labels:

      Description

      Jenkins Console:

       
      com.liferay.portal.kernel.search.SearchException: java.lang.NullPointerException [exec] at com.liferay.portal.kernel.search.BaseIndexer.reindex(BaseIndexer.java:512) [exec] at com.liferay.portal.workflow.metrics.service.util.BaseWorkflowMetricsIndexerTestCase._assertReindex(BaseWorkflowMetricsIndexerTestCase.java:416) [exec] at com.liferay.portal.workflow.metrics.service.util.BaseWorkflowMetricsIndexerTestCase.assertSLAReindex(BaseWorkflowMetricsIndexerTestCase.java:247) [exec] at com.liferay.portal.workflow.metrics.service.internal.search.index.test.SLAInstanceResultWorkflowMetricsIndexerTest.testReindex(SLAInstanceResultWorkflowMetricsIndexerTest.java:127) [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) [exec] Caused by: java.lang.NullPointerException [exec] at com.liferay.portal.workflow.metrics.internal.search.index.SLATaskResultWorkflowMetricsIndexer.lambda$_creatDefaultDocuments$0(SLATaskResultWorkflowMetricsIndexer.java:191) [exec] at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:195) [exec] at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:195) [exec] at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1654) [exec] at java.base/java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:658) [exec] at java.base/java.util.stream.ReferencePipeline$7$1.accept(ReferencePipeline.java:274) [exec] at java.base/java.util.stream.Streams$StreamBuilderImpl.forEachRemaining(Streams.java:411) [exec] at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:484) [exec] at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474) [exec] at java.base/java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:150) [exec] at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:173) [exec] at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) [exec] at java.base/java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:497) [exec] at com.liferay.portal.workflow.metrics.internal.search.index.SLATaskResultWorkflowMetricsIndexer._creatDefaultDocuments(SLATaskResultWorkflowMetricsIndexer.java:199) [exec] at com.liferay.portal.workflow.metrics.internal.search.index.SLATaskResultWorkflowMetricsIndexer.reindex(SLATaskResultWorkflowMetricsIndexer.java:134) [exec] at com.liferay.portal.workflow.metrics.internal.search.SLAWorkflowMetricsIndexer.doReindex(SLAWorkflowMetricsIndexer.java:88) [exec] at com.liferay.portal.kernel.search.BaseIndexer.reindex(BaseIndexer.java:506) [exec] ... 30 more [exec]
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              support-lep@liferay.com SE Support
              Reporter:
              jacob.cerda Jacob Cerda (Inactive)
              Participants of an Issue:
              Recent user:
              Brian Wulbern
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                1 year, 39 weeks, 4 days ago

                  Packages

                  Version Package