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

If a naughty afterCompletion sync throws an exception, log the exception call stack

    XMLWordPrintable

Details

    Description

      Currently, when this happens with AS, I see:

      2013-02-18 16:24:43,837|WARN |[com.arjuna.ats.jta]|(ThreadId: Transaction Reaper Worker 221)|ARJUNA016029: SynchronizationImple.afterCompletion - failed for org.jboss.as.jpa.transaction.TransactionUtil$SessionSynchronization@634ef5a7 with exception: java.lang.NullPointerException

      From a related email conversation:

      Here's our Logger code:
      @Message(id = 16029, value = "SynchronizationImple.afterCompletion - failed for

      Unknown macro: {0}

      with exception", format = MESSAGE_FORMAT)
      @LogMessage(level = WARN)
      public void warn_resources_arjunacore_SynchronizationImple(String arg0, @Cause() Throwable arg1);

      Here is where we call our logger:
      jtaLogger.i18NLogger.warn_resources_arjunacore_SynchronizationImple(_theSynch.toString(), e);

      Maybe the message should have the

      Unknown macro: {1}

      in it, i.e. it change it like so:
      "SynchronizationImple.afterCompletion - failed for

      with exception

      Unknown macro: {1}

      "

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 30 minutes
                30m
                Remaining:
                Remaining Estimate - 30 minutes
                30m
                Logged:
                Time Spent - Not Specified
                Not Specified