Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-74077

Adding a display template to a DDL Display portlet throws a null pointer exception

    Details

      Description

      Steps to Reproduce:

      1. Add a Dynamic Data List Display Portlet to your page.
      2. Add a list using the portlet. [+Add List]
      3. from Select a Data Definition, create a new data definition with a field.
      4. Save list with data definition and return to the page.
      5. Add a Display Template using the portlet.[+Add Display Template]
      6. Type in a name, and click Save and Continue.
      7. Close the new Template popup.

      *Expected Results:*The DDL display saves and applies the template without errors.

      Actual Results:

      The DDL display throws a null pointer exception. If using a non-empty Velocity template, changing the list causes the DDL display to stop displaying lists(unclear if this also applies to Freemarker templates EDIT: Also happens with Freemarker). Any further changes to the template cause null pointer exceptions. 

      Reproduced on:
      Tomcat 8.0.32 + MySQL 5.7.17. Portal master GIT ID: 3093baf677062a452989b69c3285fba415fcfffa.

      Stack trace:

      21:03:39,930 ERROR [http-nio-8080-exec-6][IncludeTag:128] Current URL /web/guest/home?p_p_id=com_liferay_dynamic_data_lists_web_portlet_DDLDisplayPortlet_INSTANCE_a5WFTr0EISN7&p_p_lifecycle=0&p_p_state=normal&p_p_mode=view generates exception: java.lang.NullPointerException
      java.lang.NullPointerException
              at com.liferay.dynamic.data.lists.web.internal.template.DDLDisplayTemplateTransformer.transform(DDLDisplayTemplateTransformer.java:99)
              at org.apache.jsp.view_005ftemplate_005frecords_jsp._jspService(view_005ftemplate_005frecords_jsp.java:308)
              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)
              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.portal.servlet.DirectServletPathRegisterDispatcher.include(DirectServletPathRegisterDispatcher.java:67)
              at com.liferay.portal.servlet.ClassLoaderRequestDispatcherWrapper.doDispatch(ClassLoaderRequestDispatcherWrapper.java:78)
              at com.liferay.portal.servlet.ClassLoaderRequestDispatcherWrapper.include(ClassLoaderRequestDispatcherWrapper.java:53)
              at com.liferay.taglib.util.IncludeTag.includePage(IncludeTag.java:372)
              at com.liferay.taglib.util.IncludeTag.include(IncludeTag.java:349)
              at com.liferay.taglib.util.IncludeTag.doInclude(IncludeTag.java:202)
      

       

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                victor.ware Victor Ware
                Reporter:
                brian.chen Brian Chen (Inactive)
                Participants of an Issue:
                Recent user:
                Jason Pince
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  2 years, 47 weeks, 5 days ago

                  Packages

                  Version Package
                  7.1.X
                  Master