Hibernate 5 Exception
Budget: $8 – $15 USD
I have an exception (BackEnd server application with Spring + Hibernate and more dependencies)
I'm using VPN Connection I can give u access via AnyDesk or TeamViewer, the stacktrace for the error is:
FINEST|36160/0|Service Engage|23-08-02 21:14:48|Caused by: org.hibernate.StaleStateException: Batch update returned unexpected row count from update [0]; actual row count: 0; expected: 1; statement executed: /* create one-to-many row com.starmount.preserve.arts.v6_0_0.TransactionEntity.transactionAssociateEntities */ update public.tr_rtl_sl_ascte set id_trn=? where ai_mdfr_cmn=? and id_trn=?
FINEST|36160/0|Service Engage|23-08-02 21:14:48| at org.hibernate.jdbc.Expectations$BasicExpectation.checkBatched(Expectations.java:67)
FINEST|36160/0|Service Engage|23-08-02 21:14:48| at org.hibernate.jdbc.Expectations$BasicExpectation.verifyOutcome(Expectations.java:54)
FINEST|36160/0|Service Engage|23-08-02 21:14:48| at org.hibernate.engine.jdbc.batch.internal.NonBatchingBatch.addToBatch(NonBatchingBatch.java:47)
FINEST|36160/0|Service Engage|23-08-02 21:14:48| at org.hibernate.persister.collection.AbstractCollectionPersister.recreate(AbstractCollectionPersister.java:1352)
FINEST|36160/0|Service Engage|23-08-02 21:14:48| at org.hibernate.persister.collection.OneToManyPersister.recreate(OneToManyPersister.java:187)
FINEST|36160/0|Service Engage|23-08-02 21:14:48| at org.hibernate.action.internal.CollectionRecreateAction.execute(CollectionRecreateAction.java:50)
FINEST|36160/0|Service Engage|23-08-02 21:14:48| at org.hibernate.engine.spi.ActionQueue.executeActions(ActionQueue.java:604)
FINEST|36160/0|Service Engage|23-08-02 21:14:48| at org.hibernate.engine.spi.ActionQueue.lambda$executeActions$1(ActionQueue.java:478)
FINEST|36160/0|Service Engage|23-08-02 21:14:48| at java.util.LinkedHashMap.forEach(LinkedHashMap.java:684)
FINEST|36160/0|Service Engage|23-08-02 21:14:48| at org.hibernate.engine.spi.ActionQueue.executeActions(ActionQueue.java:475)
FINEST|36160/0|Service Engage|23-08-02 21:14:48| at org.hibernate.event.internal.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:344)
FINEST|36160/0|Service Engage|23-08-02 21:14:48| at org.hibernate.event.internal.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:40)
FINEST|36160/0|Service Engage|23-08-02 21:14:48| at org.hibernate.event.service.internal.EventListenerGroupImpl.fireEventOnEachListener(EventListenerGroupImpl.java:107)
FINEST|36160/0|Service Engage|23-08-02 21:14:48| at org.hibernate.internal.SessionImpl.doFlush(SessionImpl.java:1407)
FINEST|36160/0|Service Engage|23-08-02 21:14:48| at org.hibernate.internal.SessionImpl.managedFlush(SessionImpl.java:489)
FINEST|36160/0|Service Engage|23-08-02 21:14:48| at org.hibernate.internal.SessionImpl.flushBeforeTransactionCompletion(SessionImpl.java:3303)
FINEST|36160/0|Service Engage|23-08-02 21:14:48| at org.hibernate.internal.SessionImpl.beforeTransactionCompletion(SessionImpl.java:2438)
FINEST|36160/0|Service Engage|23-08-02 21:14:48| at org.hibernate.engine.jdbc.internal.JdbcCoordinatorImpl.beforeTransactionCompletion(JdbcCoordinatorImpl.java:449)
FINEST|36160/0|Service Engage|23-08-02 21:14:48| at org.hibernate.resource.transaction.backend.jdbc.internal.JdbcResourceLocalTransactionCoordinatorImpl.beforeCompletionCallback(JdbcResourceLocalTransactionCoordinatorImpl.java:183)
FINEST|36160/0|Service Engage|23-08-02 21:14:48| at org.hibernate.resource.transaction.backend.jdbc.internal.JdbcResourceLocalTransactionCoordinatorImpl.access$300(JdbcResourceLocalTransactionCoordinatorImpl.java:40)
FINEST|36160/0|Service Engage|23-08-02 21:14:48| at org.hibernate.resource.transaction.backend.jdbc.internal.JdbcResourceLocalTransactionCoordinatorImpl$TransactionDriverControlImpl.commit(JdbcResourceLocalTransactionCoordinatorImpl.java:281)
FINEST|36160/0|Service Engage|23-08-02 21:14:48| at org.hibernate.engine.transaction.internal.TransactionImpl.commit(TransactionImpl.java:101)
FINEST|36160/0|Service Engage|23-08-02 21:14:48| at org.springframework.orm.hibernate5.HibernateTransactionManager.doCommit(HibernateTransactionManager.java:643)
FINEST|36160/0|Service Engage|23-08-02 21:14:48| ... 89 more
FINEST|36160/0|Service Engage|23-08-02 21:14:48|WARN 2023-08-02 21:14:48,415: Resolved [org.springframework.orm.hibernate5.HibernateOptimisticLockingFailureException: Batch update returned unexpected row count from update [0]; actual row count: 0; expected: 1; statement executed: /* create one-to-many row com.starmount.preserve.arts.v6_0_0.TransactionEntity.transactionAssociateEntities */ update public.tr_rtl_sl_ascte set id_trn=? where ai_mdfr_cmn=? and id_trn=?; nested exception is org.hibernate.StaleStateException: Batch update returned unexpected row count from update [0]; actual row count: 0; expected: 1; statement executed: /* create one-to-many row com.starmount.preserve.arts.v6_0_0.TransactionEntity.transactionAssociateEntities */ update public.tr_rtl_sl_ascte set id_trn=? where ai_mdfr_cmn=? and id_trn=?]
FINEST|36160/0|Service Engage|23-08-02 21:14:48|DEBUG 2023-08-02 21:14:48,415: Completed 500 INTERNAL_SERVER_ERROR
I'm using VPN Connection I can give u access via AnyDesk or TeamViewer, the stacktrace for the error is:
FINEST|36160/0|Service Engage|23-08-02 21:14:48|Caused by: org.hibernate.StaleStateException: Batch update returned unexpected row count from update [0]; actual row count: 0; expected: 1; statement executed: /* create one-to-many row com.starmount.preserve.arts.v6_0_0.TransactionEntity.transactionAssociateEntities */ update public.tr_rtl_sl_ascte set id_trn=? where ai_mdfr_cmn=? and id_trn=?
FINEST|36160/0|Service Engage|23-08-02 21:14:48| at org.hibernate.jdbc.Expectations$BasicExpectation.checkBatched(Expectations.java:67)
FINEST|36160/0|Service Engage|23-08-02 21:14:48| at org.hibernate.jdbc.Expectations$BasicExpectation.verifyOutcome(Expectations.java:54)
FINEST|36160/0|Service Engage|23-08-02 21:14:48| at org.hibernate.engine.jdbc.batch.internal.NonBatchingBatch.addToBatch(NonBatchingBatch.java:47)
FINEST|36160/0|Service Engage|23-08-02 21:14:48| at org.hibernate.persister.collection.AbstractCollectionPersister.recreate(AbstractCollectionPersister.java:1352)
FINEST|36160/0|Service Engage|23-08-02 21:14:48| at org.hibernate.persister.collection.OneToManyPersister.recreate(OneToManyPersister.java:187)
FINEST|36160/0|Service Engage|23-08-02 21:14:48| at org.hibernate.action.internal.CollectionRecreateAction.execute(CollectionRecreateAction.java:50)
FINEST|36160/0|Service Engage|23-08-02 21:14:48| at org.hibernate.engine.spi.ActionQueue.executeActions(ActionQueue.java:604)
FINEST|36160/0|Service Engage|23-08-02 21:14:48| at org.hibernate.engine.spi.ActionQueue.lambda$executeActions$1(ActionQueue.java:478)
FINEST|36160/0|Service Engage|23-08-02 21:14:48| at java.util.LinkedHashMap.forEach(LinkedHashMap.java:684)
FINEST|36160/0|Service Engage|23-08-02 21:14:48| at org.hibernate.engine.spi.ActionQueue.executeActions(ActionQueue.java:475)
FINEST|36160/0|Service Engage|23-08-02 21:14:48| at org.hibernate.event.internal.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:344)
FINEST|36160/0|Service Engage|23-08-02 21:14:48| at org.hibernate.event.internal.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:40)
FINEST|36160/0|Service Engage|23-08-02 21:14:48| at org.hibernate.event.service.internal.EventListenerGroupImpl.fireEventOnEachListener(EventListenerGroupImpl.java:107)
FINEST|36160/0|Service Engage|23-08-02 21:14:48| at org.hibernate.internal.SessionImpl.doFlush(SessionImpl.java:1407)
FINEST|36160/0|Service Engage|23-08-02 21:14:48| at org.hibernate.internal.SessionImpl.managedFlush(SessionImpl.java:489)
FINEST|36160/0|Service Engage|23-08-02 21:14:48| at org.hibernate.internal.SessionImpl.flushBeforeTransactionCompletion(SessionImpl.java:3303)
FINEST|36160/0|Service Engage|23-08-02 21:14:48| at org.hibernate.internal.SessionImpl.beforeTransactionCompletion(SessionImpl.java:2438)
FINEST|36160/0|Service Engage|23-08-02 21:14:48| at org.hibernate.engine.jdbc.internal.JdbcCoordinatorImpl.beforeTransactionCompletion(JdbcCoordinatorImpl.java:449)
FINEST|36160/0|Service Engage|23-08-02 21:14:48| at org.hibernate.resource.transaction.backend.jdbc.internal.JdbcResourceLocalTransactionCoordinatorImpl.beforeCompletionCallback(JdbcResourceLocalTransactionCoordinatorImpl.java:183)
FINEST|36160/0|Service Engage|23-08-02 21:14:48| at org.hibernate.resource.transaction.backend.jdbc.internal.JdbcResourceLocalTransactionCoordinatorImpl.access$300(JdbcResourceLocalTransactionCoordinatorImpl.java:40)
FINEST|36160/0|Service Engage|23-08-02 21:14:48| at org.hibernate.resource.transaction.backend.jdbc.internal.JdbcResourceLocalTransactionCoordinatorImpl$TransactionDriverControlImpl.commit(JdbcResourceLocalTransactionCoordinatorImpl.java:281)
FINEST|36160/0|Service Engage|23-08-02 21:14:48| at org.hibernate.engine.transaction.internal.TransactionImpl.commit(TransactionImpl.java:101)
FINEST|36160/0|Service Engage|23-08-02 21:14:48| at org.springframework.orm.hibernate5.HibernateTransactionManager.doCommit(HibernateTransactionManager.java:643)
FINEST|36160/0|Service Engage|23-08-02 21:14:48| ... 89 more
FINEST|36160/0|Service Engage|23-08-02 21:14:48|WARN 2023-08-02 21:14:48,415: Resolved [org.springframework.orm.hibernate5.HibernateOptimisticLockingFailureException: Batch update returned unexpected row count from update [0]; actual row count: 0; expected: 1; statement executed: /* create one-to-many row com.starmount.preserve.arts.v6_0_0.TransactionEntity.transactionAssociateEntities */ update public.tr_rtl_sl_ascte set id_trn=? where ai_mdfr_cmn=? and id_trn=?; nested exception is org.hibernate.StaleStateException: Batch update returned unexpected row count from update [0]; actual row count: 0; expected: 1; statement executed: /* create one-to-many row com.starmount.preserve.arts.v6_0_0.TransactionEntity.transactionAssociateEntities */ update public.tr_rtl_sl_ascte set id_trn=? where ai_mdfr_cmn=? and id_trn=?]
FINEST|36160/0|Service Engage|23-08-02 21:14:48|DEBUG 2023-08-02 21:14:48,415: Completed 500 INTERNAL_SERVER_ERROR