Details

      Description

      Steps to reproduce

      1. Navigate to Site > Build > Application Display Templates

      Expected result: Management toolbar is present
      Actual result: No management toolbar is present, unable to add ADT. There is an exception thrown when accessing the ADT site admin portlet

      2018-05-17 16:06:21.886 ERROR [http-nio-8080-exec-7][IncludeTag:128] Current URL /group/guest/~/control_panel/manage?p_p_id=com_liferay_dynamic_data_mapping_web_portlet_PortletDisplayTemplatePortlet&p_p_lifecycle=0&p_p_state=maximized&p_p_auth=tj47OOtk generates exception: java.lang.RuntimeException: Unable to get class name from id 0
      com.liferay.portal.kernel.exception.NoSuchClassNameException: No ClassName exists with the primary key 0
              at com.liferay.portal.service.persistence.impl.ClassNamePersistenceImpl.findByPrimaryKey(ClassNamePersistenceImpl.java:614)
              at com.liferay.portal.service.persistence.impl.ClassNamePersistenceImpl.findByPrimaryKey(ClassNamePersistenceImpl.java:631)
              at com.liferay.portal.service.base.ClassNameLocalServiceBaseImpl.getClassName(ClassNameLocalServiceBaseImpl.java:221)
              at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:158)
              at com.liferay.portal.spring.transaction.DefaultTransactionExecutor.execute(DefaultTransactionExecutor.java:54)
              at com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:58)
              at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:135)
              at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:56)
              at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:135)
              at com.liferay.portal.spring.aop.ServiceBeanAopProxy.invoke(ServiceBeanAopProxy.java:145)
              at com.liferay.portal.kernel.service.ClassNameLocalServiceUtil.getClassName(ClassNameLocalServiceUtil.java:215)
              at com.liferay.portal.util.PortalImpl.getClassName(PortalImpl.java:1569)
              at com.liferay.dynamic.data.mapping.internal.security.permission.support.DDMPermissionSupportTracker.getDDMTemplatePermissionSupportServiceWrapper(DDMPermissionSupportTracker.java:70)
              at com.liferay.dynamic.data.mapping.internal.security.permission.support.DDMPermissionSupportImpl.containsAddTemplatePermission(DDMPermissionSupportImpl.java:124)
              at com.liferay.dynamic.data.mapping.web.internal.security.permission.resource.DDMTemplatePermission.containsAddTemplatePermission(DDMTemplatePermission.java:55)
              at org.apache.jsp.template_005ftoolbar_jsp._jspService(template_005ftoolbar_jsp.java:751)
              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)
      

      Reproduced on:
      Tomcat 9.0.6 + MySQL 5.7
      Portal master GIT ID: 42a9ddf070349ad22980bebd4fec05aab87b52c1

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  1 year, 16 weeks, 3 days ago

                  Packages

                  Version Package
                  7.1.0 Beta 1
                  7.1.0 Beta 2
                  7.1.X
                  Master