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

ObjectNotFoundException in LockLocalServiceTest

    Details

      Description

       

           [exec] com.liferay.portal.lock.service.test.LockLocalServiceTest > testMutualExcludeLockingParallel FAILED
           [exec]     java.util.concurrent.ExecutionException: com.liferay.portal.kernel.dao.orm.ObjectNotFoundException: org.hibernate.ObjectNotFoundException: No row with the given identifier exists: [com.liferay.portal.lock.model.impl.LockImpl#40658]
           [exec]     	at java.base/java.util.concurrent.FutureTask.report(FutureTask.java:122)
           [exec]     	at java.base/java.util.concurrent.FutureTask.get(FutureTask.java:191)
           [exec]     	at com.liferay.portal.lock.service.test.LockLocalServiceTest.testMutualExcludeLockingParallel(LockLocalServiceTest.java:356)
           [exec]     	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
           [exec]     	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
           [exec]     	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
           [exec]     	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
           [exec]     	at com.liferay.arquillian.extension.junit.bridge.server.TestExecutorRunnable$2.evaluate(TestExecutorRunnable.java:234)
           [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:99)
           [exec]     	at com.liferay.portal.kernel.test.rule.AbstractTestRule$2.evaluate(AbstractTestRule.java:99)
           [exec]     	at com.liferay.portal.kernel.test.rule.AbstractTestRule$2.evaluate(AbstractTestRule.java:99)
           [exec]     	at com.liferay.portal.kernel.test.rule.AbstractTestRule$2.evaluate(AbstractTestRule.java:99)
           [exec]     	at com.liferay.portal.kernel.test.rule.AbstractTestRule$2.evaluate(AbstractTestRule.java:99)
           [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:59)
           [exec]     	at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:59)
           [exec]     	at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:59)
           [exec]     	at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:59)
           [exec]     	at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:59)
           [exec]     	at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:59)
           [exec]     	at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:59)
           [exec]     	at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:59)
           [exec]     	at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:59)
           [exec]     	at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:59)
           [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.base/java.lang.Thread.run(Thread.java:834)
           [exec]     Caused by: com.liferay.portal.kernel.dao.orm.ObjectNotFoundException: org.hibernate.ObjectNotFoundException: No row with the given identifier exists: [com.liferay.portal.lock.model.impl.LockImpl#40658]
           [exec]     	at com.liferay.portal.dao.orm.hibernate.ExceptionTranslator.translate(ExceptionTranslator.java:36)
           [exec]     	at com.liferay.portal.dao.orm.hibernate.SessionImpl.load(SessionImpl.java:234)
           [exec]     	at com.liferay.portal.cache.internal.dao.orm.EntityCacheImpl.loadResult(EntityCacheImpl.java:241)
           [exec]     	at com.liferay.portal.cache.internal.dao.orm.FinderCacheImpl._primaryKeyToResult(FinderCacheImpl.java:382)
           [exec]     	at com.liferay.portal.cache.internal.dao.orm.FinderCacheImpl.getResult(FinderCacheImpl.java:144)
           [exec]     	at com.liferay.portal.lock.service.persistence.impl.LockPersistenceImpl.fetchByC_K(LockPersistenceImpl.java:2369)
           [exec]     	at com.liferay.portal.lock.service.persistence.impl.LockPersistenceImpl.fetchByC_K(LockPersistenceImpl.java:2351)
           [exec]     	at com.liferay.portal.lock.service.impl.LockLocalServiceImpl$1.call(LockLocalServiceImpl.java:279)
           [exec]     	at com.liferay.portal.lock.service.impl.LockLocalServiceImpl$1.call(LockLocalServiceImpl.java:275)
           [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.TransactionInvokerImpl.invoke(TransactionInvokerImpl.java:39)
           [exec]     	at com.liferay.portal.kernel.transaction.TransactionInvokerUtil.invoke(TransactionInvokerUtil.java:28)
           [exec]     	at com.liferay.portal.lock.service.impl.LockLocalServiceImpl.lock(LockLocalServiceImpl.java:273)
           [exec]     	at com.liferay.portal.lock.service.impl.LockLocalServiceImpl.lock(LockLocalServiceImpl.java:262)
           [exec]     	at jdk.internal.reflect.GeneratedMethodAccessor232.invoke(Unknown Source)
           [exec]     	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
           [exec]     	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
           [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.$Proxy800.lock(Unknown Source)
           [exec]     	at com.liferay.portal.lock.service.LockLocalServiceUtil.lock(LockLocalServiceUtil.java:371)
           [exec]     	at com.liferay.portal.lock.service.test.LockLocalServiceTest$LockingJob.call(LockLocalServiceTest.java:399)
           [exec]     	at com.liferay.portal.lock.service.test.LockLocalServiceTest$LockingJob.call(LockLocalServiceTest.java:391)
           [exec]     	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
           [exec]     	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
           [exec]     	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
           [exec]     	... 1 more
           [exec]     Caused by: org.hibernate.ObjectNotFoundException: No row with the given identifier exists: [com.liferay.portal.lock.model.impl.LockImpl#40658]
           [exec]     	at org.hibernate.impl.SessionFactoryImpl$2.handleEntityNotFound(SessionFactoryImpl.java:435)
           [exec]     	at org.hibernate.event.def.DefaultLoadEventListener.load(DefaultLoadEventListener.java:233)
           [exec]     	at org.hibernate.event.def.DefaultLoadEventListener.proxyOrLoad(DefaultLoadEventListener.java:269)
           [exec]     	at org.hibernate.event.def.DefaultLoadEventListener.onLoad(DefaultLoadEventListener.java:152)
           [exec]     	at org.hibernate.impl.SessionImpl.fireLoad(SessionImpl.java:1090)
           [exec]     	at org.hibernate.impl.SessionImpl.load(SessionImpl.java:985)
           [exec]     	at org.hibernate.impl.SessionImpl.load(SessionImpl.java:978)
           [exec]     	at com.liferay.portal.dao.orm.hibernate.SessionImpl.load(SessionImpl.java:231)
           [exec]     	... 31 more

       

        Attachments

          Activity

            People

            Assignee:
            joshua.itagaki Joshua Itagaki
            Reporter:
            joshua.itagaki Joshua Itagaki
            Participants of an Issue:
            Recent user:
            Jason Pince
            Engineering Assignee:
            Hai Yu
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              1 year, 8 weeks, 1 day ago

                Packages

                Version Package
                7.0.0 DXP FP86
                7.0.X
                7.1.10 DXP FP14
                7.1.X
                7.2.10 DXP FP2
                7.2.10.1 DXP SP1
                7.2.X
                7.2.1 CE GA2
                7.3.10 DXP GA1
                Master