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

ORMException is thrown after updating a site template when the portal is under load

    Details

      Description

      Steps to reproduce

      1. Start the portal
      2. Go to Control Panel -> Sites -> Sites
      3. Add a new site based on the "Community Site" template, and name it "somesite"
      4. Navigate to the site pages so that they are compiled
      5. Navigate to Control Panel -> Sites -> Site Templates -> Community Site
      6. Start the attached script
      7. Move one of the portlets on the site template to another location
      8. Observe the log

      Experienced behavior: the below exception is thrown (please find attached the whole error message):

      07:59:00,828 ERROR [http-nio-8080-exec-16][JDBCExceptionReporter:234] Duplicate entry 'com.liferay.portlet.sites.util.SitesImpl-32120' for key 'IX_228562AD'
      07:59:00,829 ERROR [http-nio-8080-exec-14][JDBCExceptionReporter:234] Duplicate entry 'com.liferay.portlet.sites.util.SitesImpl-32120' for key 'IX_228562AD'
      07:59:00,833 ERROR [http-nio-8080-exec-18][JDBCExceptionReporter:234] Duplicate entry 'com.liferay.portlet.sites.util.SitesImpl-32120' for key 'IX_228562AD'
      07:59:00,833 ERROR [http-nio-8080-exec-21][JDBCExceptionReporter:234] Duplicate entry 'com.liferay.portlet.sites.util.SitesImpl-32120' for key 'IX_228562AD'
      07:59:00,833 ERROR [http-nio-8080-exec-17][JDBCExceptionReporter:234] Duplicate entry 'com.liferay.portlet.sites.util.SitesImpl-32120' for key 'IX_228562AD'
      07:59:00,831 ERROR [http-nio-8080-exec-7][JDBCExceptionReporter:234] Duplicate entry 'com.liferay.portlet.sites.util.SitesImpl-32120' for key 'IX_228562AD'
      07:59:00,846 ERROR [http-nio-8080-exec-4][JDBCExceptionReporter:234] Duplicate entry 'com.liferay.portlet.sites.util.SitesImpl-32120' for key 'IX_228562AD'
      07:59:00,830 ERROR [http-nio-8080-exec-11][JDBCExceptionReporter:234] Duplicate entry 'com.liferay.portlet.sites.util.SitesImpl-32120' for key 'IX_228562AD'
      07:59:06,500 ERROR [http-nio-8080-exec-5][JDBCExceptionReporter:234] Duplicate entry 'com.liferay.portlet.sites.util.SitesImpl-32120' for key 'IX_228562AD'
      07:59:06,510 ERROR [http-nio-8080-exec-16][JDBCExceptionReporter:234] Duplicate entry 'com.liferay.portlet.sites.util.SitesImpl-32120' for key 'IX_228562AD'
      07:59:06,517 ERROR [http-nio-8080-exec-2][SitesImpl:1355] com.liferay.portal.kernel.exception.SystemException: com.liferay.portal.kernel.dao.orm.ORMException: {mvccVersion=5, layoutSetId=32120, groupId=32118, companyId=20116, createDate=Wed Aug 16 09:03:02 GMT 2017, modifiedDate=Wed Aug 16 09:03:03 GMT 2017, privateLayout=false, logoId=0, themeId=classic_WAR_classictheme, colorSchemeId=01, css=, pageCount=2, settings=last-merge-time=1502874183569_, layoutSetPrototypeUuid=967edbc2-4fb4-95e9-caf0-f2a175174bad, layoutSetPrototypeLinkEnabled=true} is stale in comparison to {mvccVersion=10, layoutSetId=32120, groupId=32118, companyId=20116, createDate=2017-08-16 09:03:02.27, modifiedDate=2017-08-18 07:59:06.368, privateLayout=false, logoId=0, themeId=classic_WAR_classictheme, colorSchemeId=01, css=, pageCount=2, settings=last-merge-time=1503043146385_, layoutSetPrototypeUuid=967edbc2-4fb4-95e9-caf0-f2a175174bad, layoutSetPrototypeLinkEnabled=true} [Sanitized]
      com.liferay.portal.kernel.exception.SystemException: com.liferay.portal.kernel.dao.orm.ORMException: {mvccVersion=5, layoutSetId=32120, groupId=32118, companyId=20116, createDate=Wed Aug 16 09:03:02 GMT 2017, modifiedDate=Wed Aug 16 09:03:03 GMT 2017, privateLayout=false, logoId=0, themeId=classic_WAR_classictheme, colorSchemeId=01, css=, pageCount=2, settings=last-merge-time=1502874183569_, layoutSetPrototypeUuid=967edbc2-4fb4-95e9-caf0-f2a175174bad, layoutSetPrototypeLinkEnabled=true} is stale in comparison to {mvccVersion=10, layoutSetId=32120, groupId=32118, companyId=20116, createDate=2017-08-16 09:03:02.27, modifiedDate=2017-08-18 07:59:06.368, privateLayout=false, logoId=0, themeId=classic_WAR_classictheme, colorSchemeId=01, css=, pageCount=2, settings=last-merge-time=1503043146385_, layoutSetPrototypeUuid=967edbc2-4fb4-95e9-caf0-f2a175174bad, layoutSetPrototypeLinkEnabled=true} [Sanitized]
      	at com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl.processException(BasePersistenceImpl.java:265)
      	at com.liferay.portal.service.persistence.impl.LayoutSetPersistenceImpl.updateImpl(LayoutSetPersistenceImpl.java:1947)
      	at com.liferay.portal.service.persistence.impl.LayoutSetPersistenceImpl.updateImpl(LayoutSetPersistenceImpl.java:74)
      	at com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl.update(BasePersistenceImpl.java:348)
      	at com.liferay.portal.service.base.LayoutSetLocalServiceBaseImpl.updateLayoutSet(LayoutSetLocalServiceBaseImpl.java:315)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:498)
      	at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:163)
      	at com.liferay.portal.service.impl.LayoutSetLocalServiceStagingAdvice.invoke(LayoutSetLocalServiceStagingAdvice.java:42)
      	at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:137)
      	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:137)
      	at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:56)
      	at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:137)
      	at com.liferay.portal.spring.aop.ServiceBeanAopProxy.invoke(ServiceBeanAopProxy.java:169)
      	at com.sun.proxy.$Proxy175.updateLayoutSet(Unknown Source)
      	at com.liferay.portal.kernel.service.LayoutSetLocalServiceUtil.updateLayoutSet(LayoutSetLocalServiceUtil.java:156)

      Expected behavior: No exception should be thrown

       Reproduced with de-27 and on ee-7.0.x commit 6a1f3038c429fc59586c696df30de7d44b0c3206

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                joyce.wang Joyce Wang
                Reporter:
                rimi.saadou Rimi Saadou (Inactive)
                Participants of an Issue:
                Recent user:
                Csaba Turcsan
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  2 years, 11 weeks, 1 day ago

                  Packages

                  Version Package
                  7.0.0 DXP FP46
                  7.0.6 CE GA7
                  7.0.0 DXP SP8
                  7.0.X
                  7.1.X
                  Master