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

RuntimeException occurs when create a display page template

    Details

      Description

      Step to reproduce:

      1. Product Menu > Design > Page Templates > Display Page Templates
      2. Add a new display page template with Web Content Article and Basic Web Content

      Expected Results:
      No error is thrown in server console.

      Actual Results:
      Content Page Editor is temporarily unavailable.
      The following error is thrown

      2021-02-23 06:53:13.124 WARN  [http-nio-8080-exec-10][PortalImpl:6689] java.lang.RuntimeException: Unable to get class name from id 0
      java.lang.RuntimeException: Unable to get class name from id 0
              at com.liferay.portal.util.PortalImpl.getClassName(PortalImpl.java:1637)
              at com.liferay.analytics.reports.web.internal.info.display.contributor.util.LayoutDisplayPageProviderUtil.initLayoutDisplayPageObjectProvider(LayoutDisplayPageProviderUtil.java:48)
              at com.liferay.analytics.reports.web.internal.request.attributes.contributor.AnalyticsReportsInfoDisplayRequestAttributesContributor.addAttributes(AnalyticsReportsInfoDisplayRequestAttributesContributor.java:42)
              at com.liferay.layout.type.controller.display.page.internal.layout.type.controller.DisplayPageLayoutTypeController.addAttributes(DisplayPageLayoutTypeController.java:267)
              at com.liferay.layout.type.controller.display.page.internal.layout.type.controller.DisplayPageLayoutTypeController.includeLayoutContent(DisplayPageLayoutTypeController.java:196)
      

      Reproduced on:
      Tomcat 9.0.40 + MySQL 5.7. Portal master-private GIT ID: 09206ef3a03ebcd6b1d9d18a76d736ee4745541a.

      Cannot be reproduced on:
      Tomcat 9.0.40 + MySQL 5.7. Portal master GIT ID: 09206ef3a03ebcd6b1d9d18a76d736ee4745541a.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              yang.cao Yang Cao
              Reporter:
              yang.cao Yang Cao
              Participants of an Issue:
              Recent user:
              Yang Cao
              Engineering Assignee:
              Cristina Gonzalez
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                11 weeks ago

                  Packages

                  Version Package
                  Master