-
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 with Netty 4.1.44.Final #2050
Comments
HI @tovbinm I was able to verify creating and running an application using The |
@eginez thank you for looking into this. I will try debugging it further. The most confusing part for me is that the error does not provide any additional information which part of my code (or code of one of my dependencies) initializes the classes |
This exact issue still occurs in the below version when running native-image.
Both of the Below Commands Have Been Tried To Build a Native Image of Waterfall For Minecraft
Running just The error message for the netty issue is:
Using I get the errors
The full error message is located at this gist. Edit: I posted this as I have found no way to debug an image build given the options I have tried. I am not sure how to solve the issue and not handling the tracing of the initialization well is not what I believe to be intended design. |
I experienced the same exception when I use
|
I'm seeing the same thing with a basic hello world netty app using epoll native transport. |
Ran into this too and had to add:
|
@jamesward thanks! |
BTW, I was able to get this working on Netty 4.1.70 by adding (in addition to the ones above):
|
Error: Method 'io.netty.util.AbstractReferenceCounted.main' is declared as the main entry point but it can not be found. Make sure that class 'io.netty.util.AbstractReferenceCounted' is on the classpath and that method 'main(String[])' exists in that class. 求救 |
Howdy,
When I am trying to generate a native image on a project with Netty dependency I get the following error:
Are there any recommendations on how to troubleshoot this and find the offending class?
Additional info
The text was updated successfully, but these errors were encountered: