-
Type:
Bug
-
Status: Closed
-
Resolution: No Longer Reproducible
-
Affects Version/s: 7.0.X, 7.1.X, 7.2.X, Master
-
Component/s: Dynamic Data Mapping
-
Labels:None
-
Fix Priority:4
-
Sprint:Forms_7.3_6
Reproducing steps
- Create a new web content structure consisting of a text field nested inside another text field.
- Rename the inside text field to the string "name".
- Create an associated template with the xml: <h1>Here is some web content</h1>.
- Create a new web content for that structure.
- Add a Web Content Display to a page.
- Select the web content we created and save.
Expected: The web content is shown according to the template we chose.
Observed: Nothing is shown.
For all versions (from master down to 7.0.X), the observed behavior is that nothing is shown. For 7.1.X and 7.0.X, however, we also get an error message in the logs:
2019-07-08 08:40:23.356 ERROR [http-nio-9090-exec-3][IncludeTag:128] Current URL /web/guest/home?p_p_id=com_liferay_portlet_configuration_web_portlet_PortletConfigurationPortlet&p_p_lifecycle=0&p_p_state=pop_up&p_p_mode=view&_com_liferay_portlet_configuration_web_portlet_PortletConfigurationPortlet_javax.portlet.action=editConfiguration&_com_liferay_portlet_configuration_web_portlet_PortletConfigurationPortlet_mvcPath=%2Fedit_configuration.jsp&_com_liferay_portlet_configuration_web_portlet_PortletConfigurationPortlet_returnToFullPageURL=%2Fweb%2Fguest&_com_liferay_portlet_configuration_web_portlet_PortletConfigurationPortlet_portletConfiguration=true&_com_liferay_portlet_configuration_web_portlet_PortletConfigurationPortlet_portletResource=com_liferay_journal_content_web_portlet_JournalContentPortlet_INSTANCE_5O7sjPGifdzq&_com_liferay_portlet_configuration_web_portlet_PortletConfigurationPortlet_previewWidth=&_com_liferay_portlet_configuration_web_portlet_PortletConfigurationPortlet_settingsScope=portletInstance&_com_liferay_portlet_configuration_web_portlet_PortletConfigurationPortlet_articleResourcePrimKey=38389 generates exception: java.lang.NullPointerException
java.lang.NullPointerException
at org.apache.jsp.journal_005ftemplate_jsp._jspService(journal_005ftemplate_jsp:305)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:111)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:741)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:411)
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:741)
at com.liferay.portal.osgi.web.servlet.jsp.compiler.internal.JspServlet.service(JspServlet.java:319)
at com.liferay.portal.osgi.web.servlet.jsp.compiler.internal.JspServlet.service(JspServlet.java:330)
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:120)
at org.eclipse.equinox.http.servlet.internal.servlet.RequestDispatcherAdaptor.include(RequestDispatcherAdaptor.java:48)
at com.liferay.portal.servlet.DirectServletPathRegisterDispatcher.include(DirectServletPathRegisterDispatcher.java:67)
at com.liferay.portal.servlet.DirectRequestDispatcherFactoryImpl$IndirectRequestDispatcher.include(DirectRequestDispatcherFactoryImpl.java:202)
at com.liferay.portal.servlet.ClassLoaderRequestDispatcherWrapper.doDispatch(ClassLoaderRequestDispatcherWrapper.java:79)
at com.liferay.portal.servlet.ClassLoaderRequestDispatcherWrapper.include(ClassLoaderRequestDispatcherWrapper.java:53)
at com.liferay.taglib.util.IncludeTag.includePage(IncludeTag.java:393)
at com.liferay.taglib.util.IncludeTag.include(IncludeTag.java:370)
at com.liferay.taglib.util.IncludeTag.doInclude(IncludeTag.java:215)
- is fixed by
-
LPS-114288 You Can't Preview Web Content If Structure Has Nested Field Named "name"
- Closed