-
Notifications
You must be signed in to change notification settings - Fork 1.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
[native-image] can't compile project which uses netty #353
Comments
enhanced verbosity:
command used to compile
|
Thank you for your report. Netty is a library that we looked at before and plan to fully support. As with other libraries netty's use of reflection and unsafe operations needs special handling for native image compilation. In our experiments we successfully run a subset of the netty test suite and will make that available soon. |
@domdorn can you provide a sample application? I'll give it a try. |
The |
I created a small example project which uses Vert.x (utilizes netty). It could be used to test native-image generation. I'm going to use this project to check when native image generation with netty will work. https://github.com/Jotschi/vertx-graalvm-native-image-test Update: I actually managed to get it working but I had to patch a few places in Netty and Vert.x here and there. |
A similar issue occurs when using log4j2. Using 1.0.0-rc2, it seems as though log4j2's (unused) dependency on lmax disruptor causes SubstrateVM to fall over for the same reasons as above.
|
I got the same error due to log4j2, adding Maybe the same bug as #494 |
@outofcoffee The log4j error that you reported here, which is slightly different than the original error in this issue, but which seems to be the same as in #494, should be fixed. See #494 (comment) for reference. |
@domdorn do you still get the original error that you reported with the latest GraalVM, i.e., 1.0.0 rc5? The |
I got the same error. I am writing simple TCP server using Netty and want to create native image using GraalVM.
|
@geek29 the fix will be included in rc6. |
Is this issue realy fixed ? (just asking) I'm using 1.0.0-rc6, with a project having netty and log4j2 dependencies.
Through
|
@SR-G your trace is slightly different than the original trace, so this is likely a different, but related issue. Could you open a separate issue with steps to reproduce? Thank you! |
Done in #671. |
I tried to build one of my simplest apps with native-image (a program that fetches mail from imap inboxes, parses them and then calls a web endpoint..
Apparently, graal doesn't like netty (and javax.mail.MessagingException as I had to manually copy it into my sources)
if required, I can provide a sample application.
the jar that includes ReferenceCountedOpenSslServerContext is in the classpath.. looks like it has problems with inner-classes ?
The text was updated successfully, but these errors were encountered: