-
Notifications
You must be signed in to change notification settings - Fork 46
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
New Error with AOT plugin 4.2.1: Cannot read field "channel" because "poolHandle" is null #902
Comments
What version of Micronaut is this application using? Any chance you can share a reproducer? I suspect we need an AOT release built against Micronaut 4.2 but not fully convinced yet. |
@melix we are using Micronaut 4.2.1. I'll see if I can simplify something to get a small reproducer. I'm not quite sure what is unique about this particular application versus the others we have which don't seem to encounter this issue. |
Alternatively, you can try to build the following branch of AOT: micronaut-projects/micronaut-aot#260 (edit, this is now on Run
|
We currently face this issue in production using Micronaut 4.3.6 (edit: still with 4.5). We have many declarative HttpClients in use, but only some instances of them produce above error. More stacktrace:
|
I believe the issue is from micronaut-http-client, not aot. And this is possibly a mitigation to the solution: https://github.com/openlibraryenvironment/dcb-service/blob/9ed96e96da799ebbe2b64292b31eed2f6d0356d4/dcb/src/main/resources/application.yml#L52 |
Expected Behavior
Executing HTTP requests should be successful
Actual Behaviour
We are seeing this exception (top of the stack trace shown) in one of our applications after updating to the 4.2.1 version of the Micronaut AOT plugin. Even disabling every optimization still seems to demostrate this issue. Reverting to 4.2.0 fixes the problem. This code executes several concurrent HTTP requests using a Flux. The requests do utilize a separate thread pool.
Steps To Reproduce
No response
Environment Information
No response
Example Application
No response
Version
io.micronaut.aot version 4.2.1
The text was updated successfully, but these errors were encountered: