Uploaded image for project: 'Application Server 3  4  5 and 6'
  1. Application Server 3 4 5 and 6
  2. JBAS-5963

ClientUserTransaction should log cause exceptions

    XMLWordPrintable

Details

    Description

      When org.jboss.tm.usertx.client.ClientUserTransaction encounters exceptions,
      it should at least log them at debug level, otherwise important cause exceptions
      and stacktraces are lost. So, code like this:

      catch (RemoteException e)

      { // destroy session gone bad. destroySession(); throw new SystemException(e.toString()); }

      catch (Exception e)

      { throw new SystemException(e.toString()); }

      Should become:

      catch (RemoteException e)

      { // destroy session gone bad. destroySession(); log.debug("Remote exception encountered while....", e); throw new SystemException(e.toString()); }

      catch (Exception e)

      { log.debug("Exception encountered while...", e); throw new SystemException(e.toString()); }

      Attachments

        Issue Links

          Activity

            People

              rh-ee-galder Galder ZamarreƱo
              rh-ee-galder Galder ZamarreƱo
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: