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

Possible StaleObjectStateException in method ExpandoValueLocalServiceUtil.addValue

    Details

    • Type: Bug
    • Status: Verified
    • Resolution: Unresolved
    • Affects Version/s: 7.3.X, Master
    • Fix Version/s: None
    • Labels:

      Description

      Random exceptions are obtained when invoking ExpandoBridgeImpl.setAttribute in a non multithreaded environment:

       

      Caused by: com.liferay.portal.kernel.exception.SystemException: com.liferay.portal.kernel.dao.orm.ORMException: {"cachedModel":false,"classPK":"8613825","columnBitmask":"0","companyId":"4417814","ctCollectionId":"0","entityCacheEnabled":true,"escapedModel":false,"finderCacheEnabled":true,"modelClass":"com.liferay.expando.kernel.model.ExpandoRow","modelClassName":"com.liferay.expando.kernel.model.ExpandoRow","modifiedDate":1622111267123,"mvccVersion":"0","new":false,"originalClassPK":"8613825","originalTableId":"4418321","primaryKey":"8613827","primaryKeyObj":"8613827","rowId":"8613827","tableId":"4418321"} is stale in comparison to {"cachedModel":false,"classPK":"8613825","columnBitmask":"0","companyId":"4417814","ctCollectionId":"0","entityCacheEnabled":true,"escapedModel":false,"finderCacheEnabled":true,"modelClass":"com.liferay.expando.kernel.model.ExpandoRow","modelClassName":"com.liferay.expando.kernel.model.ExpandoRow","modifiedDate":1622111267106,"mvccVersion":"1","new":false,"originalClassPK":"8613825","originalTableId":"4418321","primaryKey":"8613827","primaryKeyObj":"8613827","rowId":"8613827","tableId":"4418321"}
              at com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl.processException(BasePersistenceImpl.java:573)
              at com.liferay.portlet.expando.service.persistence.impl.ExpandoRowPersistenceImpl.updateImpl(ExpandoRowPersistenceImpl.java:1598)
              at com.liferay.portlet.expando.service.persistence.impl.ExpandoRowPersistenceImpl.updateImpl(ExpandoRowPersistenceImpl.java:73)
              at com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl.update(BasePersistenceImpl.java:710)
              at com.liferay.portlet.expando.service.impl.ExpandoValueLocalServiceImpl.doAddValue(ExpandoValueLocalServiceImpl.java:1748)
              at com.liferay.portlet.expando.service.impl.ExpandoValueLocalServiceImpl.addValue(ExpandoValueLocalServiceImpl.java:83)
              at sun.reflect.GeneratedMethodAccessor445.invoke(Unknown Source)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.lang.reflect.Method.invoke(Method.java:498)
              at com.liferay.portal.spring.aop.AopMethodInvocationImpl.proceed(AopMethodInvocationImpl.java:50)
              at com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:69)
              at com.liferay.portal.spring.aop.AopMethodInvocationImpl.proceed(AopMethodInvocationImpl.java:57)
              at com.liferay.portal.spring.aop.AopInvocationHandler.invoke(AopInvocationHandler.java:49)
              at com.sun.proxy.$Proxy61.addValue(Unknown Source)
              at com.liferay.portlet.expando.service.impl.ExpandoValueLocalServiceImpl.addValue(ExpandoValueLocalServiceImpl.java:656)
              at sun.reflect.GeneratedMethodAccessor442.invoke(Unknown Source)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.lang.reflect.Method.invoke(Method.java:498)
              at com.liferay.portal.spring.aop.AopMethodInvocationImpl.proceed(AopMethodInvocationImpl.java:50)
              at com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:69)
              at com.liferay.portal.spring.aop.AopMethodInvocationImpl.proceed(AopMethodInvocationImpl.java:57)
              at com.liferay.portal.spring.aop.AopInvocationHandler.invoke(AopInvocationHandler.java:49)
              at com.sun.proxy.$Proxy61.addValue(Unknown Source)
              at com.liferay.portlet.expando.service.impl.ExpandoValueLocalServiceImpl.addValue(ExpandoValueLocalServiceImpl.java:582)
      

        Attachments

          Activity

            People

            Assignee:
            support-lep@liferay.com SE Support
            Reporter:
            mariano.alvaro Mariano Álvaro
            Participants of an Issue:
            Recent user:
            Mariano Álvaro
            Engineering Assignee:
            Mariano Álvaro
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Days since last comment:
              21 weeks, 3 days ago

                Packages

                Version Package