aspose file tools*
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


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "org.springframework.beans.NotReadablePropertyException" Watch "org.springframework.beans.NotReadablePropertyException" New topic
Author

org.springframework.beans.NotReadablePropertyException

Raaja Gotluru
Ranch Hand

Joined: Mar 02, 2010
Posts: 115
Hi,

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.

Thanks.
Raaja Gotluru
Ranch Hand

Joined: Mar 02, 2010
Posts: 115
Hi,

Some one help in solving this.
Nathan Pruett
Bartender

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 -


-Nate
Write once, run anywhere, because there's nowhere to hide! - /. A.C.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: org.springframework.beans.NotReadablePropertyException