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

DataIntegrityViolationException at PortletPreferencesLocalServiceConcurrentTest

    Description

    https://testray.liferay.com/home/-/testray/case_results/796505611

         [exec] com.liferay.portlet.preferences.test.PortletPreferencesLocalServiceConcurrentTest > testAddPortletPreferencesConcurrently FAILED
         [exec]     java.util.concurrent.ExecutionException: org.springframework.dao.DataIntegrityViolationException: Could not execute JDBC batch update; SQL [insert into PortletPreferences (mvccVersion, companyId, ownerId, ownerType, plid, portletId, preferences, portletPreferencesId) values (?, ?, ?, ?, ?, ?, ?, ?)]; constraint [null]; nested exception is org.hibernate.exception.ConstraintViolationException: Could not execute JDBC batch update
         [exec]     	at java.util.concurrent.FutureTask.report(FutureTask.java:122)
         [exec]     	at java.util.concurrent.FutureTask.get(FutureTask.java:192)
         [exec]     	at com.liferay.portlet.preferences.test.PortletPreferencesLocalServiceConcurrentTest.testAddPortletPreferencesConcurrently(PortletPreferencesLocalServiceConcurrentTest.java:215)
         [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: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 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]     Caused by: org.springframework.dao.DataIntegrityViolationException: Could not execute JDBC batch update; SQL [insert into PortletPreferences (mvccVersion, companyId, ownerId, ownerType, plid, portletId, preferences, portletPreferencesId) values (?, ?, ?, ?, ?, ?, ?, ?)]; constraint [null]; nested exception is org.hibernate.exception.ConstraintViolationException: Could not execute JDBC batch update
         [exec]     	at org.springframework.orm.hibernate3.SessionFactoryUtils.convertHibernateAccessException(SessionFactoryUtils.java:660)
         [exec]     	at org.springframework.orm.hibernate3.HibernateTransactionManager.convertHibernateAccessException(HibernateTransactionManager.java:800)
         [exec]     	at org.springframework.orm.hibernate3.HibernateTransactionManager.doCommit(HibernateTransactionManager.java:671)
         [exec]     	at org.springframework.transaction.support.AbstractPlatformTransactionManager.processCommit(AbstractPlatformTransactionManager.java:765)
         [exec]     	at org.springframework.transaction.support.AbstractPlatformTransactionManager.commit(AbstractPlatformTransactionManager.java:734)
         [exec]     	at com.liferay.portal.spring.transaction.DefaultTransactionExecutor.commit(DefaultTransactionExecutor.java:41)
         [exec]     	at com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:77)
         [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.$Proxy26.addPortletPreferences(Unknown Source)
         [exec]     	at com.liferay.portal.service.impl.PortletPreferencesLocalServiceImpl.getPreferences(PortletPreferencesLocalServiceImpl.java:455)
         [exec]     	at com.liferay.portal.service.impl.PortletPreferencesLocalServiceImpl.getPreferences(PortletPreferencesLocalServiceImpl.java:426)
         [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.invoke(TransactionInterceptor.java:69)
         [exec]     	at com.liferay.portal.spring.aop.AopMethodInvocationImpl.proceed(AopMethodInvocationImpl.java:57)
         [exec]     	at com.liferay.portal.spring.aop.RetryAdvice.invoke(RetryAdvice.java:99)
         [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.$Proxy26.getPreferences(Unknown Source)
         [exec]     	at com.liferay.portlet.preferences.test.PortletPreferencesLocalServiceConcurrentTest.lambda$testAddPortletPreferencesConcurrently$1(PortletPreferencesLocalServiceConcurrentTest.java:189)
         [exec]     	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
         [exec]     	... 1 more
         [exec]     Caused by: org.hibernate.exception.ConstraintViolationException: Could not execute JDBC batch update
         [exec]     	at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:96)
         [exec]     	at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:66)
         [exec]     	at org.hibernate.jdbc.AbstractBatcher.executeBatch(AbstractBatcher.java:275)
         [exec]     	at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:268)
         [exec]     	at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:184)
         [exec]     	at org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:321)
         [exec]     	at com.liferay.portal.dao.orm.hibernate.event.NestableFlushEventListener.onFlush(NestableFlushEventListener.java:61)
         [exec]     	at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:1216)
         [exec]     	at org.hibernate.impl.SessionImpl.managedFlush(SessionImpl.java:383)
         [exec]     	at org.hibernate.transaction.JDBCTransaction.commit(JDBCTransaction.java:133)
         [exec]     	at org.springframework.orm.hibernate3.HibernateTransactionManager.doCommit(HibernateTransactionManager.java:663)
         [exec]     	... 23 more
         [exec]     Caused by: java.sql.BatchUpdateException: integrity constraint violation: unique constraint or index violation: IX_C7057FF7
         [exec]     	at org.hsqldb.jdbc.JDBCPreparedStatement.executeBatch(JDBCPreparedStatement.java:1937)
         [exec]     	at com.zaxxer.hikari.pool.ProxyStatement.executeBatch(ProxyStatement.java:125)
         [exec]     	at com.zaxxer.hikari.pool.HikariProxyPreparedStatement.executeBatch(HikariProxyPreparedStatement.java)
         [exec]     	at org.hibernate.jdbc.BatchingBatcher.doExecuteBatch(BatchingBatcher.java:70)
         [exec]     	at org.hibernate.jdbc.AbstractBatcher.executeBatch(AbstractBatcher.java:268)
         [exec]     	... 31 more

    Full Log: https://testray.liferay.com/reports/production/logs/test-1-1/1569384318948/test-portal-acceptance-upstream(7.2.x-private)/373/modules-integration-hypersonic20-jdk8/34/jenkins-console.txt.gz

      Attachments

        Issue Links

          Activity

            People

            • Assignee:
              tai.nguyen1 Tai Nguyen
              Reporter:
              tai.nguyen1 Tai Nguyen
              Participants of an Issue:
              Recent user:
              Jason Pince
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                7 weeks ago

                Packages

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