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

Web Content Structure Editor - after saving changes and closing "Edit Default Values" iframe, opening it throws exceptions

    Details

    • Fix Priority:
      4

      Description

      1. Click Categories in the left hand Control Panel
      2. Click Add Vocabulary
        • Name: Newsletter
        • Description: Newsletter Description
        • Click Associated Asset Types > Choose Asset Type > Web Content
        • Flag the 'Required' check box
        • Save
      3. Click Add Category
        • Name: News
        • Description: News Description
        • Click To Vocabulary > Newsletter
        • Click Save
      4. In Site Pages, create a 'News' page for Public Pages with:
        • Template: Content Display Page
      5. Add a structure (with a text field and an image field) through Control Panel > Web Content
      6. Close the Structures iframe, reopen it (Manage>Structures)
      7. Click Actions > Edit Default Values next to the created structure
      8. Click Categorization (in the iframe)
        • Click Select under Newsletter
          • Flag the 'News' check box
          • Close the Categories Window
        • Click Display Page on the iframe right menu
          • Click Select under Display Page > choose the 'News' page
      9. Click Save
      10. Click Actions > Edit Default Values (opening the iframe again)

      Expected result:
      Edit Default Values iframe will open with no console exceptions.

      Actual result:
      Edit Default Values iframe opens, but the console throws the following exception:

      00:20:38,858 ERROR [http-bio-8080-exec-9][IncludeTag:205] Current URL /group/control_panel/manage?p_p_auth=ravJ4MVq&p_p_id=15&p_p_lifecycle=0&p_p_state=pop_up&p_p_mode=view&doAsGroupId=19&_15_groupId=19&_15_classNameId=10093&_15_structureId=10436&_15_classPK=10437&_15_redirect=http%3A%2F%2Flocalhost%3A8080%2Fgroup%2Fcontrol_panel%2Fmanage%3Fp_p_id%3D166%26p_p_lifecycle%3D0%26p_p_state%3Dpop_up%26p_p_mode%3Dview%26doAsGroupId%3D19%26_166_ddmResource%3Dcom.liferay.portlet.journal%26_166_refererWebDAVToken%3Djournal%26_166_scopeStructureType%3Dcom.liferay.portlet.journal.model.JournalArticle%26_166_templateHeaderTitle%3D%26_166_scopeAvailableFields%3DLiferay.FormBuilder.AVAILABLE_FIELDS.WCM_STRUCTURE%26_166_scopeTemplateType%3Ddisplay%26_166_ddmResourceActionId%3DADD_TEMPLATE%26_166_scopeTemplateMode%3D%26_166_showManageTemplates%3Dtrue%26_166_scopeTitle%3DStructures%26_166_scopeStructureName%3Dstructure%26_166_scopeStorageType%3Dxml%26_166_showGlobalScope%3Dfalse%26_166_refererPortletName%3D15%26_166_classNameId%3D%26_166_templateId%3D%26_166_groupId%3D%26_166_struts_action%3D%252Fdynamic_data_mapping%252Fview%26_166_classPK%3D%26_166_doAsGroupId%3D19%26_166_eventName%3DselectStructure&_15_struts_action=%2Fjournal%2Fedit_article&_15_backURL=http%3A%2F%2Flocalhost%3A8080%2Fgroup%2Fcontrol_panel%2Fmanage%3Fp_p_id%3D166%26p_p_lifecycle%3D0%26p_p_state%3Dpop_up%26p_p_mode%3Dview%26doAsGroupId%3D19%26_166_ddmResource%3Dcom.liferay.portlet.journal%26_166_refererWebDAVToken%3Djournal%26_166_scopeStructureType%3Dcom.liferay.portlet.journal.model.JournalArticle%26_166_templateHeaderTitle%3D%26_166_scopeAvailableFields%3DLiferay.FormBuilder.AVAILABLE_FIELDS.WCM_STRUCTURE%26_166_scopeTemplateType%3Ddisplay%26_166_ddmResourceActionId%3DADD_TEMPLATE%26_166_scopeTemplateMode%3D%26_166_showManageTemplates%3Dtrue%26_166_scopeTitle%3DStructures%26_166_scopeStructureName%3Dstructure%26_166_scopeStorageType%3Dxml%26_166_showGlobalScope%3Dfalse%26_166_refererPortletName%3D15%26_166_classNameId%3D%26_166_templateId%3D%26_166_groupId%3D%26_166_struts_action%3D%252Fdynamic_data_mapping%252Fview%26_166_classPK%3D%26_166_doAsGroupId%3D19%26_166_eventName%3DselectStructure generates exception: null
      00:20:38,864 ERROR [http-bio-8080-exec-9][IncludeTag:154] java.lang.NullPointerException
              at com.liferay.portlet.journal.service.impl.JournalArticleLocalServiceImpl.getDisplayArticle(JournalArticleLocalServiceImpl.java:1467)
              at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:112)
              at com.liferay.portal.spring.transaction.DefaultTransactionExecutor.execute(DefaultTransactionExecutor.java:61)
              at com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:51)
              at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:108)
              at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:55)
              at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:108)
              at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:55)
              at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:108)
              at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:55)
              at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:108)
              at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:55)
              at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:108)
              at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:55)
              at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:108)
              at com.liferay.portal.spring.aop.ServiceBeanAopProxy.invoke(ServiceBeanAopProxy.java:166)
              at com.liferay.portal.security.pacl.PACLInvocationHandler.doInvoke(PACLInvocationHandler.java:61)
              at com.liferay.portal.security.pacl.PACLInvocationHandler.invoke(PACLInvocationHandler.java:50)
              at com.liferay.portal.security.pacl.PortalSecurityManagerImpl$DoBeanLocatorImplPACL$1.invoke(PortalSecurityManagerImpl.java:471)
              at com.liferay.portal.security.pacl.PACLInvocationHandler.doInvoke(PACLInvocationHandler.java:61)
      

      Saving, and reopening again gives a slightly different error

      00:23:11,914 ERROR [http-bio-8080-exec-9][IncludeTag:205] Current URL /group/control_panel/manage?p_p_auth=ravJ4MVq&p_p_id=15&p_p_lifecycle=0&p_p_state=pop_up&p_p_mode=view&doAsGroupId=19&_15_groupId=19&_15_classNameId=10093&_15_structureId=10436&_15_classPK=10437&_15_redirect=http%3A%2F%2Flocalhost%3A8080%2Fgroup%2Fcontrol_panel%2Fmanage%3Fp_p_id%3D166%26p_p_lifecycle%3D0%26p_p_state%3Dpop_up%26p_p_mode%3Dview%26doAsGroupId%3D19%26_166_ddmResource%3Dcom.liferay.portlet.journal%26_166_refererWebDAVToken%3Djournal%26_166_scopeStructureType%3Dcom.liferay.portlet.journal.model.JournalArticle%26_166_templateHeaderTitle%3D%26_166_scopeAvailableFields%3DLiferay.FormBuilder.AVAILABLE_FIELDS.WCM_STRUCTURE%26_166_scopeTemplateType%3Ddisplay%26_166_ddmResourceActionId%3DADD_TEMPLATE%26_166_scopeTemplateMode%3D%26_166_showManageTemplates%3Dtrue%26_166_scopeTitle%3DStructures%26_166_scopeStructureName%3Dstructure%26_166_scopeStorageType%3Dxml%26_166_showGlobalScope%3Dfalse%26_166_refererPortletName%3D15%26_166_classNameId%3D%26_166_templateId%3D%26_166_groupId%3D%26_166_struts_action%3D%252Fdynamic_data_mapping%252Fview%26_166_classPK%3D%26_166_doAsGroupId%3D19%26_166_eventName%3DselectStructure&_15_struts_action=%2Fjournal%2Fedit_article&_15_backURL=http%3A%2F%2Flocalhost%3A8080%2Fgroup%2Fcontrol_panel%2Fmanage%3Fp_p_id%3D166%26p_p_lifecycle%3D0%26p_p_state%3Dpop_up%26p_p_mode%3Dview%26doAsGroupId%3D19%26_166_ddmResource%3Dcom.liferay.portlet.journal%26_166_refererWebDAVToken%3Djournal%26_166_scopeStructureType%3Dcom.liferay.portlet.journal.model.JournalArticle%26_166_templateHeaderTitle%3D%26_166_scopeAvailableFields%3DLiferay.FormBuilder.AVAILABLE_FIELDS.WCM_STRUCTURE%26_166_scopeTemplateType%3Ddisplay%26_166_ddmResourceActionId%3DADD_TEMPLATE%26_166_scopeTemplateMode%3D%26_166_showManageTemplates%3Dtrue%26_166_scopeTitle%3DStructures%26_166_scopeStructureName%3Dstructure%26_166_scopeStorageType%3Dxml%26_166_showGlobalScope%3Dfalse%26_166_refererPortletName%3D15%26_166_classNameId%3D%26_166_templateId%3D%26_166_groupId%3D%26_166_struts_action%3D%252Fdynamic_data_mapping%252Fview%26_166_classPK%3D%26_166_doAsGroupId%3D19%26_166_eventName%3DselectStructure generates exception: null
      00:23:11,917 ERROR [http-bio-8080-exec-9][IncludeTag:154] java.lang.NullPointerException
              at com.liferay.portlet.journal.service.impl.JournalArticleLocalServiceImpl.getDisplayArticle(JournalArticleLocalServiceImpl.java:1467)
              at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:112)
              at com.liferay.portal.spring.transaction.DefaultTransactionExecutor.execute(DefaultTransactionExecutor.java:61)
              at com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:51)
              at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:108)
              at com.liferay.portal.spring.aop.ServiceBeanAopProxy.invoke(ServiceBeanAopProxy.java:166)
              at com.liferay.portal.security.pacl.PACLInvocationHandler.doInvoke(PACLInvocationHandler.java:61)
              at com.liferay.portal.security.pacl.PACLInvocationHandler.invoke(PACLInvocationHandler.java:50)
              at com.liferay.portal.security.pacl.PortalSecurityManagerImpl$DoBeanLocatorImplPACL$1.invoke(PortalSecurityManagerImpl.java:471)
              at com.liferay.portal.security.pacl.PACLInvocationHandler.doInvoke(PACLInvocationHandler.java:61)
              at com.liferay.portal.security.pacl.PACLInvocationHandler.invoke(PACLInvocationHandler.java:50)
              at com.liferay.portlet.journal.service.JournalArticleLocalServiceUtil.getDisplayArticle(JournalArticleLocalServiceUtil.java:750)
              at com.liferay.portlet.journal.asset.JournalArticleAssetRendererFactory.getAssetRenderer(JournalArticleAssetRendererFactory.java:81)
              at com.liferay.portlet.asset.model.BaseAssetRendererFactory.getAssetRenderer(BaseAssetRendererFactory.java:64)
              at org.apache.jsp.html.portlet.journal.article.display_005fpage_jsp._jspService(display_005fpage_jsp.java:1760)
              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:55)
              at com.liferay.portal.servlet.ClassLoaderRequestDispatcherWrapper.doDispatch(ClassLoaderRequestDispatcherWrapper.java:76)
              at com.liferay.portal.servlet.ClassLoaderRequestDispatcherWrapper.include(ClassLoaderRequestDispatcherWrapper.java:51)
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              brian.wulbern Brian Wulbern
              Reporter:
              brian.wulbern Brian Wulbern
              Participants of an Issue:
              Recent user:
              Esther Sanz
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                7 years, 6 weeks, 1 day ago

                  Packages

                  Version Package
                  6.2.0 CE RC1
                  6.2.0 CE RC2