Legacy Knowledge Base
Published Jul. 2, 2025

Error rendering the 404 URLs tab in the Redirection tool

Written By

Roberto Díaz

How To articles are not official guidelines or officially supporteddocumentation. They are community-contributed content and may not alwaysreflect the latest updates to Liferay DXP. We welcome your feedback toimprove How to articles!

While we make every effort to ensure this Knowledge Base is accurate, itmay not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with anyfeedback or concerns.

Legacy Article

You are viewing an article from our legacy "FastTrack"publication program, made available for informational purposes. Articlesin this program were published without a requirement for independentediting or verification and are provided "as is" withoutguarantee.

Before using any information from this article, independently verify itssuitability for your situation and project.

Issue

  • In a given site, a user navigates to Configuration > Redirection > 404 URLs (tab) and this error appears in the server logs:
    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+ 

Resolution

  • This error could be produced because the index contains an element that was removed from the database. This inconsistency produces the error when logic tries to retrieve this object.
  • As solution you could go to Control Panel > Search > Index Actions and execute the reindex actions for: 
    • Reindex com.liferay.redirect.model.RedirectEntry.
    • Reindex com.liferay.redirect.model.RedirectNotFoundEntry.
  • Doing this, you'll regenerate and synchronize the database and your index.
  • It's also convenient open a new ticket to support and ask them to check if you have the LPS-137405 in your installation. If you do not have it they could provide this fix to you.

Additional Information

Did this article resolve your issue ?

Legacy Knowledge Base