-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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-image] Fatal error with grpc-java #917
Comments
It looks like the initialization of
You can try delaying the initialization of that class by adding Building native images of netty based apps usually requires some preparation. Take a look at this article for details. |
Thanks for the help. I was able to fix this issue. |
@schneidersteve - Sorry to bother, I am actually encountering the same problem and wanted to view the solution you posted, but it looks like the links are dead - any chance you remember what you did? |
gRPC Java shades Netty and so the lookup for package io.netty.channel.socket.nio;
public class NioServerSocketChannel {} |
Thanks for the help @huntc. Just an fyi we started a project compiling the Google Cloud GraalVM configurations (for reflection, native calls, etc.) here: https://github.com/GoogleCloudPlatform/google-cloud-graalvm-support The project aims to get everything working out of the box; hope this helps! :) |
I get "a fatal error has been detected by the Java Runtime Environment" while building a native image with GraalVM 1.0.0-rc11 (rc10 too)
. It is a grpc java server (netty based) embedded into a Micronaut 1.0.3 based app. If i add the following content to the reflection.json
i get the following error
hs_err_pid2378.log
The text was updated successfully, but these errors were encountered: