Skip to content
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

Fails to run with Java 17 Spring Boot 3 #450

Open
milindsingh opened this issue Jun 7, 2023 · 1 comment
Open

Fails to run with Java 17 Spring Boot 3 #450

milindsingh opened this issue Jun 7, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@milindsingh
Copy link

Describe the bug
With Spring Boot 3 javax.* is replaced with jakarta.* resulting in unit test failure due to dependency conflict in project and sdk.
Error: NoClassDefFound javax/xml/bind/annotation/XmlElement

To Reproduce
Run the below code in project:

  objectMapper.findAndRegisterModules();
    ObjectMapper objectMapper = new ObjectMapper();
    objectMapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false);
    objectMapper.readValue(data, tClass);

Expected behavior
SDK should use the latest jakarta dependencies.

Screenshots/Code snippet
Error: NoClassDefFound javax/xml/bind/annotation/XmlElement

Stack information (please complete the following information):

  • Java: 17
  • SDK: 14.3 latest

Additional context
NA

@milindsingh milindsingh added the bug Something isn't working label Jun 7, 2023
@jenschude
Copy link
Contributor

It's not an issue of the SDK. We don't use the XmlElement annotation.

The incompatibility comes from Jackson in combination with Spring Boot 3. You will have to find some working combination by excluding and/or explicitly referencing the needed dependencies.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants