org.springframework.beans.NotWritablePropertyException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • Windowhandle Property Does Not Match Spy++
    via by Unknown author,
  • Bug in BeanWrapperImpl.setPropertyValue ?
    via springframework by *anonymous
    ,
  • sap-servlet.xml <bean id="sapFellowshipParent" class="cz.marbes.daisy.modules.sap.fellowships.SapFellowshipParent" abstract="true"> <property name="dao"><ref bean="DAOSap"/></property> <property name="sqlProvider"><ref bean="sqlProvider"/></property> </bean> <bean class="cz.marbes.daisy.modules.sap.fellowships.tfsgencis.GenCis" parent="sapFellowshipParent"> <property name="mcProviders"><ref bean="mcProviders"/></property> </bean> GenCis.java public class GenCis extends SapFellowshipParent { private Providers providers; public Providers setMcProviders(Providers providers){ return providers; } The rest of properties is defined in SapFellowshipParent .java 2005-11-25 12:50:57,874 ERROR [org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/daisy]] - <Servlet /daisy threw load() exception> org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'cz.marbes.daisy.modules.sap.fellowships.tfsgencis.GenCis' defined in ServletContext resource [/WEB-INF/sap-servlet.xml]: Error setting property values; nested exception is org.springframework.beans.NotWritablePropertyException: Invalid property 'mcProviders' of bean class [cz.marbes.daisy.modules.sap.fellowships.tfsgencis.GenCis]: Bean property 'mcProviders' is not writable or has an invalid setter method: Does the parameter type of the setter match the return type of the getter? org.springframework.beans.NotWritablePropertyException: Invalid property 'mcProviders' of bean class at org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrapperImpl.java:567) The bug is that "cachedIntrospectionResults" observe only parent but not child GenCis and throw exception when touch mcProviders.
    via by Jara Cesnek,
    • org.springframework.beans.NotWritablePropertyException: Invalid property 'statusCodes' of bean class [nl.project.interceptor.MySimpleExceptionResolver]: Bean property 'statusCodes' 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:1057) at org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrapperImpl.java:920)

    Users with the same issue

    Unknown visitor1 times, last one,
    Unknown visitor2 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    24 more bugmates