-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] SecretClientBuilder : java.lang.NoClassDefFoundError: reactor/netty/tcp/ProxyProvider$TypeSpec #19957
Comments
Hi @Jeevankumar555, could you try upgrading the azure-security-keyvault-secrets 4.2.6 which was released this month. This version should support working with Reactor Netty 1.0.x. |
using 4.2.6 I run into other issue
An attempt was made to call a method that does not exist. The attempt was made from the following location:
The following method did not exist:
The method's class, com.fasterxml.jackson.databind.ObjectMapper, is available from the following locations:
|
Hi @Jeevankumar555, that issue should be resolved once the fix for #19897 is released. I will let you know once that has happened. |
Hi @Jeevankumar555, could you also include azure-core 1.14.1 in your project. This should resolve the new exception you are seeing. |
azure-core 1.14.1 + azure-security-keyvault-secrets 4.2.6 : is the way to go ? version 4.2.6 of azure keyvault secrets already has azure-core 1.14.0 , so I excluded it and included 1.14.1 and that combination does work.
Is there a plan to release azure-security-keyvault-secrets new version to have the azure-core 1.14.1 or above inclusive? |
For right now, cc: @vcolin7 |
@vcolin7 , @alzimmermsft : I face a new run time exception with the combination of spring boot 2.4.2 and azure-security-keyvault-secrets 4.2.6 + overriding azure-core to 1.14.1 dependencies that it is not able to connect to my keyvault uri , as per suggestion of my colleague he used spring boot 2.3.9-Release that seems to work for him. I am going to try that. I have created an MSI for my app service and assigned all the vault permissions to it and try to use SecretClient in retrieving the scerets.
|
tested with 2.3.9.RELEASE of spring boot with 4.2.3 version of azure-security-keyvault-secrets , then I am able to connect to keyvault from my app service that has manged identity, but unfortunately I am locked with this version of spring boot now |
Just out of curiosity, have you tried using our Spring Boot Starter for Key Vault? |
nope, will try with that too |
I tried with below combination due to the dependency bug I face with using 3.3.0 version of azure-spring-boot-starter-keyvault-secrets that carries 4.2.6 of azure-security-keyvault-secrets. But then no luck in connecting to Keyvault so I fall back again to use 2.3.9.RELEASE of spring boot with 4.2.3 version of azure-security-keyvault-secrets ( bug I see is, it reties to connect 3 times and fails which I have posted above the stack trace).
|
Adding the
|
As a side note, and this is me not knowing your exact use case, but the Spring Boot Starter for Key Vault has compatible dependencies for Spring Boot and Key Vault Secrets and allows you to access all your secrets on a given Key Vault as if they were properties of your Spring Boot application. So instead of manually instantiating a |
Hi,
My use case here is not to lookup for fixed key labels from keyvault and bind it to an instance variable of class but to lookup dynamically based on some values I get from my incoming HTTP request param. I may have reported/discussed two different issues in this issue thread as and when I faced it, but if needed I can make two issues separately to avoid confusion. |
Hi @Jeevankumar555, Would you mind closing this issue as the original problem has been resolved and then opening a new one for problem No. 2 in your list? That is, if you are still facing it. Thanks! |
add x-ms-identifiers for hdinsight (Azure#19957) * add x-ms-identifiers for hdinsight * Update cluster.json
Describe the bug
The above issue is when we tried to use azure sdk for keyvaults and instantiate SecretClient using SecretClientBuilder.
Issue in com.azure: azure-security-keyvault-secrets 4.2.x
in combination with io.projectreactor.netty:reactor-netty:jar:1.0.3
Exception or Stack Trace
2021-03-18T18:58:53.6444488Z Caused by: java.lang.NoClassDefFoundError: reactor/netty/tcp/ProxyProvider$TypeSpec 2021-03-18T18:58:53.6445215Z at com.azure.core.http.netty.NettyAsyncHttpClientBuilder.lambda$build$7(NettyAsyncHttpClientBuilder.java:142) 2021-03-18T18:58:53.6446059Z at reactor.netty.http.client.HttpClient.tcpConfiguration(HttpClient.java:1465) 2021-03-18T18:58:53.6446779Z at com.azure.core.http.netty.NettyAsyncHttpClientBuilder.build(NettyAsyncHttpClientBuilder.java:122) 2021-03-18T18:58:53.6447555Z at com.azure.core.http.netty.NettyAsyncHttpClientProvider.createInstance(NettyAsyncHttpClientProvider.java:17) 2021-03-18T18:58:53.6448328Z at com.azure.core.implementation.http.HttpClientProviders.createInstance(HttpClientProviders.java:51) 2021-03-18T18:58:53.6449000Z at com.azure.core.http.HttpClient.createDefault(HttpClient.java:50) 2021-03-18T18:58:53.6449617Z at com.azure.core.http.HttpClient.createDefault(HttpClient.java:40) 2021-03-18T18:58:53.6450243Z at com.azure.core.http.HttpPipelineBuilder.build(HttpPipelineBuilder.java:62) 2021-03-18T18:58:53.6450942Z at com.azure.security.keyvault.secrets.SecretClientBuilder.buildAsyncClient(SecretClientBuilder.java:161)
**2021-03-18T18:58:53.6451836Z at com.azure.security.keyvault.secrets.SecretClientBuilder.buildClient(SecretClientBuilder.java:104)
To Reproduce
Using below dependencies
spring boot version : 2.4.2 in combination with
and try to build SecretClientBuilder object
Code Snippet
The text was updated successfully, but these errors were encountered: