The moose likes Spring and the fly likes org.springframework.beans.NotReadablePropertyException Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Application Frameworks » Spring
Reply 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: 60
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: 60
Hi,

Some one help in solving this.
Nathan Pruett
Bartender

Joined: Oct 18, 2000
Posts: 4120


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.
 
 
subject: org.springframework.beans.NotReadablePropertyException
 
Threads others viewed
data source defined but not found..
problem while loading the welcome page
Not Getting Values using EL in Spring..
IllegalStateException:Neither BindingResult nor plain target object for bean name available
Getting the below error when doing formvalidation in spring
WebSphere development made easy
without the weight of IBM tools
http://www.myeclipseide.com