Error processing condition on org.springframework.ai.retry.autoconfigure.SpringAiRetryAutoConfiguration.retryTemplate
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
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
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from spring-projects/spring-ai
-
status: waiting-for-triage
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
spring-projects/spring-ai#7000 ·
-
status: waiting-for-triage
Difficulty 1/5 Under an hour Newbie friendliness 90/100
spring-projects/spring-ai#6998 ·
-
[Bug - MCP server] @McpTool error messages are emitted twice when the thrown exception has no cause Openstatus: waiting-for-triage
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
spring-projects/spring-ai#6948 · 1 comment · 1 reaction ·
-
status: waiting-for-triage
Difficulty 1/5 Under an hour Newbie friendliness 90/100
spring-projects/spring-ai#6940 · 1 comment ·
-
status: waiting-for-triage
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
spring-projects/spring-ai#6928 · 1 comment ·
All issues in spring-projects/spring-ai
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
bug needs triage
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
Difficulty 1/5 Under an hour Newbie friendliness 94/100
objectionary/hone-maven-plugin#1061 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
spring-projects/spring-modulith#1895 ·