Issue
Steps to Reproduce
- Add a form with a select field with 3 options named A, B, C
- Save and Publish Form
- Go to publish Form
- Submit a form with B selected
- View entries
- Navigate back to Form and delete option B
- Save Form
- View entries
Expected Result Form entry should be versioned and the submitted entry should still be displayed.
Actual Result Form portlet becomes unavailable and the error below is thrown in the console
16:28:31,122 ERROR [http-nio-9080-exec-6][PortletServlet:112] javax.portlet.PortletException: org.apache.jasper.JasperException: java.lang.NullPointerException
javax.portlet.PortletException: org.apache.jasper.JasperException: java.lang.NullPointerException
at com.liferay.portlet.PortletRequestDispatcherImpl.dispatch(PortletRequestDispatcherImpl.java:267)
at com.liferay.portlet.PortletRequestDispatcherImpl.include(PortletRequestDispatcherImpl.java:102)
at com.liferay.portal.kernel.portlet.bridges.mvc.MVCPortlet.include(MVCPortlet.java:594)
at com.liferay.portal.kernel.portlet.bridges.mvc.MVCPortlet.include(MVCPortlet.java:610)
at com.liferay.portal.kernel.portlet.bridges.mvc.MVCPortlet.doDispatch(MVCPortlet.java:494)
at javax.portlet.GenericPortlet.render(GenericPortlet.java:262)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1456)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:745)
Caused by: org.apache.jasper.JasperException: java.lang.NullPointerException
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:440)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:473)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:377)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
at com.liferay.portal.osgi.web.servlet.jsp.compiler.JspServlet.service(JspServlet.java:413)
at com.liferay.portal.osgi.web.servlet.jsp.compiler.JspServlet.service(JspServlet.java:424)
at org.eclipse.equinox.http.servlet.internal.registration.EndpointRegistration.service(EndpointRegistration.java:153)
at org.eclipse.equinox.http.servlet.internal.servlet.ResponseStateHandler.processRequest(ResponseStateHandler.java:62)
at org.eclipse.equinox.http.servlet.internal.context.DispatchTargets.doDispatch(DispatchTargets.java:117)
at org.eclipse.equinox.http.servlet.internal.servlet.RequestDispatcherAdaptor.include(RequestDispatcherAdaptor.java:48)
at com.liferay.portlet.PortletRequestDispatcherImpl.dispatch(PortletRequestDispatcherImpl.java:252)
... 214 more
Caused by: java.lang.NullPointerException
at com.liferay.dynamic.data.mapping.type.select.internal.SelectDDMFormFieldValueRenderer.render(SelectDDMFormFieldValueRenderer.java:62)
at com.liferay.dynamic.data.lists.form.web.internal.display.context.DDLFormViewRecordsDisplayContext$1.apply(DDLFormViewRecordsDisplayContext.java:116)
at com.liferay.dynamic.data.lists.form.web.internal.display.context.DDLFormViewRecordsDisplayContext$1.apply(DDLFormViewRecordsDisplayContext.java:112)
at com.liferay.portal.kernel.util.ListUtil.toList(ListUtil.java:453)
at com.liferay.dynamic.data.lists.form.web.internal.display.context.DDLFormViewRecordsDisplayContext.getColumnValue(DDLFormViewRecordsDisplayContext.java:110)
at org.apache.jsp.admin.view_005frecords_jsp._jspService(view_005frecords_jsp:684)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:111)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:411)
... 224 more
Environment
- Liferay DXP 7.1
Resolution
- The observed behavior is a known issue/bug.
- If the hotfix is required for this issue, please create a support ticket requesting hotfix by attaching patch details.
- Installing Fix Packs and Hotfixes on Liferay DXP will guide to install this hotfix in the respective environment.