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

Editing a template is not possible, if the template belongs to the global scope

    Details

      Description

      I have first created a structure und template that both belongs to the global scope. Using the side bars add button I have created an article with the Add new sub menu. The new web content will be shown on the page.

      When editing the article, the edit template button does not work. An empty popup titled Templates will open and an exception occurs:

      17:42:54,914 ERROR [http-bio-8080-exec-10][IncludeTag:92] Current URL /web/guest/content?p_p_id=166&p_p_lifecycle=0&p_p_state=pop_up&p_p_mode=view&_166_refererPortletName=15&_166_groupId=10184&_166_classNameId=0&_166_portletResource=15&_166_showBackURL=false&_166_struts_action=%2Fdynamic_data_mapping%2Fedit_template generates exception: 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:1376)
              at com.liferay.portal.util.PortalUtil.getClassName(PortalUtil.java:333)
              at com.liferay.portal.template.TemplateHandlerRegistryImpl.getTemplateHandler(TemplateHandlerRegistryImpl.java:53)
              at com.liferay.portal.kernel.template.TemplateHandlerRegistryUtil.getTemplateHandler(TemplateHandlerRegistryUtil.java:31)
              at org.apache.jsp.html.portlet.dynamic_005fdata_005fmapping.edit_005ftemplate_jsp._jspService(edit_005ftemplate_jsp.java:935)
              at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
              at com.liferay.portal.servlet.DirectRequestDispatcher.include(DirectRequestDispatcher.java:57)
              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.include(IncludeTag.java:295)
              at com.liferay.taglib.util.IncludeTag.doInclude(IncludeTag.java:192)
              at com.liferay.taglib.util.IncludeTag.doEndTag(IncludeTag.java:83)
              at org.apache.jsp.html.common.themes.portlet_jsp._jspService(portlet_jsp.java:3044)
              at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
              at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432)
              at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)
              at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
      

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  5 years, 44 weeks, 1 day ago

                  Packages

                  Version Package
                  6.2.1 CE GA2
                  6.2.X EE
                  7.0.0 M1