-
-
Notifications
You must be signed in to change notification settings - Fork 290
Newest release NoClassDefFoundError #363
Copy link
Copy link
Closed
Description
Just tried to update from 8.0.0 to the newest release (I wanted to see if this does anything on my end) but I can't launch my app anymore, as I get the following error during launch:
Caused by: java.lang.NoClassDefFoundError: org/apache/hc/client5/http/config/ConnectionConfig
at se.michaelthelin.spotify.SpotifyHttpManager.<init>(SpotifyHttpManager.java:79) ~[spotify-web-api-java-8.3.3.jar:na]
at se.michaelthelin.spotify.SpotifyHttpManager$Builder.build(SpotifyHttpManager.java:406) ~[spotify-web-api-java-8.3.3.jar:na]
at se.michaelthelin.spotify.SpotifyApi.<clinit>(SpotifyApi.java:77) ~[spotify-web-api-java-8.3.3.jar:na]
at se.michaelthelin.spotify.SpotifyApi$Builder.<init>(SpotifyApi.java:1888) ~[spotify-web-api-java-8.3.3.jar:na]
at spotify.api.SpotifyApiManager.createSpotifyApi(SpotifyApiManager.java:85) ~[spotify-dependencies-1.10.1.jar:na]
at spotify.api.SpotifyApiManager.spotifyApi(SpotifyApiManager.java:79) ~[spotify-dependencies-1.10.1.jar:na]
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:na]
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:na]
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:na]
at java.base/java.lang.reflect.Method.invoke(Method.java:566) ~[na:na]
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:154) ~[spring-beans-5.3.30.jar:5.3.30]
... 47 common frames omitted
Caused by: java.lang.ClassNotFoundException: org.apache.hc.client5.http.config.ConnectionConfig
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:581) ~[na:na]
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178) ~[na:na]
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522) ~[na:na]
... 58 common frames omitted
Disconnected from the target VM, address: '127.0.0.1:50695', transport: 'socket'
Process finished with exit code 1
I saw some mentions of Java 21. Is that the newest minimum required version? Because I'm still on 11.
Furthermore, I use Spring 2.7.7, so maybe it's some version conflict internally?
Reactions are currently unavailable