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:
-
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">
-
-
Change the following settings in gradle.properties:
-
liferay.workspace.target.platform.version=7.3.0
-
-
Update the settings.gradle:
-
classpath(group: "com.liferay", name: "com.liferay.gradle.plugins.workspace", version: "3.4.8")
-
- Regenerate the Service Builder.
-
Change the service.xml file to:
Additional Information