Skip to content

[BUG] Spring-boot-dependencies:3.3.9 incompatible with azure-sdk-bom:1.2.24-1.2.32 #44883

Closed
@Simon-Wang-Depot-Project

Description

Describe the bug
My Spring Boot application, currently running on version 3.3.5 with spring-boot-dependencies and azure-sdk-bom version 1.2.16, successfully authenticates to Azure services (Cosmos DB, Azure Storage, Service Bus, etc.) using DefaultAzureCredential configured via environment variables (AZURE_CLIENT_ID, AZURE_CLIENT_SECRET, AZURE_TENANT_ID or Managed Identity). However, after upgrading Spring Boot to version 3.3.9, I'm experiencing an incompatibility issue with the azure-sdk-bom. Testing with versions 1.2.16, 1.2.24 and 1.2.32 results in an UnresolvedAddressException during the DefaultAzureCredential initialization process.

Exception or Stack Trace
at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:304)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
at java.base/java.lang.Thread.run(Thread.java:833)
Suppressed: com.azure.core.exception.ClientAuthenticationException: DefaultAzureCredential authentication failed. ---> EnvironmentCredential authentication failed. Error Details: java.nio.channels.UnresolvedAddressException
at com.azure.identity.ChainedTokenCredential.lambda$handleExceptionAsync$5(ChainedTokenCredential.java:120)
at reactor.core.publisher.Mono.lambda$onErrorResume$30(Mono.java:3938)
at reactor.core.publisher.FluxOnErrorResume$ResumeSubscriber.onError(FluxOnErrorResume.java:94)
... 59 common frames omitted
Caused by: com.microsoft.aad.msal4j.MsalClientException: java.nio.channels.UnresolvedAddressException

Expected behavior
Based on the document, azure-sdk-bom 1.2.24 - 1.2.32 is compatible with spring-boot-dependencies:3.3.9. (https://github.com/Azure/azure-sdk-for-java/wiki/Spring-Versions-Mapping#which-version-of-spring-cloud-azure-should-i-use)

Any suggestions on how to resolve this incompatibility would be very helpful.

Metadata

Metadata

Labels

Azure.IdentityHttpClientcustomer-reportedIssues that are reported by GitHub users external to the Azure organization.needs-author-feedbackWorkflow: More information is needed from author to address the issue.no-recent-activityThere has been no recent activity on this issue.questionThe issue doesn't require a change to the product in order to be resolved. Most issues start as that

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions