Skip to content

Cannot resolve symbol for both RetryExceptionWrapper.class #171

@ENate

Description

@ENate

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)),
    }

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions