Spring Boot 3 compatibility #780
-
Hello guys As I see from the information on the website https://awspring.io/learn/introduction, Spring Boot 3 and Spring Cloud AWS compatibility is currently being worked on.
I'm also getting strange errors related to missing classes. For example, using Spring Boot 2.5.5 version for an application that reads messages from the AWS SQS queue works fine, but when migrating this application to Spring Boot 3 version I start getting errors. Caused by: java.lang.NoClassDefFoundError: software/amazon/awssdk/awscore/client/builder/AwsClientBuilder
at java.base/java.lang.Class.getDeclaredConstructors0(Native Method)
at java.base/java.lang.Class.privateGetDeclaredConstructors(Class.java:3373)
at java.base/java.lang.Class.getConstructors(Class.java:2060)
at org.springframework.core.io.support.SpringFactoriesLoader$FactoryInstantiator.findConstructor(SpringFactoriesLoader.java:405)
at org.springframework.core.io.support.SpringFactoriesLoader$FactoryInstantiator.forClass(SpringFactoriesLoader.java:394)
at org.springframework.core.io.support.SpringFactoriesLoader.instantiateFactory(SpringFactoriesLoader.java:227)
... 104 more
Caused by: java.lang.ClassNotFoundException: software.amazon.awssdk.awscore.client.builder.AwsClientBuilder
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:641)
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:188)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:520)
... 110 more At the same time, I see here in the discussions that guys are actively experimenting with AWS SQS on Spring Boot version 3. I.e. it works for them. #628 Can you please help me understand the current compatibility of To better illustrate my problem I have created two repositories. One uses Spring Boot 2.5.5 (everything works fine here) and the second an absolutely identical repository (slight change in the configuration class), but with Spring Boot 3.0.6 version and here the application crashes with an error. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hi @akulik512, version 3.x will be compatible with Spring Boot 3. Currently there are only Release Candidates (see #572). Regards, |
Beta Was this translation helpful? Give feedback.
-
Hi @PatrickGotthard |
Beta Was this translation helpful? Give feedback.
Hi @akulik512,
version 3.x will be compatible with Spring Boot 3. Currently there are only Release Candidates (see #572).
Regards,
Patrick