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

Inconsistent NPE fetching Kaleo Definition on startup after upgrade

    Details

      Description

      Steps to Reproduce:

      1. Import attached 7.0.10.6 database to MySQL
      2. Upgrade to 7.2.x/master
      3. Start portal

      Error sometimes occurs during upgrade OR during startup:

           [java] 2019-08-20 21:39:46.623 ERROR [com.liferay.portal.workflow.metrics.internal.petra.executor.WorkflowMetricsPortalExecutor-2][WorkflowMetricsPortalExecutor:56] java.lang.NullPointerException
           [java] java.lang.NullPointerException
           [java] 	at com.liferay.portal.workflow.kaleo.service.KaleoDefinitionLocalServiceUtil.fetchKaleoDefinition(KaleoDefinitionLocalServiceUtil.java:261)
           [java] 	at com.liferay.portal.workflow.kaleo.model.impl.KaleoDefinitionVersionImpl.fetchKaleoDefinition(KaleoDefinitionVersionImpl.java:44)
           [java] 	at com.liferay.portal.workflow.metrics.internal.search.index.BaseWorkflowMetricsIndexer.getKaleoDefinition(BaseWorkflowMetricsIndexer.java:137)
           [java] 	at com.liferay.portal.workflow.metrics.internal.search.index.NodeWorkflowMetricsIndexer._createDocument(NodeWorkflowMetricsIndexer.java:151)
           [java] 	at com.liferay.portal.workflow.metrics.internal.search.index.NodeWorkflowMetricsIndexer.createDocument(NodeWorkflowMetricsIndexer.java:101)
           [java] 	at com.liferay.portal.workflow.metrics.internal.search.index.NodeWorkflowMetricsIndexer.lambda$null$1(NodeWorkflowMetricsIndexer.java:224)
           [java] 	at com.liferay.portal.workflow.metrics.internal.petra.executor.WorkflowMetricsPortalExecutor.lambda$null$0(WorkflowMetricsPortalExecutor.java:53)
           [java] 	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
           [java] 	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
           [java] 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
           [java] 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
           [java] 	at java.lang.Thread.run(Thread.java:745)
           [java] 2019-08-20 21:39:46.629 ERROR [com.liferay.portal.workflow.metrics.internal.petra.executor.WorkflowMetricsPortalExecutor-2][WorkflowMetricsPortalExecutor:56] java.lang.NullPointerException
           [java] java.lang.NullPointerException
           [java] 	at com.liferay.portal.workflow.kaleo.service.KaleoDefinitionLocalServiceUtil.fetchKaleoDefinition(KaleoDefinitionLocalServiceUtil.java:261)
           [java] 	at com.liferay.portal.workflow.kaleo.model.impl.KaleoDefinitionVersionImpl.fetchKaleoDefinition(KaleoDefinitionVersionImpl.java:44)
           [java] 	at com.liferay.portal.workflow.metrics.internal.search.index.BaseWorkflowMetricsIndexer.getKaleoDefinition(BaseWorkflowMetricsIndexer.java:137)
           [java] 	at com.liferay.portal.workflow.metrics.internal.search.index.NodeWorkflowMetricsIndexer._createDocument(NodeWorkflowMetricsIndexer.java:151)
           [java] 	at com.liferay.portal.workflow.metrics.internal.search.index.NodeWorkflowMetricsIndexer.createDocument(NodeWorkflowMetricsIndexer.java:101)
           [java] 	at com.liferay.portal.workflow.metrics.internal.search.index.NodeWorkflowMetricsIndexer.lambda$null$1(NodeWorkflowMetricsIndexer.java:224)
           [java] 	at com.liferay.portal.workflow.metrics.internal.petra.executor.WorkflowMetricsPortalExecutor.lambda$null$0(WorkflowMetricsPortalExecutor.java:53)
           [java] 	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
           [java] 	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
           [java] 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
           [java] 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
           [java] 	at java.lang.Thread.run(Thread.java:745)
           [java] 2019-08-20 21:39:46.630 ERROR [com.liferay.portal.workflow.metrics.internal.petra.executor.WorkflowMetricsPortalExecutor-2][WorkflowMetricsPortalExecutor:56] java.lang.NullPointerException
           [java] java.lang.NullPointerException
           [java] 	at com.liferay.portal.workflow.kaleo.service.KaleoDefinitionLocalServiceUtil.fetchKaleoDefinition(KaleoDefinitionLocalServiceUtil.java:261)
           [java] 	at com.liferay.portal.workflow.kaleo.model.impl.KaleoDefinitionVersionImpl.fetchKaleoDefinition(KaleoDefinitionVersionImpl.java:44)
           [java] 	at com.liferay.portal.workflow.metrics.internal.search.index.BaseWorkflowMetricsIndexer.getKaleoDefinition(BaseWorkflowMetricsIndexer.java:137)
           [java] 	at com.liferay.portal.workflow.metrics.internal.search.index.NodeWorkflowMetricsIndexer._createDocument(NodeWorkflowMetricsIndexer.java:151)
           [java] 	at com.liferay.portal.workflow.metrics.internal.search.index.NodeWorkflowMetricsIndexer.createDocument(NodeWorkflowMetricsIndexer.java:110)
           [java] 	at com.liferay.portal.workflow.metrics.internal.search.index.NodeWorkflowMetricsIndexer.lambda$null$3(NodeWorkflowMetricsIndexer.java:235)
           [java] 	at com.liferay.portal.workflow.metrics.internal.petra.executor.WorkflowMetricsPortalExecutor.lambda$null$0(WorkflowMetricsPortalExecutor.java:53)
           [java] 	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
           [java] 	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
           [java] 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
           [java] 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
           [java] 	at java.lang.Thread.run(Thread.java:745)
           [java] 2019-08-20 21:39:46.631 ERROR [com.liferay.portal.workflow.metrics.internal.petra.executor.WorkflowMetricsPortalExecutor-2][WorkflowMetricsPortalExecutor:56] java.lang.NullPointerException
           [java] java.lang.NullPointerException
           [java] 	at com.liferay.portal.workflow.kaleo.service.KaleoDefinitionLocalServiceUtil.fetchKaleoDefinition(KaleoDefinitionLocalServiceUtil.java:261)
           [java] 	at com.liferay.portal.workflow.kaleo.model.impl.KaleoDefinitionVersionImpl.fetchKaleoDefinition(KaleoDefinitionVersionImpl.java:44)
           [java] 	at com.liferay.portal.workflow.metrics.internal.search.index.BaseWorkflowMetricsIndexer.getKaleoDefinition(BaseWorkflowMetricsIndexer.java:137)
           [java] 	at com.liferay.portal.workflow.metrics.internal.search.index.NodeWorkflowMetricsIndexer._createDocument(NodeWorkflowMetricsIndexer.java:151)
           [java] 	at com.liferay.portal.workflow.metrics.internal.search.index.NodeWorkflowMetricsIndexer.createDocument(NodeWorkflowMetricsIndexer.java:110)
           [java] 	at com.liferay.portal.workflow.metrics.internal.search.index.NodeWorkflowMetricsIndexer.lambda$null$3(NodeWorkflowMetricsIndexer.java:235)
           [java] 	at com.liferay.portal.workflow.metrics.internal.petra.executor.WorkflowMetricsPortalExecutor.lambda$null$0(WorkflowMetricsPortalExecutor.java:53)
           [java] 	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
           [java] 	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
           [java] 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
           [java] 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
           [java] 	at java.lang.Thread.run(Thread.java:745) 

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                brooke.dalton Brooke Dalton
                Reporter:
                brooke.dalton Brooke Dalton
                Participants of an Issue:
                Recent user:
                Jason Pince
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  11 weeks, 2 days ago

                  Packages

                  Version Package
                  7.2.10 DXP FP2
                  7.2.10.1 DXP SP1
                  7.2.X
                  7.2.1 CE GA2
                  Master