Details
-
Bug
-
Resolution: Done
-
Minor
-
JBossAS-3.2.5 Final, JBossAS-4.0.0 Final, JBossAS-4.0.1RC1, JBossAS-3.2.6 Final, JBossAS-3.2.7 Final, JBossAS-4.0.1 Final, JBossAS-4.0.1 SP1
-
None
Description
In org.jboss.resource.connectionmanager.RARDeployment.setManagedConnectionFactoryAttribute(String name, Class clazz, Object value, boolean mustExist)
try
{
setter.invoke(mcf, new Object[]
);
log.debug("set property " + name + " to value " + value);
}
catch (Exception e)
{
String error = "Unable to invoke setter method '" + setter + "' " + "on object '" + mcf + "'";
if (mustExist)
throw new IllegalArgumentException(error);
else
}
When ANY exception is caught from an invocation of the ManagedConnectionFactory's setter method an IllegalArgumentException is thrown. This can be misleading depending on the actual exception thrown from the ManagedConnectionFactory's setter (see SalesForce case#00003103).
Either the underlying exception should be wrapped in a org.jboss.resource.JBossResourceException and thrown or the underlying exception should be logged inline or both. In the case of an InvocationTargetException the target exception could be wrapped/logged/etc.
Attachments
Issue Links
- is related to
-
JBAS-1850 JCA and javabean conventions
- Closed