org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'scopedTarget.org.springframework.security.oauth2.client.context.DefaultOAuth2ClientContext#0': Unsatisfied dependency expressed through constructor argument with index 0 of type [org.springframework.security.oauth2.client.token.AccessTokenRequest]: Could not convert constructor argument value of type [$Proxy244] to required type [org.springframework.security.oauth2.client.token.AccessTokenRequest]: Failed to convert value of type '$Proxy244 implementing org.springframework.security.oauth2.client.token.AccessTokenRequest,java.io.Serializable,org.springframework.aop.scope.ScopedObject,org.springframework.aop.framework.AopInfrastructureBean,org.springframework.aop.SpringProxy,org.springframework.aop.framework.Advised' to required type 'org.springframework.security.oauth2.client.token.AccessTokenRequest'; nested exception is org.springframework.core.convert.ConversionFailedException: Failed to convert from type $Proxy244<?, ?> to type org.springframework.security.oauth2.client.token.AccessTokenRequest<java.lang.String, java.util.List<?>> for value 'org.springframework.security.oauth2.client.token.DefaultAccessTokenRequest@96ea788'; nested exception is java.lang.IllegalArgumentException: Unsupported Map interface: org.springframework.security.oauth2.client.token.AccessTokenRequest

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

Do you know how to solve this issue? Write a tip to help other users and build your expert profile.

Solutions on the web

via Spring JIRA by Viktor Khoroshko, 1 year ago
Error creating bean with name 'scopedTarget.org.springframework.security.oauth2.client.context.DefaultOAuth2ClientContext#0': Unsatisfied dependency expressed through constructor argument with index 0 of type [org.springframework.security.oauth2
via Spring JIRA by Viktor Khoroshko, 1 year ago
Error creating bean with name 'scopedTarget.org.springframework.security.oauth2.client.context.DefaultOAuth2ClientContext#0': Unsatisfied dependency expressed through constructor argument with index 0 of type [org.springframework.security.oauth2
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'scopedTarget.org.springframework.security.oauth2.client.context.DefaultOAuth2ClientContext#0': Unsatisfied dependency expressed through constructor argument with index 0 of type [org.springframework.security.oauth2.client.token.AccessTokenRequest]: Could not convert constructor argument value of type [$Proxy244] to required type [org.springframework.security.oauth2.client.token.AccessTokenRequest]: Failed to convert value of type '$Proxy244 implementing org.springframework.security.oauth2.client.token.AccessTokenRequest,java.io.Serializable,org.springframework.aop.scope.ScopedObject,org.springframework.aop.framework.AopInfrastructureBean,org.springframework.aop.SpringProxy,org.springframework.aop.framework.Advised' to required type 'org.springframework.security.oauth2.client.token.AccessTokenRequest'; nested exception is org.springframework.core.convert.ConversionFailedException: Failed to convert from type $Proxy244<?, ?> to type org.springframework.security.oauth2.client.token.AccessTokenRequest<java.lang.String, java.util.List<?>> for value 'org.springframework.security.oauth2.client.token.DefaultAccessTokenRequest@96ea788'; nested exception is java.lang.IllegalArgumentException: Unsupported Map interface: org.springframework.security.oauth2.client.token.AccessTokenRequest
at org.springframework.beans.factory.support.ConstructorResolver.resolvePreparedArguments(ConstructorResolver.java:779)
at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:131)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1035)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:927)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:485)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.

Write tip

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