Uploaded image for project: 'ModeShape'
  1. ModeShape
  2. MODE-2493

ModeShape managed transactions can cause NPEs if they're rolled back after a failed commit

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Blocker Blocker
    • 3.8.x-prod-ip6.2, 4.4.0.Final
    • 3.8.x-prod-ip6.1, 4.3.0.Final
    • None
    • None

      ModeShape attempts to roll-back transactions whenever an unexpected exception is caught during a session save or during one of the operations executed at repository startup.

      When using ModeShape managed transactions, if such a transaction throws an exception during tx.commit, depending on the case (see linked issue for an example) some other party (most notably AS or ISPN) can rollback the transaction in response.

      If that is the case, ModeShape should not attempt to rollback the transaction again (which will fail) because this will hide the original cause of the failure. In such cases, ModeShape should make sure the original exception (which triggered the rollback in the first place) is sent back to the caller.

              hchiorean Horia Chiorean (Inactive)
              hchiorean Horia Chiorean (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: