Uploaded image for project: 'JBoss BPMS Platform'
  1. JBoss BPMS Platform
  2. RHBPMS-1666

"This session was previously disposed" when used Spring+JTA+PER_PROCESS_INSTANCE

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • None
    • 6.0.2
    • jBPM Core
    • None
    • ER1
    • +
    • Hide
      Fixed Issue Summary:

      An exception error would occur when using Spring, JTA, and PER_PROCESS_INSTANCE strategy in RuntimeManager:
      Java.lang.IllegalStateException: Illegal method call. This session was previously disposed.
      This issue has been resolved in 6.0.3 with the update of various classes in the persistence.xml file.
      Show
      Fixed Issue Summary: An exception error would occur when using Spring, JTA, and PER_PROCESS_INSTANCE strategy in RuntimeManager: Java.lang.IllegalStateException: Illegal method call. This session was previously disposed. This issue has been resolved in 6.0.3 with the update of various classes in the persistence.xml file.

      Description of problem:

      When used Spring+JTA+PER_PROCESS_INSTANCE, in RuntimeManager creation is throwed:

      java.lang.IllegalStateException: Illegal method call. This session was
      previously disposed.
      at
      org.drools.core.reteoo.DisposedReteooWorkingMemory.getProcessRuntime(DisposedReteooWorkingMemory.java:261)
      at
      org.drools.core.impl.StatefulKnowledgeSessionImpl.getProcessRuntime(StatefulKnowledgeSessionImpl.java:900)
      at
      org.drools.persistence.SingleSessionCommandService$SynchronizationImpl.afterCompletion(SingleSessionCommandService.java:457)
      at
      org.drools.persistence.TransactionSynchronizationContainer.afterCompletion(TransactionSynchronizationContainer.java:26)
      at
      org.kie.spring.persistence.SpringTransactionSynchronizationAdapter.afterCompletion(SpringTransactionSynchronizationAdapter.java:37)

      How reproducible:
      Always

      Steps to Reproduce:
      reproducer attached

      Actual results:
      java.lang.IllegalStateException

      Expected results:
      No exceptions

            swiderski.maciej Maciej Swiderski (Inactive)
            rhn-support-alazarot Alessandro Lazarotti
            Ivo Bek Ivo Bek
            Ivo Bek Ivo Bek
            Jeremy West, Marek Baluch
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: