Details

    Description

      [exec] com.liferay.document.library.trash.test.DLFileEntryTrashHandlerTest > testTrashAndRestoreWithDraftStatusIsNotVisible FAILED
           [exec]     com.liferay.portal.kernel.exception.SystemException: com.liferay.portal.kernel.dao.orm.ORMException: {"classNameId":"0","classPK":"0","companyId":"20102","createDate":1562932149821,"custom1ImageId":"0","custom2ImageId":"0","description":"","extension":"txt","extraSettings":"","fileEntryId":"55994","fileEntryTypeId":"0","fileName":"HA4shEkbXsLJDmR8OdwqMWUFO7BNW43OD5mMNfKxlI0ddyR0YY8NPugpF5A9H0WJF2Q7KdEBwFy6NdnTEpZ4pgOpDxTPPK3Wth4HcfQrsUUMsbKZd7WNLMrXahsZi1Mc5h3StfZCfwfHQEE8kJjeYLSQF2Xg2HpFayRsxNTpTUBnbewK0jpxeXdrLEXvIa67TQkZGidZff7SRU3oRy7FJwa2xaZk5kC6fV9uuSL3K0MUbXG6OX06YGcOhUJ.txt","folderId":"55990","groupId":"55987","largeImageId":"0","lastPublishDate":null,"manualCheckInRequired":false,"mimeType":"text\/plain","modifiedDate":1562932149911,"mvccVersion":"1","name":"289","readCount":0,"repositoryId":"55987","size":"8","smallImageId":"0","title":"HA4shEkbXsLJDmR8OdwqMWUFO7BNW43OD5mMNfKxlI0ddyR0YY8NPugpF5A9H0WJF2Q7KdEBwFy6NdnTEpZ4pgOpDxTPPK3Wth4HcfQrsUUMsbKZd7WNLMrXahsZi1Mc5h3StfZCfwfHQEE8kJjeYLSQF2Xg2HpFayRsxNTpTUBnbewK0jpxeXdrLEXvIa67TQkZGidZff7SRU3oRy7FJwa2xaZk5kC6fV9uuSL3K0MUbXG6OX06YGcOhUJ0u71","treePath":"\/55990\/","userId":"20131","userName":"Test Test","uuid":"940b9dd5-188e-9922-6bce-7ba2a6b7c287","version":"1.0"} is stale in comparison to {"classNameId":"0","classPK":"0","companyId":"20102","createDate":1562932149821,"custom1ImageId":"0","custom2ImageId":"0","description":"","extension":"txt","extraSettings":"","fileEntryId":"55994","fileEntryTypeId":"0","fileName":"HA4shEkbXsLJDmR8OdwqMWUFO7BNW43OD5mMNfKxlI0ddyR0YY8NPugpF5A9H0WJF2Q7KdEBwFy6NdnTEpZ4pgOpDxTPPK3Wth4HcfQrsUUMsbKZd7WNLMrXahsZi1Mc5h3StfZCfwfHQEE8kJjeYLSQF2Xg2HpFayRsxNTpTUBnbewK0jpxeXdrLEXvIa67TQkZGidZff7SRU3oRy7FJwa2xaZk5kC6fV9uuSL3K0MUbXG6OX06YGcOhUJ.txt","folderId":"55990","groupId":"55987","largeImageId":"0","lastPublishDate":null,"manualCheckInRequired":false,"mimeType":"text\/plain","modifiedDate":1562932149909,"mvccVersion":"2","name":"289","readCount":0,"repositoryId":"55987","size":"8","smallImageId":"0","title":"HA4shEkbXsLJDmR8OdwqMWUFO7BNW43OD5mMNfKxlI0ddyR0YY8NPugpF5A9H0WJF2Q7KdEBwFy6NdnTEpZ4pgOpDxTPPK3Wth4HcfQrsUUMsbKZd7WNLMrXahsZi1Mc5h3StfZCfwfHQEE8kJjeYLSQF2Xg2HpFayRsxNTpTUBnbewK0jpxeXdrLEXvIa67TQkZGidZff7SRU3oRy7FJwa2xaZk5kC6fV9uuSL3K0MUbXG6OX06YGcOhUJ0u71","treePath":"\/55990\/","userId":"20131","userName":"Test Test","uuid":"940b9dd5-188e-9922-6bce-7ba2a6b7c287","version":"1.0"}
           [exec]         at com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl.processException(BasePersistenceImpl.java:446)
           [exec]         at com.liferay.portlet.documentlibrary.service.persistence.impl.DLFileEntryPersistenceImpl.updateImpl(DLFileEntryPersistenceImpl.java:15049)
           [exec]         at com.liferay.portlet.documentlibrary.service.persistence.impl.DLFileEntryPersistenceImpl.updateImpl(DLFileEntryPersistenceImpl.java:71)
           [exec]         at com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl.update(BasePersistenceImpl.java:544)
           [exec]         at com.liferay.portlet.documentlibrary.service.impl.DLFileEntryLocalServiceImpl.updateStatus(DLFileEntryLocalServiceImpl.java:2012)
           [exec]         at sun.reflect.GeneratedMethodAccessor426.invoke(Unknown Source)
           [exec]         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
           [exec]         at java.lang.reflect.Method.invoke(Method.java:498)
           [exec]         at com.liferay.portal.spring.aop.AopMethodInvocationImpl.proceed(AopMethodInvocationImpl.java:50)
           [exec]         at com.liferay.portal.spring.transaction.TransactionInterceptor.lambda$invoke$0(TransactionInterceptor.java:64)
           [exec]         at com.liferay.portal.spring.transaction.DefaultTransactionExecutor._execute(DefaultTransactionExecutor.java:128)
           [exec]         at com.liferay.portal.spring.transaction.DefaultTransactionExecutor.execute(DefaultTransactionExecutor.java:51)
           [exec]         at com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:62)
           [exec]         at com.liferay.portal.spring.aop.AopMethodInvocationImpl.proceed(AopMethodInvocationImpl.java:57)
           [exec]         at com.liferay.portal.service.ServiceContextAdvice.invoke(ServiceContextAdvice.java:60)
           [exec]         at com.liferay.portal.spring.aop.AopMethodInvocationImpl.proceed(AopMethodInvocationImpl.java:57)
           [exec]         at com.liferay.portal.spring.aop.AopInvocationHandler.invoke(AopInvocationHandler.java:49)
           [exec]         at com.sun.proxy.$Proxy65.updateStatus(Unknown Source)
           [exec]         at com.liferay.portlet.documentlibrary.service.impl.DLAppHelperLocalServiceImpl.restoreFileEntryFromTrash(DLAppHelperLocalServiceImpl.java:743)
           [exec]         at com.liferay.portlet.documentlibrary.service.impl.DLAppHelperLocalServiceImpl.restoreFileEntryFromTrash(DLAppHelperLocalServiceImpl.java:682)
           [exec]         at sun.reflect.GeneratedMethodAccessor1089.invoke(Unknown Source)
           [exec]         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
           [exec]         at java.lang.reflect.Method.invoke(Method.java:498)
           [exec]         at com.liferay.portal.kernel.bean.ClassLoaderBeanHandler.invoke(ClassLoaderBeanHandler.java:66)
           [exec]         at com.sun.proxy.$Proxy836.restoreFileEntryFromTrash(Unknown Source)
           [exec]         at com.liferay.document.library.kernel.service.DLAppHelperLocalServiceWrapper.restoreFileEntryFromTrash(DLAppHelperLocalServiceWrapper.java:323)
           [exec]         at sun.reflect.GeneratedMethodAccessor1089.invoke(Unknown Source)
           [exec]         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
           [exec]         at java.lang.reflect.Method.invoke(Method.java:498)
           [exec]         at com.liferay.portal.kernel.bean.ClassLoaderBeanHandler.invoke(ClassLoaderBeanHandler.java:66)
           [exec]         at com.sun.proxy.$Proxy837.restoreFileEntryFromTrash(Unknown Source)
           [exec]         at com.liferay.document.library.kernel.service.DLAppHelperLocalServiceWrapper.restoreFileEntryFromTrash(DLAppHelperLocalServiceWrapper.java:323)
           [exec]         at com.liferay.document.library.internal.service.DLFileRankDLAppHelperLocalServiceWrapper.restoreFileEntryFromTrash(DLFileRankDLAppHelperLocalServiceWrapper.java:153)
           [exec]         at sun.reflect.GeneratedMethodAccessor1089.invoke(Unknown Source)
           [exec]         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
           [exec]         at java.lang.reflect.Method.invoke(Method.java:498)
           [exec]         at com.liferay.portal.kernel.bean.ClassLoaderBeanHandler.invoke(ClassLoaderBeanHandler.java:66)
           [exec]         at com.sun.proxy.$Proxy837.restoreFileEntryFromTrash(Unknown Source)
           [exec]         at com.liferay.document.library.kernel.service.DLAppHelperLocalServiceWrapper.restoreFileEntryFromTrash(DLAppHelperLocalServiceWrapper.java:323)
           [exec]         at sun.reflect.GeneratedMethodAccessor1089.invoke(Unknown Source)
           [exec]         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
           [exec]         at java.lang.reflect.Method.invoke(Method.java:498)
           [exec]         at com.liferay.portal.kernel.bean.ClassLoaderBeanHandler.invoke(ClassLoaderBeanHandler.java:66)
           [exec]         at com.sun.proxy.$Proxy837.restoreFileEntryFromTrash(Unknown Source)
           [exec]         at sun.reflect.GeneratedMethodAccessor1089.invoke(Unknown Source)
           [exec]         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
           [exec]         at java.lang.reflect.Method.invoke(Method.java:498)
           [exec]         at com.liferay.portal.spring.aop.AopMethodInvocationImpl.proceed(AopMethodInvocationImpl.java:50)
           [exec]         at com.liferay.portal.spring.transaction.TransactionInterceptor.lambda$invoke$0(TransactionInterceptor.java:64)
           [exec]         at com.liferay.portal.spring.transaction.DefaultTransactionExecutor._execute(DefaultTransactionExecutor.java:128)
           [exec]         at com.liferay.portal.spring.transaction.DefaultTransactionExecutor.execute(DefaultTransactionExecutor.java:51)
           [exec]         at com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:62)
           [exec]         at com.liferay.portal.spring.aop.AopMethodInvocationImpl.proceed(AopMethodInvocationImpl.java:57)
           [exec]         at com.liferay.portal.spring.aop.AopInvocationHandler.invoke(AopInvocationHandler.java:49)
           [exec]         at com.sun.proxy.$Proxy77.restoreFileEntryFromTrash(Unknown Source)
           [exec]         at com.liferay.document.library.internal.repository.capabilities.LiferayTrashCapability.restoreFileEntryFromTrash(LiferayTrashCapability.java:207)
           [exec]         at com.liferay.portlet.documentlibrary.service.impl.DLTrashLocalServiceImpl.restoreFileEntryFromTrash(DLTrashLocalServiceImpl.java:85)
           [exec]         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
           [exec]         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
           [exec]         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
           [exec]         at java.lang.reflect.Method.invoke(Method.java:498)
           [exec]         at com.liferay.portal.spring.aop.AopMethodInvocationImpl.proceed(AopMethodInvocationImpl.java:50)
           [exec]         at com.liferay.portal.spring.transaction.TransactionInterceptor.lambda$invoke$0(TransactionInterceptor.java:64)
           [exec]         at com.liferay.portal.spring.transaction.DefaultTransactionExecutor._execute(DefaultTransactionExecutor.java:128)
           [exec]         at com.liferay.portal.spring.transaction.DefaultTransactionExecutor.execute(DefaultTransactionExecutor.java:51)
           [exec]         at com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:62)
           [exec]         at com.liferay.portal.spring.aop.AopMethodInvocationImpl.proceed(AopMethodInvocationImpl.java:57)
           [exec]         at com.liferay.portal.spring.aop.AopInvocationHandler.invoke(AopInvocationHandler.java:49)
           [exec]         at com.sun.proxy.$Proxy213.restoreFileEntryFromTrash(Unknown Source)
           [exec]         at com.liferay.document.library.internal.trash.DLFileEntryTrashHandler.restoreTrashEntry(DLFileEntryTrashHandler.java:299)
           [exec]         at com.liferay.trash.test.util.BaseTrashHandlerTestCase.testTrashAndRestoreWithDraftStatusIsNotVisible(BaseTrashHandlerTestCase.java:930)
           [exec]         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
           [exec]         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
           [exec]         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
           [exec]         at java.lang.reflect.Method.invoke(Method.java:498)
           [exec]         at com.liferay.arquillian.extension.junit.bridge.server.TestExecutorRunnable$2.evaluate(TestExecutorRunnable.java:218)
           [exec]         at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
           [exec]         at com.liferay.portal.kernel.test.rule.AbstractTestRule$2.evaluate(AbstractTestRule.java:79)
           [exec]         at com.liferay.portal.kernel.test.rule.AbstractTestRule$2.evaluate(AbstractTestRule.java:79)
           [exec]         at com.liferay.portal.kernel.test.rule.AbstractTestRule$2.evaluate(AbstractTestRule.java:79)
           [exec]         at com.liferay.portal.kernel.test.rule.AbstractTestRule$2.evaluate(AbstractTestRule.java:79)
           [exec]         at com.liferay.portal.kernel.test.rule.AbstractTestRule$2.evaluate(AbstractTestRule.java:79)
           [exec]         at com.liferay.portal.kernel.test.rule.AbstractTestRule$2.evaluate(AbstractTestRule.java:79)
           [exec]         at com.liferay.portal.kernel.test.rule.TimeoutTestRule$1.evaluate(TimeoutTestRule.java:89)
           [exec]         at org.junit.rules.RunRules.evaluate(RunRules.java:20)
           [exec]         at com.liferay.arquillian.extension.junit.bridge.server.TestExecutorRunnable$1.evaluate(TestExecutorRunnable.java:143)
           [exec]         at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:57)
           [exec]         at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:57)
           [exec]         at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:57)
           [exec]         at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:57)
           [exec]         at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:57)
           [exec]         at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:57)
           [exec]         at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:57)
           [exec]         at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:57)
           [exec]         at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:57)
           [exec]         at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:57)
           [exec]         at org.junit.rules.RunRules.evaluate(RunRules.java:20)
           [exec]         at com.liferay.arquillian.extension.junit.bridge.server.TestExecutorRunnable._execute(TestExecutorRunnable.java:181)
           [exec]         at com.liferay.arquillian.extension.junit.bridge.server.TestExecutorRunnable.run(TestExecutorRunnable.java:95)
           [exec]         at java.lang.Thread.run(Thread.java:745)
           [exec] 
           [exec]         Caused by:
           [exec]         com.liferay.portal.kernel.dao.orm.ORMException: {"classNameId":"0","classPK":"0","companyId":"20102","createDate":1562932149821,"custom1ImageId":"0","custom2ImageId":"0","description":"","extension":"txt","extraSettings":"","fileEntryId":"55994","fileEntryTypeId":"0","fileName":"HA4shEkbXsLJDmR8OdwqMWUFO7BNW43OD5mMNfKxlI0ddyR0YY8NPugpF5A9H0WJF2Q7KdEBwFy6NdnTEpZ4pgOpDxTPPK3Wth4HcfQrsUUMsbKZd7WNLMrXahsZi1Mc5h3StfZCfwfHQEE8kJjeYLSQF2Xg2HpFayRsxNTpTUBnbewK0jpxeXdrLEXvIa67TQkZGidZff7SRU3oRy7FJwa2xaZk5kC6fV9uuSL3K0MUbXG6OX06YGcOhUJ.txt","folderId":"55990","groupId":"55987","largeImageId":"0","lastPublishDate":null,"manualCheckInRequired":false,"mimeType":"text\/plain","modifiedDate":1562932149911,"mvccVersion":"1","name":"289","readCount":0,"repositoryId":"55987","size":"8","smallImageId":"0","title":"HA4shEkbXsLJDmR8OdwqMWUFO7BNW43OD5mMNfKxlI0ddyR0YY8NPugpF5A9H0WJF2Q7KdEBwFy6NdnTEpZ4pgOpDxTPPK3Wth4HcfQrsUUMsbKZd7WNLMrXahsZi1Mc5h3StfZCfwfHQEE8kJjeYLSQF2Xg2HpFayRsxNTpTUBnbewK0jpxeXdrLEXvIa67TQkZGidZff7SRU3oRy7FJwa2xaZk5kC6fV9uuSL3K0MUbXG6OX06YGcOhUJ0u71","treePath":"\/55990\/","userId":"20131","userName":"Test Test","uuid":"940b9dd5-188e-9922-6bce-7ba2a6b7c287","version":"1.0"} is stale in comparison to {"classNameId":"0","classPK":"0","companyId":"20102","createDate":1562932149821,"custom1ImageId":"0","custom2ImageId":"0","description":"","extension":"txt","extraSettings":"","fileEntryId":"55994","fileEntryTypeId":"0","fileName":"HA4shEkbXsLJDmR8OdwqMWUFO7BNW43OD5mMNfKxlI0ddyR0YY8NPugpF5A9H0WJF2Q7KdEBwFy6NdnTEpZ4pgOpDxTPPK3Wth4HcfQrsUUMsbKZd7WNLMrXahsZi1Mc5h3StfZCfwfHQEE8kJjeYLSQF2Xg2HpFayRsxNTpTUBnbewK0jpxeXdrLEXvIa67TQkZGidZff7SRU3oRy7FJwa2xaZk5kC6fV9uuSL3K0MUbXG6OX06YGcOhUJ.txt","folderId":"55990","groupId":"55987","largeImageId":"0","lastPublishDate":null,"manualCheckInRequired":false,"mimeType":"text\/plain","modifiedDate":1562932149909,"mvccVersion":"2","name":"289","readCount":0,"repositoryId":"55987","size":"8","smallImageId":"0","title":"HA4shEkbXsLJDmR8OdwqMWUFO7BNW43OD5mMNfKxlI0ddyR0YY8NPugpF5A9H0WJF2Q7KdEBwFy6NdnTEpZ4pgOpDxTPPK3Wth4HcfQrsUUMsbKZd7WNLMrXahsZi1Mc5h3StfZCfwfHQEE8kJjeYLSQF2Xg2HpFayRsxNTpTUBnbewK0jpxeXdrLEXvIa67TQkZGidZff7SRU3oRy7FJwa2xaZk5kC6fV9uuSL3K0MUbXG6OX06YGcOhUJ0u71","treePath":"\/55990\/","userId":"20131","userName":"Test Test","uuid":"940b9dd5-188e-9922-6bce-7ba2a6b7c287","version":"1.0"}
           [exec]             at com.liferay.portal.dao.orm.hibernate.ExceptionTranslator.translate(ExceptionTranslator.java:67)
           [exec]             at com.liferay.portal.dao.orm.hibernate.SessionImpl.merge(SessionImpl.java:246)
           [exec]             at com.liferay.portlet.documentlibrary.service.persistence.impl.DLFileEntryPersistenceImpl.updateImpl(DLFileEntryPersistenceImpl.java:15045)
           [exec]             ... 98 more
           [exec] 
           [exec]             Caused by:
           [exec]             org.hibernate.StaleObjectStateException: Row was updated or deleted by another transaction (or unsaved-value mapping was incorrect): [com.liferay.portlet.documentlibrary.model.impl.DLFileEntryImpl#55994]
           [exec]                 at org.hibernate.event.def.DefaultMergeEventListener.entityIsDetached(DefaultMergeEventListener.java:485)
           [exec]                 at org.hibernate.event.def.DefaultMergeEventListener.onMerge(DefaultMergeEventListener.java:255)
           [exec]                 at org.hibernate.event.def.DefaultMergeEventListener.onMerge(DefaultMergeEventListener.java:84)
           [exec]                 at org.hibernate.impl.SessionImpl.fireMerge(SessionImpl.java:867)
           [exec]                 at org.hibernate.impl.SessionImpl.merge(SessionImpl.java:851)
           [exec]                 at org.hibernate.impl.SessionImpl.merge(SessionImpl.java:855)
           [exec]                 at com.liferay.portal.dao.orm.hibernate.SessionImpl.merge(SessionImpl.java:243)
           [exec]                 ... 99 more
      

      Attachments

        Issue Links

          Activity

            People

              joshua.chong Joshua Chong
              randolph.do Randolph Do (Inactive)
              Marta Elicegui Marta Elicegui
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                3 years, 7 weeks ago

                Packages

                  Version Package
                  7.2.10 DXP FP2
                  7.2.10.1 DXP SP1
                  7.2.1 CE GA2
                  7.2.X
                  7.3.10 DXP GA1
                  Master