agentscope-ai / agentscope-ai/agentscope-java
[Bug]: Dependency conflict with org.springframework.ai 2.0.0-M4 due to com.github.victools version mismatch
- Lingua principale
- Java
- Stelle
- 5.6k
- Fork
- 1.3k
- Merge medio
- 4g 12h
- PR unite (30g)
- 77
Descrizione
**AgentScope-Java is an open-source project. To involve a broader community, we recommend asking your questions in English.**
**Describe the bug**
There is a dependency conflict when using AgentScope 1.0.11 together with Spring AI 2.0.0-M4 (org.springframework.ai).
The conflict arises because org.springframework.ai:2.0.0-M4 depends on com.github.victools:jsonschema-generator (or related modules) at version 5.0.0, while AgentScope 1.0.11 appears to depend on a different/incompatible version of the same library. This leads to ClassNotFoundException, NoSuchMethodError, or runtime serialization issues when both libraries are present in the classpath.
**To Reproduce**
Steps to reproduce the behavior:
1. Create a new Spring Boot project.
2. Add the following dependencies to your pom.xml (Maven) or build.gradle (Gradle):
- io.agentscope:agentscope:1.0.11
- org.springframework.ai:spring-ai-core:2.0.0-M4 (or relevant Spring AI starter)
3. Attempt to build and run the application.
4. Observe the dependency resolution error or runtime exception related to com.github.victools.
**Error messages**
java.lang.NoSuchMethodError: 'com.fasterxml.jackson.databind.node.ObjectNode com.github.victools.jsonschema.generator.SchemaGenerator.generateSchema(java.lang.reflect.Type, java.lang.reflect.Type[])'
at io.agentscope.core.util.JsonSchemaUtils.generateSchemaFromType(JsonSchemaUtils.java:133)
at io.agentscope.core.tool.ToolSchemaGenerator.extractParameterInfo(ToolSchemaGenerator.java:118)
**Environment (please complete the following information):**
Guida per i contributori
Apri la guida per i contributori
Valutazione
Questa issue non è ancora stata valutata.