Yes, the AbstractBeanValidator tripped me up for some time when I first downloaded the commons validator module. Of course I shouldn't have written validator code that crashed, but that's another story :-)
There is a 'todo' in the AbstractBeanValidator code:
Code:
public void validate(Object obj, Errors errors) {
org.apache.commons.validator.Validator commonsValidator = getValidator(obj, errors);
try {
commonsValidator.validate();
}
catch (ValidatorException e) {
// todo: throw exception here
}
}
Revision 1.2 of the code in CVS doesn't swallow the exception, but logs it, which is a huge help in debugging. Unfortunately this hasn't yet made it into a numbered release.