-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
@ServerResponseFilter and @ServerRequestFilter fails on startup with NoSuchMethodException #29170
Comments
@mkouba this looks like an Arc problem. The generated code from RESTEasy Reactive looks like: @Unremovable
public class RequestLogger$GeneratedServerRequestFilter$filter implements ContainerRequestFilter {
private final RequestLogger delegate;
@Inject
public RequestLogger$GeneratedServerRequestFilter$filter(RequestLogger var1) {
this.delegate = var1;
}
public void filter(ContainerRequestContext var1) {
ResteasyReactiveContainerRequestContext var2 = (ResteasyReactiveContainerRequestContext)var1;
RequestLogger var3 = this.delegate;
ResteasyReactiveRequestContext var10000 = (ResteasyReactiveRequestContext)var2.getServerRequestContext();
PreventAbortResteasyReactiveContainerRequestContext var4 = new PreventAbortResteasyReactiveContainerRequestContext(var1);
var3.filter((ContainerRequestContext)var4);
}
} however as you can see from the stacktrace, Arc is looking for a no-args constructor |
/cc @FroMage, @stuartwdouglas |
Actually there may be more to it... I need to take another look |
It was a mistake on my part. #29171 fixes the issue |
Fix CDI scope for classes that declare @ServerRequestFilter
@gsmet this seems like a very nasty one that slipped through, so if possible, it would probably make sense to not wait long for |
@geoand I can do one on Tuesday but not before that. I think it should work, people can use 2.13.4.Final until then. |
Sounds good, thanks! And yes. |
Fixes: quarkusio#29170 (cherry picked from commit 5fcdbf4)
Describe the bug
When upgrading to Quarkus 2.14.10 startup of application with @ServerResponseFilter and @ServerRequestFilter crash on startup with
(Or org.acme.RequestLogger$GeneratedServerResponseFilter$filter.())
Expected behavior
The filters are created and app starts successfully
Actual behavior
Application crash on startup
How to Reproduce?
https://github.com/computerlove/NoSuchMethodException-GeneratedServerRequestFilter
The application crash on startup when running
mvn quarkus:dev
Output of
uname -a
orver
No response
Output of
java -version
17
GraalVM version (if different from Java)
No response
Quarkus version or git rev
2.14.0
Build tool (ie. output of
mvnw --version
orgradlew --version
)No response
Additional information
No response
The text was updated successfully, but these errors were encountered: