fix notification translation #2588
GitHub Actions / H2 Tests
failed
Dec 22, 2024 in 0s
8579 passed, 2 failed and 1 skipped
Annotations
github-actions / H2 Tests
de.tum.cit.aet.artemis.core.authentication.UserAccountLocalVcsIntegrationTest ► createAndDeleteUserVcsAccessTokenByUser()
Failed test found in:
build/test-results/test/TEST-de.tum.cit.aet.artemis.core.authentication.UserAccountLocalVcsIntegrationTest.xml
Error:
org.springframework.dao.DataIntegrityViolationException: could not execute batch [Referential integrity constraint violation: "FKF3AH8UAJS8WFDA872MVL56HQ4: PUBLIC.NOTIFICATION FOREIGN KEY(RECIPIENT_ID) REFERENCES PUBLIC.JHI_USER(ID) (CAST(32 AS BIGINT))"; SQL statement:
Raw output
org.springframework.dao.DataIntegrityViolationException: could not execute batch [Referential integrity constraint violation: "FKF3AH8UAJS8WFDA872MVL56HQ4: PUBLIC.NOTIFICATION FOREIGN KEY(RECIPIENT_ID) REFERENCES PUBLIC.JHI_USER(ID) (CAST(32 AS BIGINT))"; SQL statement:
delete from jhi_user where id=? [23503-224]] [delete from jhi_user where id=?]; SQL [delete from jhi_user where id=?]; constraint ["FKF3AH8UAJS8WFDA872MVL56HQ4: PUBLIC.NOTIFICATION FOREIGN KEY(RECIPIENT_ID) REFERENCES PUBLIC.JHI_USER(ID) (CAST(32 AS BIGINT))"; SQL statement:
delete from jhi_user where id=? [23503-224]]
at app//org.springframework.orm.jpa.vendor.HibernateJpaDialect.convertHibernateAccessException(HibernateJpaDialect.java:290)
at app//org.springframework.orm.jpa.vendor.HibernateJpaDialect.translateExceptionIfPossible(HibernateJpaDialect.java:241)
at app//org.springframework.orm.jpa.JpaTransactionManager.doCommit(JpaTransactionManager.java:566)
at app//org.springframework.transaction.support.AbstractPlatformTransactionManager.processCommit(AbstractPlatformTransactionManager.java:795)
at app//org.springframework.transaction.support.AbstractPlatformTransactionManager.commit(AbstractPlatformTransactionManager.java:758)
at app//org.springframework.transaction.interceptor.TransactionAspectSupport.commitTransactionAfterReturning(TransactionAspectSupport.java:698)
at app//org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:416)
at app//org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:119)
at app//org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:184)
at app//org.springframework.dao.support.PersistenceExceptionTranslationInterceptor.invoke(PersistenceExceptionTranslationInterceptor.java:138)
at app//org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:184)
at app//org.springframework.data.jpa.repository.support.CrudMethodMetadataPostProcessor$CrudMethodMetadataPopulatingMethodInterceptor.invoke(CrudMethodMetadataPostProcessor.java:165)
at app//org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:184)
at app//org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:223)
at app/jdk.proxy3/jdk.proxy3.$Proxy329.deleteAll(Unknown Source)
at app//de.tum.cit.aet.artemis.core.user.util.UserTestService.tearDown(UserTestService.java:159)
at app//de.tum.cit.aet.artemis.core.authentication.UserAccountLocalVcsIntegrationTest.teardown(UserAccountLocalVcsIntegrationTest.java:26)
at [email protected]/java.lang.reflect.Method.invoke(Method.java:580)
at [email protected]/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:387)
at [email protected]/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1312)
at [email protected]/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1843)
at [email protected]/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1808)
at [email protected]/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:188)
Caused by: org.hibernate.exception.ConstraintViolationException: could not execute batch [Referential integrity constraint violation: "FKF3AH8UAJS8WFDA872MVL56HQ4: PUBLIC.NOTIFICATION FOREIGN KEY(RECIPIENT_ID) REFERENCES PUBLIC.JHI_USER(ID) (CAST(32 AS BIGINT))"; SQL statement:
delete from jhi_user where id=? [23503-224]] [delete from jhi_user where id=?]
at app//org.hibernate.exception.internal.SQLStateConversionDelegate.convert(SQLStateConversionDelegate.java:97)
at app//org.hibernate.exception.internal.StandardSQLExceptionConverter.convert(StandardSQLExceptionConverter.java:58)
at app//org.hibernate.engine.jdbc.spi.SqlExceptionHelper.convert(SqlExceptionHelper.java:108)
at app//org.hibernate.engine.jdbc.batch.internal.BatchImpl.lambda$performExecution$2(BatchImpl.java:294)
at app//org.hibernate.engine.jdbc.mutation.internal.PreparedStatementGroupSingleTable.forEachStatement(PreparedStatementGroupSingleTable.java:59)
at app//org.hibernate.engine.jdbc.batch.internal.BatchImpl.performExecution(BatchImpl.java:264)
at app//org.hibernate.engine.jdbc.batch.internal.BatchImpl.execute(BatchImpl.java:242)
at app//org.hibernate.engine.jdbc.internal.JdbcCoordinatorImpl.executeBatch(JdbcCoordinatorImpl.java:188)
at app//org.hibernate.engine.spi.ActionQueue.executeActions(ActionQueue.java:662)
at app//org.hibernate.engine.spi.ActionQueue.executeActions(ActionQueue.java:499)
at app//org.hibernate.event.internal.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:377)
at app//org.hibernate.event.internal.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:41)
at app//org.hibernate.event.service.internal.EventListenerGroupImpl.fireEventOnEachListener(EventListenerGroupImpl.java:127)
at app//org.hibernate.internal.SessionImpl.doFlush(SessionImpl.java:1407)
at app//org.hibernate.internal.SessionImpl.managedFlush(SessionImpl.java:488)
at app//org.hibernate.internal.SessionImpl.flushBeforeTransactionCompletion(SessionImpl.java:2329)
at app//org.hibernate.internal.SessionImpl.beforeTransactionCompletion(SessionImpl.java:1986)
at app//org.hibernate.engine.jdbc.internal.JdbcCoordinatorImpl.beforeTransactionCompletion(JdbcCoordinatorImpl.java:439)
at app//org.hibernate.resource.transaction.backend.jdbc.internal.JdbcResourceLocalTransactionCoordinatorImpl.beforeCompletionCallback(JdbcResourceLocalTransactionCoordinatorImpl.java:169)
at app//org.hibernate.resource.transaction.backend.jdbc.internal.JdbcResourceLocalTransactionCoordinatorImpl$TransactionDriverControlImpl.commit(JdbcResourceLocalTransactionCoordinatorImpl.java:267)
at app//org.hibernate.engine.transaction.internal.TransactionImpl.commit(TransactionImpl.java:101)
at app//org.springframework.orm.jpa.JpaTransactionManager.doCommit(JpaTransactionManager.java:562)
... 20 more
Caused by: org.h2.jdbc.JdbcBatchUpdateException: Referential integrity constraint violation: "FKF3AH8UAJS8WFDA872MVL56HQ4: PUBLIC.NOTIFICATION FOREIGN KEY(RECIPIENT_ID) REFERENCES PUBLIC.JHI_USER(ID) (CAST(32 AS BIGINT))"; SQL statement:
delete from jhi_user where id=? [23503-224]
at app//org.h2.jdbc.JdbcPreparedStatement.executeBatch(JdbcPreparedStatement.java:1282)
at app//org.hibernate.engine.jdbc.batch.internal.BatchImpl.lambda$performExecution$2(BatchImpl.java:279)
... 38 more
github-actions / H2 Tests
de.tum.cit.aet.artemis.programming.icl.LocalVCSshIntegrationTest ► testConnectOverSshAndReceivePack()
Failed test found in:
build/test-results/test/TEST-de.tum.cit.aet.artemis.programming.icl.LocalVCSshIntegrationTest.xml
Error:
org.opentest4j.AssertionFailedError: [There are more server sessions activated than expected.]
Raw output
org.opentest4j.AssertionFailedError: [There are more server sessions activated than expected.]
expected: 2L
but was: 1L
at app//de.tum.cit.aet.artemis.programming.icl.LocalVCSshIntegrationTest.clientConnectToArtemisSshServer(LocalVCSshIntegrationTest.java:212)
at app//de.tum.cit.aet.artemis.programming.icl.LocalVCSshIntegrationTest.testConnectOverSshAndReceivePack(LocalVCSshIntegrationTest.java:145)
at [email protected]/java.lang.reflect.Method.invoke(Method.java:580)
at [email protected]/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:387)
at [email protected]/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1312)
at [email protected]/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1843)
at [email protected]/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1808)
at [email protected]/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:188)
Loading