org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'clientDetails': Cannot create inner bean '(inner bean)' of type [org.springframework.security.oauth2.provider.client.BaseClientDetails] while setting bean property 'clientDetailsStore' with key [the_client]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)#3': Error setting property values; nested exception is org.springframework.beans.NotWritablePropertyException: Invalid property 'autoApproveScopes' of bean class [org.springframework.security.oauth2.provider.client.BaseClientDetails]: Bean property 'autoApproveScopes' is not writable or has an invalid setter method. Does the parameter type of the setter match the return type of the getter?

Stack Overflow | swamy | 7 months ago
tip
Do you find the tips below useful? Click on the to mark them and say thanks to poroszd and rp . Or join the community to write better ones.
  1. 0
    samebug tip
    Spring Security detects beans in the root context. Move the detection of the bean (or declare it explictly) in the root context.
  2. 0
    samebug tip
    Your entity is not a valid Entity class.
  3. 0
    samebug tip
    Upgrade to Confluence 3.5.5 or install the patch as explained in the details.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0
    samebug tip
    Mixed JpaTransactionManager with JTA transaction type in the beans.xml and persistence.xml
    via spring.io
  6. 0

    spring oauth2 configuration - Invalid property 'autoApproveScopes'

    Stack Overflow | 7 months ago | swamy
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'clientDetails': Cannot create inner bean '(inner bean)' of type [org.springframework.security.oauth2.provider.client.BaseClientDetails] while setting bean property 'clientDetailsStore' with key [the_client]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)#3': Error setting property values; nested exception is org.springframework.beans.NotWritablePropertyException: Invalid property 'autoApproveScopes' of bean class [org.springframework.security.oauth2.provider.client.BaseClientDetails]: Bean property 'autoApproveScopes' is not writable or has an invalid setter method. Does the parameter type of the setter match the return type of the getter?

  1. esaar 2 times, last 7 months ago
  2. abrazeneb 34 times, last 6 months ago
  3. Piz 9 times, last 7 months ago
  4. haerick 4 times, last 8 months ago
  5. Andreas Häber 8 times, last 9 months ago
3 more registered users
7 unregistered visitors
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.factory.BeanCreationException

    Error creating bean with name '(inner bean)#3': Error setting property values; nested exception is org.springframework.beans.NotWritablePropertyException: Invalid property 'autoApproveScopes' of bean class [org.springframework.security.oauth2.provider.client.BaseClientDetails]: Bean property 'autoApproveScopes' 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.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues()
  2. Spring Beans
    BeanDefinitionValueResolver.resolveReference
    1. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1423)[spring-beans-3.2.3.RELEASE.jar:3.2.3.RELEASE]
    2. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1128)[spring-beans-3.2.3.RELEASE.jar:3.2.3.RELEASE]
    3. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)[spring-beans-3.2.3.RELEASE.jar:3.2.3.RELEASE]
    4. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:458)[spring-beans-3.2.3.RELEASE.jar:3.2.3.RELEASE]
    5. org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:271)[spring-beans-3.2.3.RELEASE.jar:3.2.3.RELEASE]
    6. org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:282)[spring-beans-3.2.3.RELEASE.jar:3.2.3.RELEASE]
    7. org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:126)[spring-beans-3.2.3.RELEASE.jar:3.2.3.RELEASE]
    8. org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveManagedMap(BeanDefinitionValueResolver.java:379)[spring-beans-3.2.3.RELEASE.jar:3.2.3.RELEASE]
    9. org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:162)[spring-beans-3.2.3.RELEASE.jar:3.2.3.RELEASE]
    10. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1387)[spring-beans-3.2.3.RELEASE.jar:3.2.3.RELEASE]
    11. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1128)[spring-beans-3.2.3.RELEASE.jar:3.2.3.RELEASE]
    12. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)[spring-beans-3.2.3.RELEASE.jar:3.2.3.RELEASE]
    13. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:458)[spring-beans-3.2.3.RELEASE.jar:3.2.3.RELEASE]
    14. org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:295)[spring-beans-3.2.3.RELEASE.jar:3.2.3.RELEASE]
    15. org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)[spring-beans-3.2.3.RELEASE.jar:3.2.3.RELEASE]
    16. org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:292)[spring-beans-3.2.3.RELEASE.jar:3.2.3.RELEASE]
    17. org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)[spring-beans-3.2.3.RELEASE.jar:3.2.3.RELEASE]
    18. org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:323)[spring-beans-3.2.3.RELEASE.jar:3.2.3.RELEASE]
    18 frames