Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Native compilation fails when using the CircuitBreaker filter #2873

Closed
ThomasVitale opened this issue Feb 24, 2023 · 3 comments · Fixed by #2890
Closed

Native compilation fails when using the CircuitBreaker filter #2873

ThomasVitale opened this issue Feb 24, 2023 · 3 comments · Fixed by #2890
Assignees
Labels
Milestone

Comments

@ThomasVitale
Copy link

ThomasVitale commented Feb 24, 2023

Describe the bug
When using the CircuitBreaker filter in Spring Cloud Gateway, the application works correctly when running on the JVM, but it fails starting up when running as a native executable.

I can see that some property from the CircuitBreaker filter config in the route is failing during the binding phase, but I couldn't figure out which part exactly is creating this problem.

Spring Boot: 3.0.4
Spring Cloud: 2022.0.1
OS: macOS (aarch64), Ubuntu 22.04 (amd64)

Sample
Sample available here: https://github.com/ThomasVitale/gateway-circuit-breaker-graalvm

Error logs

***************************
APPLICATION FAILED TO START
***************************

Description:

Failed to bind properties under '' to org.springframework.cloud.gateway.filter.factory.SpringCloudCircuitBreakerFilterFactory$Config:

    Reason: java.lang.NoSuchMethodException: org.springframework.cloud.gateway.filter.factory.SpringCloudCircuitBreakerFilterFactory$Config.<init>()

Action:

Update your application's configuration
@OlgaMaciaszek
Copy link
Contributor

Hi @ThomasVitale, thanks for reporting the issue and providing a sample. I was able to reproduce the issue and will work on a fix.

@ThomasVitale
Copy link
Author

@OlgaMaciaszek thanks a lot for looking into the issue!

@saugion
Copy link

saugion commented Oct 31, 2023

I'm sorry to comment a closed issue, but i have the same error when I create a custom gateway filter. I'm using spring boot 3.1.5 and spring cloud 2022.0.4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
No open projects
Status: Done
Development

Successfully merging a pull request may close this issue.

3 participants