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

7.0からのアップグレード時のcom.liferay.layout.page.template.serviceのNullPointerException

written-by

Mariano Alvaro

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

問題

  • ページ テンプレートに名前がない場合、7.0 から 7.4 にアップグレードすると、次のエラーが表示されます。
Caused by: java.lang.NullPointerException
at com.liferay.layout.page.template.internal.upgrade.v3_2_0.LayoutPageTemplateEntryUpgradeProcess._generateLayoutPageTemplateEntryKey(LayoutPageTemplateEntryUpgradeProcess.java:44) ~[?:?]
at com.liferay.layout.page.template.internal.upgrade.v3_2_0.LayoutPageTemplateEntryUpgradeProcess._upgradeLayoutPageTemplateEntryKey(LayoutPageTemplateEntryUpgradeProcess.java:69) ~[?:?]
at com.liferay.layout.page.template.internal.upgrade.v3_2_0.LayoutPageTemplateEntryUpgradeProcess.doUpgrade(LayoutPageTemplateEntryUpgradeProcess.java:34) ~[?:?]

Environment

  • 7.0 から 7.4 へのアップグレード

解決策

  • 7.0 のページ テンプレート名は、ポータル ユーザー インターフェイスから入力するときに必須ではありませんでした。
  • アップグレード ログに NPE が表示される場合、名前が空の場合があるかどうかを のクエリで確認してください。
  • その場合は、 コントロール パネル > サイト > ページ テンプレート から名前を追加するか、ページ テンプレートが不要になった場合は削除します。

did-this-article-resolve-your-issue

legacy-knowledge-base