Skip to content

[Bug]: agentscope-core 1.0.11 自身的依赖管理 bug(同时依赖 Jackson 2.x 和需要 Jackson 3.x 的 json-schema-validator)。 #1100

Closed

Description

@MocCard

Bug Report: Jackson 2.x and 3.x mixed dependency causing NoClassDefFoundError
Environment
agentscope-core version: 1.0.11
Java version: 17
OS: Linux
Framework: JeecgBoot 3 (Spring Boot 3)
Description
agentscope-core:1.0.11 has a transitive dependency conflict between Jackson 2.x and Jackson 3.x, causing a fatal NoClassDefFoundError at runtime when ToolValidator attempts to validate tool inputs.

Root Cause
agentscope-core:1.0.11 declares both:

Jackson 2.x (direct or transitive):
com.fasterxml.jackson.core:jackson-databind:2.21.1
com.fasterxml.jackson.core:jackson-annotations:2.21.x
com.networknt:json-schema-validator:3.0.1, which depends on Jackson 3.x:
tools.jackson.core:jackson-databind:3.1.0
tools.jackson.core:jackson-dataformat-yaml:3.1.0
The problem is compounded by the fact that json-schema-validator:3.0.1’s POM does not declare tools.jackson.core:jackson-annotations as a dependency, so it is never pulled into the classpath.

At runtime, tools.jackson.databind.introspect.JacksonAnnotationIntrospector (from Jackson 3.x databind) attempts to load com.fasterxml.jackson.annotation.JsonSerializeAs — but this class only exists in Jackson 3.x annotations under the tools.jackson.annotation package. Since only Jackson 2.x annotations exist on the classpath, the JVM throws:

Activity

  1. added
    bug
    on Apr 2, 2026
  2. LearningGp commented on Apr 2, 2026

    @LearningGp
    Member

    The current impact is limited to compatibility issues with Spring Boot < 3.5.x. This will be fixed in the next release. Given that google-genai, anthropic-java, and dashscope-sdk-java all depend on Jackson 2.x, we will likely downgrade json-schema-validator from 3.0.1 to 2.0.0 to ensure better compatibility.

  3. added this to the 1.0.12 milestone on Apr 2, 2026
  4. added theissue type on Apr 3, 2026
  5. taoyameng commented on Apr 16, 2026

    @taoyameng

    真搞笑 依赖管理都没做好 开局就报错 开局劝退

  6. moved this from Backlog to In progress in AgentScope Javaon Apr 17, 2026
  7. added a commit that references this issue on Apr 20, 2026
    160b43a
  8. moved this from In progress to Done in AgentScope Javaon Apr 20, 2026
  9. added a commit that references this issue on May 21, 2026
    5fa8fe7
  10. added a commit that references this issue on Aug 12, 2026
    5b0dc60
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    Projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions