ObjectOptimisticLockingFailureException beim Speichern von Einträgen
Aus dem Logfile:
des_1 | 2023-12-30T03:12:29.308Z ERROR 1 --- [io-8080-exec-24] o.a.c.c.C.[.[.[/].[dispatcherServlet] : Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed: org.springframework.orm.ObjectOptimisticLockingFailureException: Row was updated or deleted by another transaction (or unsaved-value mapping was incorrect) : [net.genealogy.des.model.Entry#25074539]] with root cause
des_1 |
des_1 | org.hibernate.StaleObjectStateException: Row was updated or deleted by another transaction (or unsaved-value mapping was incorrect) : [net.genealogy.des.model.Entry#25074539]
des_1 | at org.hibernate.engine.jdbc.mutation.internal.ModelMutationHelper.identifiedResultsCheck(ModelMutationHelper.java:75)
[...]
des_1 | at jdk.proxy2/jdk.proxy2.$Proxy172.save(Unknown Source)
des_1 | at net.genealogy.des.service.EntryService.save(EntryService.java:178)
des_1 | at net.genealogy.des.controller.EntryController.update(EntryController.java:220)
[...]