-
Notifications
You must be signed in to change notification settings - Fork 118
Open
Labels
Description
Describe the bug
Please provide details of the problem, including the version of Spring Cloud that you
are using.
Resilience4j version: spring cloud circuit breaker version: 3.0.1
Java version: 17+
I tried updating some legacy code to JDK 17 and spring boot 3.0.7. But I noticed that the following error is thrown:
Cannot resolve symbol for both RetryExceptionWrapper.class and CircuitBreakerOpenException . But CircuitBreakerOpenExceptionseems to be available via the
org.springframework.integration.handler.advice.RequestHandlerCircuitBreakerAdvice
dependency.
Code snippet is shown:
public Mono<MyModel> getSomeModelIdEtc(int id) {
// DONE Auto-generated method stub
return Mono.zip(
.......
someClass
.getSomeModelId(id)
.onErrorMap(RetryExceptionWrapper.class, Throwable::getCause)
.onErrorReturn(CircuitBreakerOpenException.class, getFallbackValue(id)),
}