Error processing condition on org.springframework.ai.retry.autoconfigure.SpringAiRetryAutoConfiguration.retryTemplate

Open
#5,540 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
java, ollama, spring, spring-boot
Domain
ai, backend

Research direction

Start with SpringAiRetryAutoConfiguration.retryTemplate and the nested ClassNotFoundException for org.springframework.core.retry.RetryTemplate. Reproduce using Spring Boot 3.4.12, Spring AI 2.0.0-SNAPSHOT, Java 21, and Ollama, then inspect the dependency versions involved. Done means the chatbot application starts without the condition-processing error.

Written by the indexing model from the issue text.

Description

status: waiting-for-triage

Bug description
After migrating a chatbot application from Spring AI 1.0.0.-SNAPSHOT to 2.0.0-SNAPSHOT it fails to start with this error:
java.lang.IllegalStateException: Error processing condition on org.springframework.ai.retry.autoconfigure.SpringAiRetryAutoConfiguration.retryTemplate

Environment
Spring Boot 3.4.12
Spring AI 2.0.0-SNAPSHOT
Java 21
Ollama

** traces **
java.lang.IllegalStateException: Error processing condition on org.springframework.ai.retry.autoconfigure.SpringAiRetryAutoConfiguration.retryTemplate
at org.springframework.boot.autoconfigure.condition.SpringBootCondition.matches(SpringBootCondition.java:60) ~[spring-boot-autoconfigure-3.4.12.jar:3.4.12]
at org.springframework.context.annotation.ConditionEvaluator.shouldSkip(ConditionEvaluator.java:99) ~[spring-context-6.2.14.jar:6.2.14]
at org.springframework.context.annotation.ConfigurationClassBeanDefinitionReader.loadBeanDefinitionsForBeanMethod(ConfigurationClassBeanDefinitionReader.java:191) ~[spring-context-6.2.14.jar:6.2.14]
. . .
Caused by: java.lang.IllegalStateException: @ConditionalOnMissingBean did not specify a bean using type, name or annotation and the attempt to deduce the bean's type failed
. . .
Caused by: org.springframework.boot.autoconfigure.condition.OnBeanCondition$BeanTypeDeductionException: Failed to deduce bean type for org.springframework.ai.retry.autoconfigure.SpringAiRetryAutoConfiguration.retryTemplate
. . .
Caused by: java.lang.ClassNotFoundException: org.springframework.core.retry.RetryTemplate

Dominant language
Java
Stars
9.5k
Forks
2.9k
Avg merge
1d 10h
Merged PRs (30d)
5

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from spring-projects/spring-ai

All issues in spring-projects/spring-ai

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.