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.