您的位置:首页 > 其它

【错误】Does the parameter type of the setter match the return type of the getter

2014-07-18 16:39 501 查看
2014-07-18 16:37:41 ERROR org.springframework.web.context.ContextLoader Context initialization failed

org.springframework.beans.factory.BeanCreationException: Error creating bean with name '/userRoleManagerAction' defined in ServletContext resource [/WEB-INF/config/rm/rm-action.xml]: Error setting property values; nested exception is org.springframework.beans.NotWritablePropertyException:
Invalid property 'roleManagerService' of bean class []: Bean property 'roleManagerService' is not writable or has an invalid setter method.
Does the parameter type of the setter match the return type of the getter?
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1279)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1010)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:472)

在Action里面调用Service,出错,

通常是Action里面没有添加set方法。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐