Legacy Knowledge Base
Published Sep. 10, 2025

Data providers lead to NPEs during a DXP 7.0 to DXP 7.2 upgrade

Written By

Kanchan Bisht

How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!

While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.

Legacy Article

You are viewing an article from our legacy "FastTrack" publication program, made available for informational purposes. Articles in this program were published without a requirement for independent editing or verification and are provided"as is" without guarantee.

Before using any information from this article, independently verify its suitability for your situation and project.

Issue

  • A Data Provider configured in DXP 7.0 can lead to NullPointerExceptions when upgrading to DXP 7.2
  • Steps to reproduce:
    1. Start Liferay DXP 7.0 server
    2. Navigate to Forms -> Data Providers -> Add REST Data Provider
    3. Fill out the Data Provider and Save
    4. Shutdown the DXP 7.0 bundle
    5. Configure a Liferay DXP 7.2 bundle to upgrade the DXP 7.0 database
    6. Perform the upgrade
    Expected Behavior: The upgrade should complete without issue
    Observed Behavior: The com.liferay.dynamic.data.mapping.service module fails to upgrade with the following stack trace
    INFO  [main][UpgradeProcess:107] Failed upgrade process com.liferay.dynamic.data.mapping.internal.upgrade.v1_1_1.UpgradeDataProviderInstance in 2 ms
    INFO - Failed upgrade process com.liferay.dynamic.data.mapping.internal.upgrade.v1_1_1.UpgradeDataProviderInstance in 2 ms
    ERROR [main][ReleaseManagerOSGiCommands:144] Failed upgrade process for module com.liferay.dynamic.data.mapping.service
    com.liferay.portal.kernel.upgrade.UpgradeException: java.lang.NullPointerException
    	at com.liferay.portal.kernel.upgrade.UpgradeProcess.upgrade(UpgradeProcess.java:101)
    	at com.liferay.portal.kernel.upgrade.UpgradeProcess.upgrade(UpgradeProcess.java:137)
    	at com.liferay.portal.upgrade.internal.executor.UpgradeExecutor$UpgradeInfosRunnable.run(UpgradeExecutor.java:159)
    	at com.liferay.portal.output.stream.container.internal.OutputStreamContainerFactoryTrackerImpl.runWithSwappedLog(OutputStreamContainerFactoryTrackerImpl.java:121)
    	at com.liferay.portal.upgrade.internal.executor.UpgradeExecutor.executeUpgradeInfos(UpgradeExecutor.java:110)
    	at com.liferay.portal.upgrade.internal.executor.UpgradeExecutor.execute(UpgradeExecutor.java:87)
    	at com.liferay.portal.upgrade.internal.release.osgi.commands.ReleaseManagerOSGiCommands.execute(ReleaseManagerOSGiCommands.java:141)
    	at com.liferay.portal.upgrade.internal.registry.UpgradeStepRegistratorTracker$UpgradeStepRegistratorServiceTrackerCustomizer.addingService(UpgradeStepRegistratorTracker.java:174)
    	at com.liferay.portal.upgrade.internal.registry.UpgradeStepRegistratorTracker$UpgradeStepRegistratorServiceTrackerCustomizer.addingService(UpgradeStepRegistratorTracker.java:91)

Environment

  • Liferay DXP 7.2

Resolution

  • The observed behavior is a known issue that has been addressed in fix pack dxp-2 and above.
  • If the hotfix is required for this issue, please create a support ticket requesting the hotfix by attaching the patch details.
  • Installing Fix Packs and Hotfixes on Liferay DXP will guide you to install the Fixpack/Hotfix in your environment.

Additional Information

Did this article resolve your issue ?

Legacy Knowledge Base