File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Kshitiz Agarwal
Ranch Hand
Posts: 36
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 38
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 36
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 15
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Use MCQSingleAnsmanager instead of questionmanagerInterface in your java code

 
Kshitiz Agarwal
Ranch Hand
Posts: 36
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic