Skip to content

Error creating bean with name 'xsuaaTokenFlows' #1173

@priyasampath2020

Description

@priyasampath2020

Ask the Question

Hello Team,

We are facing the below error while we upgrade the version of sdk-bom from v5.27.0 to v5.30.0.

Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'xsuaaTokenFlows' defined in class path resource [com/sap/cloud/security/xsuaa/autoconfiguration/XsuaaTokenFlowAutoConfiguration.class]: Failed to instantiate [com.sap.cloud.security.xsuaa.tokenflows.XsuaaTokenFlows]: Factory method 'xsuaaTokenFlows' threw exception with message: com/sap/cloud/security/xsuaa/client/XsuaaOAuth2TokenService.

This is because the version of spring-xsuaa getting upgraded by the sdk-bom

Image

Also, attached the complete dependency tree when using sdk-bom v5.27.0 and the upgraded v5.30.0 for reference. pom.xml

old_v5.27.0.txt

new_v5.30.0.txt

We came across this link which talks about the migration. But since we are using spring version 3.x and not migrating now to Spring 4.x. We have included a dependency of token-client-spring-3 library based on link. Is this the right way to resolve the error. Please confirm.

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions