Legacy Knowledge Base
Published Jun. 30, 2025

Unable to publish page due to NPE - Unable to process portlet com_liferay_layout_content_page_editor_web_internal_portlet_ContentPageEditorPortlet

Written By

Jamilly Macedo

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

  • When attempting to publish a page with an Asset Publisher configured to display entries from a Document Folder, an error message is displayed in the UI: "This page is not available. If this problem persists, discard existing drafts or make a copy of the page."

  • Additionally, the following errors are logged:

    2023-10-02 21:11:35.353 ERROR [http-nio-8080-exec-8][PortletRequestDispatcherImpl:295] Unable to dispatch request: java.lang.NullPointerException
    2023-10-02 21:11:35.354 ERROR [http-nio-8080-exec-8][PortletServlet:109] Unable to process portlet com_liferay_layout_content_page_editor_web_internal_portlet_ContentPageEditorPortlet: org.apache.jasper.JasperException: java.lang.NullPointerException
    javax.portlet.PortletException: org.apache.jasper.JasperException: java.lang.NullPointerException
    at com.liferay.portlet.internal.PortletRequestDispatcherImpl.dispatch(PortletRequestDispatcherImpl.java:298) ~[portal-impl.jar:?]
    at com.liferay.portlet.internal.PortletRequestDispatcherImpl.include(PortletRequestDispatcherImpl.java:114) ~[portal-impl.jar:?]
    at com.liferay.portal.kernel.portlet.bridges.mvc.MVCPortlet.include(MVCPortlet.java:611) ~[portal-kernel.jar:?]
    at com.liferay.portal.kernel.portlet.bridges.mvc.MVCPortlet.include(MVCPortlet.java:627) ~[portal-kernel.jar:?]
    at com.liferay.portal.kernel.portlet.bridges.mvc.MVCPortlet.doView(MVCPortlet.java:172) ~[portal-kernel.jar:?]
    at com.liferay.portal.kernel.portlet.LiferayPortlet.doDispatch(LiferayPortlet.java:278) ~[portal-kernel.jar:?]
    (...)
    Caused by: org.apache.jasper.JasperException: java.lang.NullPointerException
    at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:440) ~[jasper.jar:9.0.80]
    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:473) ~[jasper.jar:9.0.80]
    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:377) ~[jasper.jar:9.0.80]
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:623) ~[servlet-api.jar:4.0.FR]
    at com.liferay.portal.osgi.web.servlet.jsp.compiler.internal.JspServlet.service(JspServlet.java:319) ~[?:?]
    (...)
    Caused by: java.lang.NullPointerException
    at com.liferay.layout.content.page.editor.web.internal.util.ContentManager._getLayoutClassedModelPageContentsJSONArray(ContentManager.java:739) ~[bundleFile:?]
    at com.liferay.layout.content.page.editor.web.internal.util.ContentManager._getPageContentsJSONArray(ContentManager.java:989) ~[bundleFile:?]
    at com.liferay.layout.content.page.editor.web.internal.util.ContentManager.getPageContentsJSONArray(ContentManager.java:166) ~[bundleFile:?]
    at com.liferay.layout.content.page.editor.web.internal.display.context.ContentPageEditorDisplayContext.getEditorContext(ContentPageEditorDisplayContext.java:747) ~[bundleFile:?]
    at com.liferay.layout.content.page.editor.web.internal.display.context.ContentPageLayoutEditorDisplayContext.getEditorContext(ContentPageLayoutEditorDisplayContext.java:171) ~[bundleFile:?]
    at org.apache.jsp.view_jsp._jspService(view_jsp.java:225) ~[?:?]
    (...)
    2023-10-02 21:11:35.371 ERROR [http-nio-8080-exec-8][render_portlet_jsp:122] null
    java.lang.NullPointerException: null
    at com.liferay.layout.content.page.editor.web.internal.util.ContentManager._getLayoutClassedModelPageContentsJSONArray(ContentManager.java:739) ~[?:?]
    at com.liferay.layout.content.page.editor.web.internal.util.ContentManager._getPageContentsJSONArray(ContentManager.java:989) ~[?:?]
    at com.liferay.layout.content.page.editor.web.internal.util.ContentManager.getPageContentsJSONArray(ContentManager.java:166) ~[?:?]
    at com.liferay.layout.content.page.editor.web.internal.display.context.ContentPageEditorDisplayContext.getEditorContext(ContentPageEditorDisplayContext.java:747) ~[?:?]
    at com.liferay.layout.content.page.editor.web.internal.display.context.ContentPageLayoutEditorDisplayContext.getEditorContext(ContentPageLayoutEditorDisplayContext.java:171) ~[?:?]
    at org.apache.jsp.view_jsp._jspService(view_jsp.java:225) ~[?:?]
    (...)

Environment

  • Liferay DXP 7.4 U92

Resolution

  • The issue is addressed by LPS-197922, and can be resolved by updating to a Quarterly Release version of 2023.Q4 or above.
Did this article resolve your issue ?

Legacy Knowledge Base