Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

spring

 
Darshan Shah
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic