Uploaded image for project: 'OpenJPA'
  1. OpenJPA
  2. OPENJPA-102

JTA transaction rollback, nonexistant instances, transactional persistence context => failures during afterCompletion() and close()

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.9.7
    • jpa, kernel
    • None
    • WebLogic Server 10.0

    Description

      Configuration:

      • transactional persistence context
      • DetachState=fgs
      • JTA transactions

      If an error causes the transaction manager to roll back the current transaction, BrokerImpl.afterCompletion() will be invoked with Status.STATUS_ROLLEDBACK. afterCompletion() will call BrokerImpl.free(), which will attempt to load the default fetch group. If there is an instance in the Broker's context that does not exist (that was looked up via EntityManager.getReference(), for example), then the code in free() will fail with an ObjectNotFoundException.

      Attachments

        1. openjpa-detach.patch
          2 kB
          Patrick Linskey

        Activity

          People

            Unassigned Unassigned
            pcl Patrick Linskey
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: