-
Jun 12th, 2008, 09:56 AM
#1
Does Spring validation framework work in Middle tier?
Hi,
I use Spring 2.5.4. I tried to use Spring validation framework (org.springframework.validation.validator) for data validation in business tier.
But i get below error
org.springframework.beans.NotReadablePropertyExcep tion: Invalid property 'LoginID' of bean class [com.Testcompany.vo.VOUser]: Bean property 'LoginID' is not readable or has an invalid getter method: Does the return type of the getter match the parameter type of the setter?
at org.springframework.beans.BeanWrapperImpl.getPrope rtyValue(BeanWrapperImpl.java:540)
at org.springframework.beans.BeanWrapperImpl.getPrope rtyValue(BeanWrapperImpl.java:532)
at org.springframework.validation.AbstractPropertyBin dingResult.getActualFieldValue(AbstractPropertyBin dingResult.java:79)
at org.springframework.validation.AbstractBindingResu lt.getFieldValue(AbstractBindingResult.java:226)
at org.springframework.validation.BindException.getFi eldValue(BindException.java:199)
at org.springframework.validation.ValidationUtils.rej ectIfEmptyOrWhitespace(ValidationUtils.java:224)
at org.springframework.validation.ValidationUtils.rej ectIfEmptyOrWhitespace(ValidationUtils.java:163)
Is Spring Validation framework work only designed for Web tier.?
-
Jun 13th, 2008, 03:43 AM
#2
Hi.
I've seen this question in Web Spring Flow Forum also.
Your solution was to rename your attribute from Log.. to log... (see beanspecification).
If you have got an answer ( solution, please close this question in future or write a comment.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules