[JBoss JIRA] Created: (JBAS-5963) ClientUserTransaction should log cause exceptions
by Galder Zamarreno (JIRA)
ClientUserTransaction should log cause exceptions
-------------------------------------------------
Key: JBAS-5963
URL: https://jira.jboss.org/jira/browse/JBAS-5963
Project: JBoss Application Server
Issue Type: Task
Security Level: Public (Everyone can see)
Components: Transaction Manager (JBossTM)
Affects Versions: JBossAS-4.2.3.GA, JBossAS-5.0.0.CR1
Reporter: Galder Zamarreno
Assignee: Galder Zamarreno
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());
}
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
16 years, 3 months