File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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
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: 108
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: 108
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.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: org.springframework.beans.NotReadablePropertyException
 
Similar Threads
Getting the below error when doing formvalidation in spring
IllegalStateException:Neither BindingResult nor plain target object for bean name available
Not Getting Values using EL in Spring..
problem while loading the welcome page
data source defined but not found..