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

BASubordinateCrashDuringComplete.txt byteman script causes a NPE exception to be thrown

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 4.17.0
    • Component/s: Testing, XTS
    • Labels:
      None

      Description

      Comment by Amos, which was correct:

      For tracing SubordinateCoordinatorCompletionParticipantStub compensate throw exceptions,
      there are 3 rules in BASubordinateCrashDuringComplete script.

      RULE trace subordinate participant stub compensate with no coordinator
      CLASS com.arjuna.wst11.stub.SubordinateCoordinatorCompletionParticipantStub
      METHOD compensate
      AT THROW 3
      ...

      RULE trace subordinate participant stub compensate with unactivated coordinator
      CLASS com.arjuna.wst11.stub.SubordinateCoordinatorCompletionParticipantStub
      METHOD compensate
      AT THROW 4
      ...

      RULE trace subordinate participant stub compensate with system exception from coordinator
      CLASS com.arjuna.wst11.stub.SubordinateCoordinatorCompletionParticipantStub
      METHOD compensate
      AT THROW 5
      ...

      for SubordinateCoordinatorCompletionParticipantStub.java
      public void compensate() throws FaultedException, WrongStateException, SystemException

      Unknown macro: {...}

      I read from byteman document which has the following describes about AT THROW:
      An AT THROW specifier identifies a throw operation within the trigger method as the trigger point. The throw operation may be qualified by a, possibly package-qualified, typename identifying the lexical type of the thrown exception. If a count N is supplied then the location specifies the Nth textual occurrence of a throw. If the keyword ALL is specified in place of a count then the rule will be triggered at all matching occurrences of a throw.

      I'm not sure about the textual occurrence of a throw. For this compensate method,
      AT THROW 3 => FaultedException
      AT THROW 4 => WrongStateException
      AT THROW 5 => SystemException

      is it right ? but the last throw rule causes NPE when the first booting jboss to run the test.
      I try to changes every AT THROW rule reducing one occurrence, and the test works fine.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                paul.robinson Paul Robinson
                Reporter:
                paul.robinson Paul Robinson
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: