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?

Spring JIRA | marc schipperheyn | 6 years ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 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?
  2. Speed up your debug routine!

    Automated exception search integrated into your IDE

  3. 0

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

    boyunjian.com | 1 year 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?
  4. 0

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

    javatpoint.com | 2 years 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 '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()
    2. Spring Beans
      BeanWrapperImpl.setPropertyValue
      1. org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrapperImpl.java:1057)
      2. org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrapperImpl.java:920)
      2 frames