TransactionRequiredException: No EntityManager with actual transaction available for current thread - cannot reliably process 'merge' call #22

Closed
opened 2024-11-22 13:26:39 +01:00 by ansv7779 · 0 comments
Owner
2024-11-22 12:30:36 [INFO] AbstractWorker: Worker StatusPollingWorker threw an exception
2024-11-22 12:30:36 [ERROR] AbstractWorker: Worker failed
jakarta.persistence.TransactionRequiredException: No EntityManager with actual transaction available for current thread - cannot reliably process 'merge' call
        at org.springframework.orm.jpa.SharedEntityManagerCreator$SharedEntityManagerInvocationHandler.invoke(SharedEntityManagerCreator.java:303) ~[spring-orm-6.1.6.jar:6.1.6]
        at jdk.proxy2/jdk.proxy2.$Proxy184.merge(Unknown Source) ~[?:?]
        at se.su.dsv.scipro.plagiarism.urkund.UrkundSubmissionRepositoryImpl.save(UrkundSubmissionRepositoryImpl.java:33) ~[core-0.1-SNAPSHOT.jar:?]
        at se.su.dsv.scipro.plagiarism.urkund.StatusPollingWorker.doWork(StatusPollingWorker.java:67) ~[core-0.1-SNAPSHOT.jar:?]
        at se.su.dsv.scipro.workerthreads.AbstractWorker.run(AbstractWorker.java:63) ~[core-0.1-SNAPSHOT.jar:?]
        at se.su.dsv.scipro.workerthreads.Task.execute(Task.java:19) ~[core-0.1-SNAPSHOT.jar:?]
        at se.su.dsv.scipro.workerthreads.SchedulerImpl.lambda$tracked$0(SchedulerImpl.java:63) ~[classes/:?]
        at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539) [?:?]
        at java.base/java.util.concurrent.FutureTask.runAndReset(FutureTask.java:305) [?:?]
        at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:305) [?:?]
        at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) [?:?]
        at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) [?:?]
        at java.base/java.lang.Thread.run(Thread.java:840) [?:?]
``` 2024-11-22 12:30:36 [INFO] AbstractWorker: Worker StatusPollingWorker threw an exception 2024-11-22 12:30:36 [ERROR] AbstractWorker: Worker failed jakarta.persistence.TransactionRequiredException: No EntityManager with actual transaction available for current thread - cannot reliably process 'merge' call at org.springframework.orm.jpa.SharedEntityManagerCreator$SharedEntityManagerInvocationHandler.invoke(SharedEntityManagerCreator.java:303) ~[spring-orm-6.1.6.jar:6.1.6] at jdk.proxy2/jdk.proxy2.$Proxy184.merge(Unknown Source) ~[?:?] at se.su.dsv.scipro.plagiarism.urkund.UrkundSubmissionRepositoryImpl.save(UrkundSubmissionRepositoryImpl.java:33) ~[core-0.1-SNAPSHOT.jar:?] at se.su.dsv.scipro.plagiarism.urkund.StatusPollingWorker.doWork(StatusPollingWorker.java:67) ~[core-0.1-SNAPSHOT.jar:?] at se.su.dsv.scipro.workerthreads.AbstractWorker.run(AbstractWorker.java:63) ~[core-0.1-SNAPSHOT.jar:?] at se.su.dsv.scipro.workerthreads.Task.execute(Task.java:19) ~[core-0.1-SNAPSHOT.jar:?] at se.su.dsv.scipro.workerthreads.SchedulerImpl.lambda$tracked$0(SchedulerImpl.java:63) ~[classes/:?] at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539) [?:?] at java.base/java.util.concurrent.FutureTask.runAndReset(FutureTask.java:305) [?:?] at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:305) [?:?] at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) [?:?] at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) [?:?] at java.base/java.lang.Thread.run(Thread.java:840) [?:?] ```
ansv7779 added this to the SciPro project 2024-11-25 14:14:45 +01:00
niat8586 moved this to Done in SciPro on 2025-01-23 11:57:11 +01:00
Sign in to join this conversation.
No Milestone
No project SciPro
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: DMC/scipro#22
No description provided.