【错误】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方法。
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方法。
相关文章推荐
- Spring框架使用 错误:Does the parameter type of the setter match the return type of the getter?
- 【错误】Does the parameter type of the setter match the return type of the getter
- BeanCreationException:Does the parameter type of the setter match the return type of the getter
- Does the parameter type of the setter match the return type of the getter?
- Does the parameter type of the setter match the return type of the getter?
- Does the parameter type of the setter match the return type of the getter?
- Does the parameter type of the setter match the return type of the getter?
- 启动Tomcat显示异常如下:Does the parameter type of the setter match the return type of the getter?
- Does the parameter type of the setter match the return type of the getter? 异常处理
- Bean property 'esyerDao' is not writable or has an invalid setter method. Does the parameter type of
- Bean property 'RegDao' is not writable or has an invalid setter method. Does the parameter type of t
- Bean property 'address' is not readable or has an invalid getter method: Does the return type of th
- hibernate:newclass.hbm.xml文件错误(the content of element type "class" must match "(meta*,column*,type?generator?...)
- Description Resource Path Location Type Java compiler level does not match the version of the instal
- Description Resource Path Location Type Java compiler level does not match the version of(图解)
- Description Resource Path Location Type Java compiler level does not match the version of the in...
- java compiler level does not match the version of the installed java project facet错误的解决
- Maven构建项目后项目报Error错误Java compiler level does not match the version of the installed Java project fac
- (图解)Description Resource Path Location Type Java compiler level does not match the version of
- Description Resource Path Location Type Java compiler level does not match the version of the instal