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?

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

,
via atlassian.com by Unknown author

Upgrade to Confluence 3.5.5 or install the patch as explained in the details.

,
via spring.io by Unknown author

Mixed JpaTransactionManager with JTA transaction type in the beans.xml and persistence.xml

Solutions on the web

via Stack Overflow by swamy
, 1 year ago
'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?
via GitHub by quintonhsu
, 10 months ago
Error creating bean with name 'templateService': Cannot create inner bean 'com.alibaba.citrus.service.velocity.impl.VelocityEngineImpl#ab50d0a' of type [com.alibaba.citrus.service.velocity.impl.VelocityEngineImpl] while setting bean property
via grokbase.com by Unknown author, 2 years ago
'persistentContextConversationInterceptor' while setting bean property 'advices' with key [0]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'persistentContextConversationInterceptor' defined in
via liferay.com by Unknown author, 1 year ago
[com.liferay.portal.scripting.ruby.RubyExecutor] while setting bean property 'scriptingExecutors' with key [TypedStringValue: value , target type ]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name
via Google Groups by Tim Robinson, 3 months ago
Error creating bean with name 'root' defined in ServletContext resource [/WEB-INF/restlet-servlet.xml]: Cannot create inner bean 'org.restlet.ext.spring.SpringFinder#68dd6317' of type [org.restlet.ext.spring.SpringFinder] while setting bean property
via liferay.com by Unknown author, 1 year ago
[com.liferay.portal.scripting.ruby.RubyExecutor] while setting bean property 'scriptingExecutors' with key [TypedStringValue: value , target type ]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name
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?
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1423)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1128)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:458)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:271)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:282)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:126)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveManagedMap(BeanDefinitionValueResolver.java:379)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:162)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1387)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1128)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:458)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:295)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:292)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)

Users with the same issue

Once, 1 year ago
Once, 1 year ago
8 times, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.