[jboss-jira] [JBoss JIRA] Resolved: (JBAS-5963) ClientUserTransaction should log cause exceptions
Galder Zamarreno (JIRA)
jira-events at lists.jboss.org
Thu Oct 2 06:00:35 EDT 2008
[ https://jira.jboss.org/jira/browse/JBAS-5963?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Galder Zamarreno resolved JBAS-5963.
------------------------------------
Fix Version/s: JBossAS-5.0.0.GA
Resolution: Done
> 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-5.0.0.CR1, JBossAS-4.2.3.GA
> Reporter: Galder Zamarreno
> Assignee: Galder Zamarreno
> Fix For: JBossAS-5.0.0.GA
>
>
> 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
More information about the jboss-jira
mailing list