-
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] Failing Spring startup with CosmosDB on Azure #31312
Comments
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @kushagraThapar, @TheovanKraay |
Hi @kushagraThapar could you help to take a look of this issue? Besides, @ViktorZieg could you provide which Spring Cloud Azure library you are using? |
This is not an issue in Cosmos DB or Java SDK for Cosmos DB. |
Do you mean this?
Or the dependencies of the services I am using? |
I have looked into this issue, but I am not aware of using Application Insights Java agent. Also, I did not find any dependency related to it. |
Sorry, to be more precise, there is known issue in Application Insights Java agent, and this was also fixed in the upstream OpenTelemetry Java agent (which it appears you are using), see here: open-telemetry/opentelemetry-java-instrumentation#6469. So I believe you will need to take a later version of |
Where did you see, that I am using OpenTelemetry? I could not find it anywhere and a bit confused how to take a later version |
From the stack trace you included: [SslHandshakeCompletionEvent(SUCCESS): : java.util.NoSuchElementException: io.opentelemetry.javaagent.instrumentation.netty.common.client.NettySslInstrumentationHandler Either you have the relevant dependency directly in your build, or a library that bundles it. If you do not believe you are using it, please share a sample application which reproduces this error, and we can investigate how to resolve this. |
I could not create a sample app, where this occurs. Also I could not find anything poining to opentelemetry. For now, I just downgraded to the latest working solution. I close this, because there seems to be a solution to the issue. |
Describe the bug
When starting my Spring app on an Azure App Service I get a NoSuchElementException.
Application Insights shows
GET /addresses/
prior to the exceptionException or Stack Trace
Setup:
The text was updated successfully, but these errors were encountered: