[jboss-jira] [JBoss JIRA] Created: (JBAS-4539) Modify HA-JNDI not to leak JBoss Cache CacheException
Brian Stansberry (JIRA)
jira-events at lists.jboss.org
Wed Jul 11 23:19:31 EDT 2007
Modify HA-JNDI not to leak JBoss Cache CacheException
-----------------------------------------------------
Key: JBAS-4539
URL: http://jira.jboss.com/jira/browse/JBAS-4539
Project: JBoss Application Server
Issue Type: Task
Security Level: Public (Everyone can see)
Components: Clustering
Reporter: Brian Stansberry
Assigned To: Brian Stansberry
Fix For: JBossAS-5.0.0.CR1
JBoss Cache will likely not be on a remote HA-JNDI client's classpath. So, need to ensure CacheException doesn't leak to the client via exception chaining.
Use:
NamingException ne = new NamingException(ce.getClass().getName() + " " + ce.getMessage());
ne.setStackTrace(ce.getStackTrace());
throw ne;
Not:
throw new NamingException(ce);
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list