org.springframework.beans.NotWritablePropertyException: Invalid property 'mcProviders' of bean class

Spring JIRA | Jara Cesnek | 1 decade ago
  1. 0

    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.

    Spring JIRA | 1 decade ago | Jara Cesnek
    org.springframework.beans.NotWritablePropertyException: Invalid property 'mcProviders' of bean class
  2. 0

    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.

    Spring JIRA | 1 decade ago | Jara Cesnek
    org.springframework.beans.NotWritablePropertyException: Invalid property 'mcProviders' of bean class
  3. 0

    Setter Injection not working with factory method injection of Spring

    Stack Overflow | 3 years ago | Atul Kumar
    org.springframework.beans.NotWritablePropertyException: Invalid property 'argumentBean' of bean class [com.view.spring.dataobjects.SimpleBean]: Bean property 'argumentBean' is not writable or has an invalid setter method. Does the parameter type of the setter match the return type of the getter?
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'powerAction' - 拨云剑

    boyunjian.com | 12 months ago
    org.springframework.beans.NotWritablePropertyException: Invalid property 'MoPowerManagerDAO' of bean class [com.rainmon.pm.action.MoPowerManagerAction]: Bean property 'MoPowerManagerDAO' is not writable or has an invalid setter method. Does the parameter type of the setter match the return type of the getter?
  6. 0

    log4j:WARN No appenders could be found for logger (org-springframework-beans-factory-xml-XmlBeanDefinitionReader) | 5637 - javatpoint.com

    javatpoint.com | 1 year ago
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'q' defined in class path resource [applicationContext.xml]: Cannot resolve reference to bean 'answer1' while setting bean property 'answers'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'answer1' defined in class path resource [applicationContext.xml]: Error setting property values; nested exception is org.springframework.beans.NotWritablePropertyException: Invalid property 'id' of bean class [com.javatpoint.Answer]: Bean property 'id' is not writable or has an invalid setter method. Does the parameter type of the setter match the return type of the getter?

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. org.springframework.beans.NotWritablePropertyException

      Invalid property 'mcProviders' of bean class

      at org.springframework.beans.BeanWrapperImpl.setPropertyValue()
    2. Spring Beans
      BeanWrapperImpl.setPropertyValue
      1. org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrapperImpl.java:567)
      1 frame