Open brianwyka opened 3 years ago
@ilopmar, seems like your area 🥇
Hey, would be glad to know if there's any progress on this issue please 🙏
I'm experiencing the same behavior with Micronaut 3.2.3
and JDK GraalVM CE 21.3.0 (Java 17.0.1)
.
@brianwyka Were you able to work around this somehow?
Thanks.
Sorry @cohenor, I have not tried this since the failure, nor have I worked on a workaround.
Sorry @cohenor, I have not tried this since the failure, nor have I worked on a workaround.
Gotcha, thanks for your response.
The issue is that by shading Netty all of the GraalVM native config has to be re-applied to the native version. A feature would need to be added like this one https://github.com/micronaut-projects/micronaut-core/blob/1a15f0b5aba53da56f8915fc904ae4b7512e6f15/http-netty/src/main/java/io/micronaut/http/netty/graal/HttpNettyFeature.java and
Thanks for reporting an issue, please review the task list below before submitting the issue. Your issue report will be closed if the issue is incomplete and the below tasks not completed.
NOTE: If you are unsure about something and the issue is more of a question a better place to ask questions is on Stack Overflow (https://stackoverflow.com/tags/micronaut) or Gitter (https://gitter.im/micronautfw/). DO NOT use the issue tracker to ask questions.
Task List
Expected Behaviour
The native image build should succeed
Actual Behaviour
Native image build fails with error:
.Example error (but not comprehensive)
Environment Information
Ubuntu 20.04
2.5.0
GraalVM ce Java 11 20.2.0
Example Application
https://github.com/brianwyka/micronaut-graal-micrometer-statsd
Steps to Reproduce
Attempted Resolutions
Updated the
native-image.properties
configuration to include:Then results in this:
The build succeeded when I removed the
io.micronaut.micrometer:micronaut-micrometer-registry-statsd
dependency.