← All tasks
javaalibaba/spring-ai-alibaba #4195Not a task: already works

[BUG] Jackson version conflict: SAA should either remove explicit Jackson version or align with Spring AI

envgap__alibaba__spring-ai-alibaba-4195

01 / FAILURE SIGNATURE

As reported upstream

Exception in thread "main" java.lang.NoSuchMethodError: 'com.fasterxml.jackson.annotation.OptBoolean com.fasterxml.jackson.annotation.JsonProperty.isRequired()'
Not a benchmark task.
  • The project already builds and runs before the fix, so there is nothing to repair.

02 / ENVIRONMENT RECIPE

Base commit
9855708a879cc6126c06cbb520862884d5470d08
Manifest
spring-ai-alibaba-agent-framework/pom.xml
Reproduce
Awaiting issue-specific recipe
Run under trace
Awaiting a meaningful runtime command

03 / ORIGINAL ISSUE TEXT

alibaba/spring-ai-alibaba #4195 · read the original issue
### Is there an existing issue for this?

- [x] I have searched the existing issues

### Current Behavior

When I simply import the following two dependencies:

```
<dependency>
    <groupId>com.alibaba.cloud.ai</groupId>
    <artifactId>spring-ai-alibaba-agent-framework</artifactId>
    <version>1.1.2.0</version>
</dependency>

<dependency>
    <groupId>org.springframework.ai</groupId>
    <artifactId>spring-ai-starter-model-zhipuai</artifactId>
</dependency>
```
it triggers the following exception:

> Exception in thread "main" java.lang.NoSuchMethodError: 'com.fasterxml.jackson.annotation.OptBoolean com.fasterxml.jackson.annotation.JsonProperty.isRequired()'

It appears that SAA (spring-ai-alibaba-agent-framework) relies on Jackson 2.19.4 but does not include Jackson Annotations in its dependencies. As a result, the annotations still use version 2.17.0 imported by Spring AI.
SAA should either explicitly import Jackson Annotations or delegate the version management of Jackson to Spring AI.

### Expected Behavior

_No response_

### Steps To Reproduce

_No response_

### Environment

```markdown
Spring AI Alibaba version(s):
```

### Debug logs

_No response_

### Anything else?

_No response_
Continue on GitHub ↗

04 / LABELS

Labels from the report text only; not yet run

No supported category has been assigned.

Label rules and the text that matched
[]