This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Spring and the fly likes spring bean property is not writable or has an invalid setter method Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "spring bean property is not writable or has an invalid setter method" Watch "spring bean property is not writable or has an invalid setter method" New topic
Author

spring bean property is not writable or has an invalid setter method

Kshitiz Agarwal
Ranch Hand

Joined: Dec 15, 2011
Posts: 36
Hi,

I am using spring in my application and m facing this problem:



The code of class MCQSingleAnsController.java is:



And spring config file is:




Here,
MCQSingleAnsValidator implements questionValidatorInterface
MCQSingleAnsmanager implements questionmanagerInterface


What is the problem...all setters are correct...
Murali Ranga
Ranch Hand

Joined: Dec 16, 2011
Posts: 38
config file
questionValidatorInterface :com.infosys.enr.question.validator.MCQSingleAnsValidator
In java file
questionValidatorInterface:com.infosys.enr.question.validator.QuestionValidatorInterface

change code in java file as

private MCQSingleAnsValidator questionValidatorInterface;

Kshitiz Agarwal
Ranch Hand

Joined: Dec 15, 2011
Posts: 36
Murali Ranga wrote:config file
questionValidatorInterface :com.infosys.enr.question.validator.MCQSingleAnsValidator
In java file
questionValidatorInterface:com.infosys.enr.question.validator.QuestionValidatorInterface

change code in java file as

private MCQSingleAnsValidator questionValidatorInterface;



Thanks for the reply.. I did it but the same error is coming



The modified java file is:



Is the problem related to jar files...like any compatibiloty issue or something...? I am using Tomcat 6, spring 3.0.6, spring-webmvc 3.0.3 and web module 2.5
srinivas muni
Greenhorn

Joined: Oct 04, 2010
Posts: 15
Use MCQSingleAnsmanager instead of questionmanagerInterface in your java code

Kshitiz Agarwal
Ranch Hand

Joined: Dec 15, 2011
Posts: 36
svm muni wrote:Use MCQSingleAnsmanager instead of questionmanagerInterface in your java code



I did it...but no effect ...what can be the cause of error...jar files, xml config...??? I have pasted the entire code here http://forum.springsource.org/showthread.php?121005-Webpage-not-running-in-tomcat-6&p=397016#post397016
 
Don't get me started about those stupid light bulbs.
 
subject: spring bean property is not writable or has an invalid setter method
 
Similar Threads
Unable to connect to database
Error getting Spring security 2 to set up in Spring 2.5
NotWritablePropertyException,BeanCreationException
Error defining a bean. Please help
unable to start jbilling