legacy-knowledge-base
公開されました Jul. 2, 2025

リダイレクトツールの「404 URLs」タブの描画エラーについて

written-by

Roberto Díaz

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

問題

  • あるサイトで、ユーザーが 設定 > リダイレクト > 404 URLs (tab) に移動すると、サーバーログにこのエラーが表示されます:
    2022-02-22 13:26:42.295 ERROR [ajp-nio-0.0.0.0-8009-exec-50][IncludeTag:128] Current URL /group/revista-seguridad-social/~/control_panel/manage?p_p_id=com_liferay_redirect_web_internal_portlet_RedirectPortlet&p_p_lifecycle=0&p_p_state=maximized&p_p_mode=view&_com_liferay_redirect_web_internal_portlet_RedirectPortlet_navigation=404-urls generates exception: java.lang.NullPointerException
    java.lang.NullPointerException
    at com.liferay.redirect.web.internal.display.context.RedirectNotFoundEntriesManagementToolbarDisplayContext.getAvailableActions(RedirectNotFoundEntriesManagementToolbarDisplayContext.java:92)
    at org.apache.jsp.view_005fredirect_005fnot_005ffound_005fentries_jsp._jspService(view_005fredirect_005fnot_005ffound_005fentries_jsp.java:377)

Environment

  • Liferay DXP 7.3+

解決策

  • このエラーは、インデックスがデータベースから削除された要素を含んでいるために発生する可能性があります。 この矛盾は、ロジックがこのオブジェクトを取得しようとしたときにエラーを発生させる。
  • 解決策として、 コントロールパネル > 検索 > インデックスアクション で、再インデックスアクションを実行することができます:
    • Reindex com.liferay.redirect.model.RedirectEntry.
    • Reindex com.liferay.redirect.model.RedirectNotFoundEntry.
  • これを行うことで、データベースとインデックスを再生成し、同期させることになります。
  • また、サポートに新しいチケットを開き、 LPS-137405 がインストールされているかどうかを確認するよう依頼するのも便利です。 もしお持ちでない場合は、この修正版を提供することができます。

追加情報

did-this-article-resolve-your-issue

legacy-knowledge-base