[jbossts-issues] [JBoss JIRA] (JBTM-2879) JTS before_completion in SynchronizationImple swallows and hides exceptions

David Lloyd (JIRA) issues at jboss.org
Tue Apr 4 09:59:00 EDT 2017


David Lloyd created JBTM-2879:
---------------------------------

             Summary: JTS before_completion in SynchronizationImple swallows and hides exceptions
                 Key: JBTM-2879
                 URL: https://issues.jboss.org/browse/JBTM-2879
             Project: JBoss Transaction Manager
          Issue Type: Bug
          Components: JTS
            Reporter: David Lloyd


In [SynchronizationImple|https://github.com/jbosstm/narayana/blob/781ace284d840805282e037e9c10c8de6f2de472/ArjunaJTS/jtax/classes/com/arjuna/ats/internal/jta/resources/jts/orbspecific/SynchronizationImple.java#L93], if the user's synchronization fails, the exception is swallowed and never logged.  Instead a descriptionless {{UNKNOWN}} is thrown.

The exception should at least be logged to aid in troubleshooting.

Later in the same file, {{after_completion}} is using {{e.printStackTrace()}} to log the stack, which is also less than ideal.





--
This message was sent by Atlassian JIRA
(v7.2.3#72005)


More information about the jbossts-issues mailing list