Uploaded image for project: 'Causeway'
  1. Causeway
  2. CAUSEWAY-1414

nextTransaction can cause null pointers with the new MetricsService.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.12.1
    • 1.13.0
    • Core
    • None

    Description

      The reason is that request-scoped services are implemented as transaction services. Most of the time the scope of a request and the scope of a transacion are one and the same: there is just one transaction per scope. However, TransactionService#nextTransaction admits for there being multiple transactions per request.

      This bug is that the current implementation for RequestScoped does the init/close as part of the Transaction management. Instead, this should be part of the PersistenceSession#open/close (a PersistenceSession wraps a JDO session, so basically corresponds to the request).

      Attachments

        Activity

          People

            danhaywood Daniel Keir Haywood
            danhaywood Daniel Keir Haywood
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: