Uploaded image for project: 'JBoss Transaction Manager'
  1. JBoss Transaction Manager
  2. JBTM-1836

RecoveredTransactionReplayerUnitTest may raise a nullpointerexception

    Details

    • Type: Feature Request
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 5.0.0.M4
    • Component/s: Testing
    • Labels:
      None

      Description

      java.lang.NullPointerException
      at com.arjuna.ats.internal.jts.recovery.transactions.RecoveredTransactionReplayer.run(RecoveredTransactionReplayer.java:118)
      at com.hp.mwtests.ts.jts.recovery.RecoveredTransactionReplayerUnitTest.testCommitted(RecoveredTransactionReplayerUnitTest.java:71)

      Looking at the test it spawns a thread to call run(), then it expects that the thread hasn't finished launching before doing further setup. Then it triggers the logic that is expected in the thread anyway.

      I will not trigger the thread which should have the same test behavior but without the timing issue.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                tomjenkinson Thomas Jenkinson
                Reporter:
                tomjenkinson Thomas Jenkinson
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: