Skip to content
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

Fix GraalVM native image build error #9593

Merged
merged 1 commit into from Sep 23, 2019
Merged

Commits on Sep 22, 2019

  1. Fix GraalVM native image build error

    See micronaut-projects/micronaut-grpc#8:
    ```
    Error: Class that is marked for delaying initialization to run time got initialized during image building: io.netty.handler.codec.http2.Http2CodecUtil. Try marking this class for build-time initialization with --initialize-at-build-time=io.netty.handler.codec.http2.Http2CodecUtil
    Error: Use -H:+ReportExceptionStackTraces to print stacktrace of underlying exception
    Error: Image build request failed with exit status 1
    ```
    
    After debugging, it seems the culprit is `io.netty.handler.codec.http2.Http2ClientUpgradeCodec`, which also needs runtime initialisation.
    pete-woods committed Sep 22, 2019
    Copy the full SHA
    d45d21a View commit details
    Browse the repository at this point in the history