Server error after migration from 7.4.3.132-ga132 to DXP 2025.q1.22-lts and then to DXP 2026.q1.2-lts.

Hello all. I migrated the database from a Liferay Portal 7.4.3.132-ga132 instance to Liferay DXP 2025.q1.22-lts and then to Liferay DXP 2026.q1.2-lts. Everything completed successfully and without errors.

I use a Free Tier license key.

The new Liferay DXP 2026.q1.2-lts instance starts without errors, but when I connect for the first time, I get the following error. After that, everything works normally.

Can anyone tell me which direction to look for to avoid the following error?

INFO [main][StartupHelperUtil:102] There are no patches installed
INFO [main][c:-1] DXP Production license validation passed
INFO [main][AutoDeployDir:152] Auto deploy scanner started for D:\dev\liferay\2026.q1.2-lts\liferay-dxp-nt103\deploy
INFO [liferay/background_task-2][BackgroundTaskMessageListener:131] Unable to acquire lock, queuing background task 282943
INFO [liferay/background_task-5][BackgroundTaskMessageListener:131] Unable to acquire lock, queuing background task 282946
INFO [liferay/background_task-3][BackgroundTaskMessageListener:131] Unable to acquire lock, queuing background task 282944
INFO [liferay/background_task-4][BackgroundTaskMessageListener:131] Unable to acquire lock, queuing background task 282945

The Liferay instance starts without errors but the first time a user logs in this happens - The below error is repeated for every companyId and for different backgroundTaskId and all have status=4:

ERROR [liferay/background_task_status-2][SerialDestination:55] Unable to process message {destinationName=liferay/background_task_status, response=null, responseDestinationName=null, responseId=null, payload=null, values={companyId=86570343900642, taskExecutorClassName=com.liferay.portal.workflow.metrics.internal.background.task.WorkflowMetricsReindexBackgroundTaskExecutor, groupId=0, name=WorkflowMetricsIndexCreator, backgroundTaskId=282639, status=4}}
com.liferay.portal.kernel.messaging.MessageListenerException: java.lang.NullPointerException: Cannot invoke “com.liferay.portal.kernel.backgroundtask.BackgroundTaskExecutor.getIsolationLevel()” because “backgroundTaskExecutor” is null
at com.liferay.portal.kernel.messaging.BaseMessageListener.receive(BaseMessageListener.java:32) ~[portal-kernel.jar:?]
at com.liferay.portal.kernel.messaging.InvokerMessageListener.receive(InvokerMessageListener.java:62) ~[portal-kernel.jar:?]
at com.liferay.portal.messaging.internal.SerialDestination$1.run(SerialDestination.java:50) ~[?:?]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144) ~[?:?]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642) ~[?:?]
at java.lang.Thread.run(Thread.java:1583) [?:?]
Caused by: java.lang.NullPointerException: Cannot invoke “com.liferay.portal.kernel.backgroundtask.BackgroundTaskExecutor.getIsolationLevel()” because “backgroundTaskExecutor” is null
at com.liferay.portal.background.task.internal.lock.helper.BackgroundTaskLockHelper._getLockKey(BackgroundTaskLockHelper.java:58) ~[?:?]
at com.liferay.portal.background.task.internal.lock.helper.BackgroundTaskLockHelper.isLockedBackgroundTask(BackgroundTaskLockHelper.java:28) ~[?:?]
at com.liferay.portal.background.task.internal.messaging.BackgroundTaskStatusMessageListener.doReceive(BackgroundTaskStatusMessageListener.java:81) ~[?:?]
at com.liferay.portal.kernel.messaging.BaseMessageListener.doReceive(BaseMessageListener.java:39) ~[portal-kernel.jar:?]
at com.liferay.portal.kernel.messaging.BaseMessageListener.receive(BaseMessageListener.java:25) ~[portal-kernel.jar:?]
… 5 more