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

RecoveredTransactionReplayerUnitTest may raise a nullpointerexception

    XMLWordPrintable

Details

    • Feature Request
    • Resolution: Done
    • Major
    • 5.0.0.M4
    • None
    • Testing
    • 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.

      Attachments

        Activity

          People

            thjenkin@redhat.com Tom Jenkinson
            thjenkin@redhat.com Tom Jenkinson
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: