Results 1 to 2 of 2

Thread: Springmodules and common validation integration

  1. #1
    Join Date
    Nov 2005
    Posts
    6

    Thumbs down Springmodules and common validation integration

    Springmodules 0.2 class org.springmodules.commons.validator.AbstractBeanVa lidator method validate(Object obj, Errors errors) contains a pretty annoying piece of code:

    Code:
    catch (ValidatorException e) {
    			// todo: throw exception here
    }
    In case you have invalid validation.xml or validator-rules.xml or any other problem in commons validation you will never find it out because of this catch block. Everything works always just fine.

  2. #2
    Join Date
    Aug 2004
    Location
    Hawaii, US
    Posts
    225

    Default

    Hi,

    I just checked, this is now fixed (in CVS):

    Code:
    	public void validate(Object obj, Errors errors) {
    		org.apache.commons.validator.Validator commonsValidator = getValidator(obj, errors);
    		try {
    			commonsValidator.validate();
    		}
    		catch (ValidatorException e) {
    			log.error("Exception while validating object " + obj, e);
    		}
    	}
    Oh, feel free to create JIRA issues for this kind of thing. You'll get a much quicker response.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •