wood burning stoves 2.0*
The moose likes Other Application Frameworks and the fly likes spring Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Frameworks » Other Application Frameworks
Bookmark "spring" Watch "spring" New topic
Author

spring

Darshan Shah
Greenhorn

Joined: Oct 20, 2007
Posts: 12
Hi all,
i m stucking with this problem...

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'OhbillFormController' defined in ServletContext resource [/WEB-INF/action-servlet.xml]: Error setting property values; nested exception is org.springframework.beans.NotWritablePropertyException: Invalid property 'validator' of bean class [com.cybermanagers.legal.webapp.action.OHBillFormController]: Bean property 'validator' is not writable or has an invalid setter method: Does the parameter type of the setter match the return type of the getter?
org.springframework.beans.NotWritablePropertyException: Invalid property 'validator' of bean class [com.cybermanagers.legal.webapp.action.OHBillFormController]: Bean property 'validator' is not writable or has an invalid setter method: Does the parameter type of the setter match the return type of the getter?



please revert back me if any one know how to resolve this error...
thanks in advance
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17250
    
    6

Please do not duplicate post. You already have a thread for your problem, and it needs to stay in that one thread. Closing this thread.

Here is the real thread
http://www.coderanch.com/t/420756/oa/does-not-support-command-class

Thanks

Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17250
    
    6

OK, it is similar, but not exactly the same as your other exception, so I won't close this thread.

So the exception here says to me that you have a Getter method, but not a corresponding Setter method, and it appears that for that Object, Spring is requiring you to have both a Getter and Setter for it

You must have a getValidator() and a setValidator() method. Or maybe you can't have validator as an instance variable. I am not sure completely, but I would look at your code for a getter and setter, and if you have neither, then I would remove the validator instance variable.

Good Luck

Mark
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: spring