legacy-knowledge-base
公開されました Sep. 10, 2025

DXP 7.3 へのアップグレード後にサービス ビルダー メソッドで NullPointerException が発生する

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

learn-legacy-article-disclaimer-text

問題

  • ポータルを DXP 7.3 にアップグレードした後、一部のカスタム モジュールで次のスタック トレースが報告されます。
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

解決策

  • この問題は、サービス ビルダーによって生成されたクラスのバージョンが原因で発生します。

    これを解決するには、いくつかのアクションが必要です。

    1. service.xml ファイルを次のように変更します:
      • <!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. gradle.propertiesで次の設定を変更します。
      • liferay.workspace.target.platform.version=7.3.0
    3. settings.gradleを更新します。
      • classpath(group: "com.liferay", name: "com.liferay.gradle.plugins.workspace", version: "3.4.8")
    4. Service Builder を再生成します。

追加情報

did-this-article-resolve-your-issue

legacy-knowledge-base