Skip to content

[BUG] Azure Spring Apps deployment failed with Java 21 #41882

Open

Description

Describe the bug
I have a spring boot application running with Java 17 which has been to deployed to azure spring apps and it is up and running. Recently, I have upgraded to Java 21 as well as Spring boot version to v3.3.3. The application is up and running on my local machine with latest versions. But, when I try to deploy it to azure spring apps, the deployment is getting failed with message says "InternalServerError".

Later, I tried with simple spring demo application with Java 21. I have faced the same issue. Please find the below screenshots for the same. I am getting an option to select Java 21 runtime, but when I am trying to deploy with Java 21 it is failed. The azure spring apps documentation also says Java 21 is supported. I have created Azure spring apps with Standard plan pay as you go, East US region, FYI. Please help me out what is wrong here. Thanks in advance.

Exception or Stack Trace
image

To Reproduce
Steps to reproduce the behavior:

Code Snippet
Add the code snippet that causes the issue.

Expected behavior
The deployemnt should be succeeded as it is shown for other applications with Java 17.

Screenshots
Screenshot from 2024-09-17 10-26-58
Screenshot from 2024-09-17 10-26-24
Screenshot from 2024-09-17 10-25-34
Screenshot from 2024-09-17 10-24-42

Setup (please complete the following information):

  • Java version: 21

My local machine set up:
Apache Maven 3.9.9 (8e8579a9e76f7d015ee5ec7bfcdc97d260186937)
Maven home: /opt/maven
Java version: 21.0.4, vendor: Microsoft, runtime: /home/user/.sdkman/candidates/java/21.0.4-ms
Default locale: en_IN, platform encoding: UTF-8
OS name: "linux", version: "6.8.0-40-generic", arch: "amd64", family: "unix"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Labels

ClientThis issue points to a problem in the data-plane of the library.ServiceThis issue points to a problem in the service.azure-springAll azure-spring related issuescustomer-reportedIssues that are reported by GitHub users external to the Azure organization.needs-team-attentionWorkflow: This issue needs attention from Azure service team or SDK teamquestionThe issue doesn't require a change to the product in order to be resolved. Most issues start as that

Type

No type

Projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions