Legacy Knowledge Base
Published Sep. 10, 2025

NullPointerException in service builder methods after upgrade to DXP 7.3

Written By

Jamilly Macedo

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

  • After upgrading the portal to DXP 7.3, the following stack trace in some custom modules is reported:
Caused by: java.lang.NullPointerException
at com.liferay.portal.cache.internal.dao.orm.FinderCacheImpl._getArguments(FinderCacheImpl.java:466)
at com.liferay.portal.cache.internal.dao.orm.FinderCacheImpl.updateByEntityCache(FinderCacheImpl.java:387)
at com.liferay.portal.cache.internal.dao.orm.EntityCacheImpl._putResult(EntityCacheImpl.java:439)
at com.liferay.portal.cache.internal.dao.orm.EntityCacheImpl.putResult(EntityCacheImpl.java:336)
at com.liferay.portal.cache.internal.dao.orm.EntityCacheImpl.putResult(EntityCacheImpl.java:358)
at com.liferay.portal.cache.internal.dao.orm.EntityCacheImpl.putResult(EntityCacheImpl.java:328)

Environment

  • DXP 7.3

Resolution

  • This issue happens due to the version of the classes generated by the service builder.

    To solve this, some actions are required:

    1. Change the service.xml file to:
      • <!DOCTYPE service-builder PUBLIC "-//Liferay//DTD Service Builder 7.3.0//EN" "http://www.liferay.com/dtd/liferay-service-builder_7_3_0.dtd">
    2. Change the following settings in gradle.properties:
      • liferay.workspace.target.platform.version=7.3.0
    3. Update the settings.gradle:
      • classpath(group: "com.liferay", name: "com.liferay.gradle.plugins.workspace", version: "3.4.8")
    4. Regenerate the Service Builder.

Additional Information

 

Did this article resolve your issue ?

Legacy Knowledge Base