Red Hat Bugzilla – Bug 839630
Exception is thrown when session with Spring Transaction Manager is being disposed
Last modified: 2013-10-07 18:50:31 EDT
Created attachment 597804 [details]
Description of problem:
Having several stateful knowledge sessions configured with JPA and Spring Transaction Manager. When these sessions are being disposed, following exception is thrown:
java.lang.IllegalStateException: EntityManager is closed
(see an attachment for the complete stacktrace)
Problem is connected with application-scoped entity manager, which is shared between sessions within the same thread. After the first session with original entity manager is disposed, the other sessions see that entity manager closed and are unable to complete the dispose command.
The reproducer will be added soon.
The promised reproducer:
fixed by this commit:
verified on 5.3.0.BRMS-P01