Uploaded image for project: 'Derby'
  1. Derby
  2. DERBY-4141

XAExceptions thrown by Derby can have errorCode 0

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 10.1.3.1, 10.2.1.6, 10.3.3.0, 10.4.2.0, 10.5.1.1, 10.6.1.0
    • 10.3.3.1, 10.4.2.1, 10.5.1.1, 10.6.1.0
    • SQL
    • None
    • Patch Available

    Description

      When an XAException occurs during xa.start() or other XA operation, because of an SQLException, we have an errorCode of 0, regardless of the severity. I would suggest XAER_RMFAIL for SESSION_SEVERITY or greater and XAER_RMERR for lower severity exceptions. See thread http://www.nabble.com/XAException.errorCode-on-XAException-caused-by-an-SQLException-tt22832423.html for more detail and a reproduction.

      Attachments

        1. derby-4141_diff.txt
          8 kB
          Katherine Marsden
        2. derby-4141_embbeded_diff1.txt
          3 kB
          Katherine Marsden

        Activity

          People

            kmarsden Katherine Marsden
            kmarsden Katherine Marsden
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: