[jboss-cvs] JBossAS SVN: r79015 - trunk/server/src/main/org/jboss/tm/usertx/client.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Thu Oct 2 05:59:59 EDT 2008
Author: galder.zamarreno at jboss.com
Date: 2008-10-02 05:59:59 -0400 (Thu, 02 Oct 2008)
New Revision: 79015
Modified:
trunk/server/src/main/org/jboss/tm/usertx/client/ClientUserTransaction.java
Log:
[JBAS-5963] Add trace logging for cause exceptions when these are not propagated back. This helps debugging.
Modified: trunk/server/src/main/org/jboss/tm/usertx/client/ClientUserTransaction.java
===================================================================
--- trunk/server/src/main/org/jboss/tm/usertx/client/ClientUserTransaction.java 2008-10-02 09:31:54 UTC (rev 79014)
+++ trunk/server/src/main/org/jboss/tm/usertx/client/ClientUserTransaction.java 2008-10-02 09:59:59 UTC (rev 79015)
@@ -127,10 +127,12 @@
{
// destroy session gone bad.
destroySession();
+ logCauseException(e);
throw new SystemException(e.toString());
}
catch (Exception e)
{
+ logCauseException(e);
throw new SystemException(e.toString());
}
}
@@ -179,10 +181,12 @@
{
// destroy session gone bad.
destroySession();
+ logCauseException(e);
throw new SystemException(e.toString());
}
catch (Exception e)
{
+ logCauseException(e);
throw new SystemException(e.toString());
}
}
@@ -215,10 +219,12 @@
{
// destroy session gone bad.
destroySession();
+ logCauseException(e);
throw new SystemException(e.toString());
}
catch (Exception e)
{
+ logCauseException(e);
throw new SystemException(e.toString());
}
}
@@ -245,10 +251,12 @@
{
// destroy session gone bad.
destroySession();
+ logCauseException(e);
throw new SystemException(e.toString());
}
catch (Exception e)
{
+ logCauseException(e);
throw new SystemException(e.toString());
}
}
@@ -276,10 +284,12 @@
{
// destroy session gone bad.
destroySession();
+ logCauseException(e);
throw new SystemException(e.toString());
}
catch (Exception e)
{
+ logCauseException(e);
throw new SystemException(e.toString());
}
}
@@ -413,6 +423,13 @@
return ret;
}
+ private void logCauseException(Exception e)
+ {
+ if (trace)
+ {
+ log.trace("Logging cause exception", e);
+ }
+ }
// Inner classes -------------------------------------------------
More information about the jboss-cvs-commits
mailing list