Home  >  Forum  >  Spring
Post New Query

Error: org.springframework.beans.NotWritablePropertyException


joined on
April 07,2013
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
joined on
March 14,2013
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?
joined on
April 07,2013
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.
joined on
March 14,2013
Replied on April 10,2013

Find the reference URL. and check what are you doing wrong.

Write Answer









Copyright ©2017 concretepage.com, all rights reserved |Privacy Policy | Contact Us