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

NoSuchStructureException when deleted a global webcontent structure in Asset Publisher Portlet

    Details

      Description

      Steps to reproduce:

      1. Add a web content structure in Global scope "Web ContentTypeA".
      2. In Liferay site, created a site page "p1" and added an asset Publisher and scoped this Asset Publisher to "Web ContentTypeA".
      3. Back to Global site, delete webcontent structure "Web ContentTypeA".
      4. In Liferay site, go to "p1" page and open Asset Publisher Portlet Configuration.

      Expected Result:
      No errors in the console.

      Actual Result:
      The console thrown a NoSuchStructureException.

      07:00:02,103 ERROR [http-nio-8080-exec-7][IncludeTag:128] Current URL /web/guest/p1?p_p_id=com_liferay_portlet_configuration_web_portlet_PortletConfigurationPortlet&p_p_lifecycle=0&p_p_state=pop_up&p_p_col_id=column1&p_p_col_count=1&_com_liferay_portlet_configuration_web_portlet_PortletConfigurationPortlet_mvcPath=%2Fedit_configuration.jsp&_com_liferay_portlet_configuration_web_portlet_PortletConfigurationPortlet_redirect=%2Fweb%2Fguest%2Fp1&_com_liferay_portlet_configuration_web_portlet_PortletConfigurationPortlet_returnToFullPageURL=%2Fweb%2Fguest%2Fp1&_com_liferay_portlet_configuration_web_portlet_PortletConfigurationPortlet_portletConfiguration=true&_com_liferay_portlet_configuration_web_portlet_PortletConfigurationPortlet_portletResource=com_liferay_asset_publisher_web_portlet_AssetPublisherPortlet_INSTANCE_mIwubcrvhBsK&_com_liferay_portlet_configuration_web_portlet_PortletConfigurationPortlet_resourcePrimKey=32723_LAYOUT_com_liferay_asset_publisher_web_portlet_AssetPublisherPortlet_INSTANCE_mIwubcrvhBsK&yui_patched_v3_18_1_1_1470121192479_2468=1470121201912 generates exception: com.liferay.dynamic.data.mapping.kernel.NoSuchStructureException: No DDMStructure exists with the primary key 32668
      com.liferay.dynamic.data.mapping.kernel.NoSuchStructureException: No DDMStructure exists with the primary key 32668
              at com.liferay.dynamic.data.mapping.internal.DDMStructureManagerImpl.translate(DDMStructureManagerImpl.java:403)
              at com.liferay.dynamic.data.mapping.internal.DDMStructureManagerImpl.getStructure(DDMStructureManagerImpl.java:244)
              at com.liferay.dynamic.data.mapping.kernel.DDMStructureManagerUtil.getStructure(DDMStructureManagerUtil.java:132)
              at com.liferay.asset.kernel.model.BaseDDMStructureClassTypeReader.getClassType(BaseDDMStructureClassTypeReader.java:60)
              at org.apache.jsp.configuration_005fdynamic_jsp._jspService(configuration_005fdynamic_jsp:777)
              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:399)
              at com.liferay.portal.osgi.web.servlet.jsp.compiler.JspServlet.service(JspServlet.java:410)
              at com.liferay.portal.osgi.web.servlet.context.helper.internal.JspServletWrapper.service(JspServletWrapper.java:70)
              at org.eclipse.equinox.http.servlet.internal.registration.EndpointRegistration.service(EndpointRegistration.java:153)
              at org.eclipse.equinox.http.servlet.internal.servlet.FilterChainImpl.doFilter(FilterChainImpl.java:50)
              at com.liferay.portal.osgi.web.servlet.context.helper.internal.ServletContextHelperRegistrationImpl$RestrictPortletServletRequestFilter.doFilter(ServletContextHelperRegistrationImpl.java:447)
              at org.eclipse.equinox.http.servlet.internal.registration.FilterRegistration.doFilter(FilterRegistration.java:121)
              at org.eclipse.equinox.http.servlet.internal.servlet.FilterChainImpl.doFilter(FilterChainImpl.java:45)
              at org.eclipse.equinox.http.servlet.internal.servlet.ResponseStateHandler.processRequest(ResponseStateHandler.java:70)
      
      

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                3 years, 6 weeks, 3 days ago

                Packages

                Version Package
                7.0.0 DXP FP40
                7.0.0 DXP SP7
                7.0.5 CE GA6
                7.0.X
                7.1.0 M1
                7.1.X
                Master