ChatClientInputContentObservationFilter no such class
Caused by: java.lang.ClassNotFoundException: org.springframework.ai.chat.client.observation.ChatClientInputContentObservationFilter at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:641) ~[na:na] at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:188) ~[na:na] at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:525) ~[na:na]
Please provide a more specific code snippet that reproduces the problem, and the version of the framework you are currently using
Please provide a more specific code snippet that reproduces the problem, and the version of the framework you are currently using
Thank you, the issue has been resolved. It was caused by mismatched versions of two dependencies
may I ask what is the two dependencies specifically in your case?
I have a similar issue with Spring 3.4.12 and Spring AI 1.1.2. The application fails to start.
java.lang.IllegalStateException: Error processing condition on org.springframework.ai.autoconfigure.chat.client.ChatClientAutoConfiguration.chatClientBuilder at org.springframework.boot.autoconfigure.condition.SpringBootCondition.matches(SpringBootCondition.java:60) ~[spring-boot-autoconfigure-3.4.12.jar:3.4.12] . . . Caused by: java.lang.IllegalStateException: Failed to introspect Class [org.springframework.ai.autoconfigure.chat.client.ChatClientAutoConfiguration] from ClassLoader [jdk.internal.loader.ClassLoaders$AppClassLoader@38cccef] at org.springframework.util.ReflectionUtils.getDeclaredMethods(ReflectionUtils.java:483) ~[spring-core-6.2.14.jar:6.2.14] . . . Caused by: java.lang.NoClassDefFoundError: org/springframework/ai/chat/client/observation/ChatClientInputContentObservationFilter . . . Caused by: java.lang.ClassNotFoundException: org.springframework.ai.chat.client.observation.ChatClientInputContentObservationFilter