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

Including $processor.processPortlet in layout template causes StaleObjectStateException

    Details

      Description

      Including $processor.processPortlet in layout template causes StaleObjectStateException

      Steps to reproduce:

      • write a layout template with this example code
      #set ($customCSS = {"customCSSClassName": "portlet-static portlet-dropzone-disabled"})
       #set ($advancedData = {"advancedData": "$customCSS"})
       #set ($myHash = { "showPortletBreadcrumb": "true", "portletSetupCss" : "$advancedData"})
       
       $processor.processPortlet(
       "com_liferay_site_navigation_breadcrumb_web_portlet_SiteNavigationBreadcrumbPortlet", 
       $myHash
       )
      • simulate multi user access (jmeter or browser F5) to page with this template
      • the simulation causes attached stracktrace

      I resolved replacing with this code in template

      #set ($pref = "<portlet-preferences><preference><name>portletSetupCss</name><value>{advancedData={customCSSClassName=portlet-static portlet-dropzone-disabled}}</value></preference><preference><name>showPortletBreadcrumb</name><value>true</value></preference></portlet-preferences>")
       $theme.runtime("com_liferay_site_navigation_breadcrumb_web_portlet_SiteNavigationBreadcrumbPortlet", "", $pref)

        Attachments

        1. error.log.2018-09-18.log
          75 kB
        2. joyce-70-layouttpl.war
          7 kB
        3. joyce-layouttpl.war
          7 kB
        4. LPS-81552-joyce.jmx
          3 kB
        5. StaleObjectStateException.txt
          44 kB

          Issue Links

            Activity

              People

              • Assignee:
                joyce.wang Joyce Wang
                Reporter:
                riccardo Riccardo Martini
                Participants of an Issue:
                Recent user:
                Csaba Turcsan
              • Votes:
                1 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

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

                  Packages

                  Version Package
                  7.0.0 DXP FP66
                  7.0.X
                  7.1.1 CE GA2
                  7.1.10 DXP FP4
                  7.1.10.1 SP1
                  7.1.X
                  Master