Red Hat Bugzilla – Bug 847231
"Could not commit session or rollback" exception is thrown when session with Spring Transaction Manager is being disposed
Last modified: 2013-10-10 20:19:42 EDT
Created attachment 603445 [details]
Having several stateful knowledge sessions configured with JPA and Spring Transaction Manager. When these sessions are being disposed, the exception (see an attachment with the stacktrace) it thrown. This issue is probably connected with https://bugzilla.redhat.com/show_bug.cgi?id=839630, as these exceptions take turns.
Steps to reproduce:
this reproducer (originally for bz846981) should be usable https://github.com/droolsjbpm/droolsjbpm-integration/pull/33
see the method dispose(), the order of the sessions being disposed is important, if no exception is thrown in this method, try to reverse the order of sessions.
Setting the status to "MODIFIED" as Kris has provided a fix:
verified on 5.3.0.BRMS-P01