• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

spring

 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
ranger
Posts: 17347
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
https://coderanch.com/t/420756/oa/does-not-support-command-class

Thanks

Mark
 
Mark Spritzler
ranger
Posts: 17347
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
BWA HA HA HA HA HA HA! Tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic