Error: org.springframework.beans.NotWritablePropertyException




Asked on April 10, 2013
Hi All,
Any suggestion for the below exception.

Caused by: org.springframework.beans.NotWritablePropertyException: Invalid property 'dataList' of bean class [some bean]: Bean property 'dataList' 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.BeanWrapperImpl.setPropertyValue(BeanWrapperImpl.java:1064)
    at org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrapperImpl.java:924)
    at org.springframework.beans.AbstractPropertyAccessor.setPropertyValues(AbstractPropertyAccessor.java:76)
    at org.springframework.beans.AbstractPropertyAccessor.setPropertyValues(AbstractPropertyAccessor.java:58)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1393)
    ... 13 more

Thanks



Replied on April 10, 2013
Error says that the you are providing different datatype value to different data type. explain more , what are you doing?


Replied on April 10, 2013
I am doing collection merging. I am new to spring and learning how to do collection merging in application xml of spring.



Replied on April 10, 2013
Find the reference URL. and check what are you doing wrong.



Write Answer










©2024 concretepage.com | Privacy Policy | Contact Us