November 03, 2012

Exceptions in java

Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener



org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'mailService' defined in ServletContext resource [/WEB-INF/landview-mail.xml]: Error setting property values; nested exception is org.springframework.beans.NotWritablePropertyException: Invalid property 'mailSender' of bean class [com.mapview.landview.service.impl.MailServiceImpl]: Bean property 'mailSender' is not writable or has an invalid setter method. Does the parameter type of the setter match the return type of the getter?



solution : you have forget to create getter and setter method in java class for id specified in xml as bean.



http://javabelazy.blogspot.in/

No comments:

Post a Comment

Your feedback may help others !!!

Facebook comments