Announcement Announcement Module
No announcement yet.
Does Spring validation framework work in Middle tier? Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • Does Spring validation framework work in Middle tier?

    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(
    at org.springframework.beans.BeanWrapperImpl.getPrope rtyValue(
    at org.springframework.validation.AbstractPropertyBin dingResult.getActualFieldValue(AbstractPropertyBin
    at org.springframework.validation.AbstractBindingResu lt.getFieldValue(
    at org.springframework.validation.BindException.getFi eldValue(
    at org.springframework.validation.ValidationUtils.rej ectIfEmptyOrWhitespace(
    at org.springframework.validation.ValidationUtils.rej ectIfEmptyOrWhitespace(

    Is Spring Validation framework work only designed for Web tier.?

  • #2
    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.