File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Spring and the fly likes org.springframework.beans.NotReadablePropertyException Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "org.springframework.beans.NotReadablePropertyException" Watch "org.springframework.beans.NotReadablePropertyException" New topic


Raaja Gotluru
Ranch Hand

Joined: Mar 02, 2010
Posts: 118

I have just started Spring. I am trying an example but I am getting the following exception. As per the message I have checked the bean class but didnt find the solution.

org.springframework.beans.NotReadablePropertyException: Invalid property 'name' of bean class [java.lang.String]: Bean property 'name' is not readable or has an invalid getter method: Does the return type of the getter match the parameter type of the setter?

My code is :

Where I am doing wrong. Guide me in executing this.

Raaja Gotluru
Ranch Hand

Joined: Mar 02, 2010
Posts: 118

Some one help in solving this.
Nathan Pruett

Joined: Oct 18, 2000
Posts: 4121

In your UserController -

Instead of just the String "userForm", you're probably wanting to place an instance of the model class here... something like -

You also probably want to pass a User instance into the method that handles your form POST -

Write once, run anywhere, because there's nowhere to hide! - /. A.C.
I agree. Here's the link:
subject: org.springframework.beans.NotReadablePropertyException
jQuery in Action, 3rd edition