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

  • 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.?

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

    Comment

    Working...
    X