Remove remaining build time initialization (logging, hibernate validator, netty, etc.) #927
Comments
I also encountered this problem when I added logback.xml to the Resource directory and the problem was restored when I deleted the logback.xml file |
With Buildpacks We are working to remove default build time initialization, and indeed adding |
I'm not sure but isn't it at least in case of the trigger duplicate of #625 |
@sdeleuze Aha, I'm sorry. I missed your comment #927 (comment) - that's what I tried to express. |
I am getting a similar error (using latest plugin from main) although it is for object instantiation instead of class initialization, for
|
You can use |
We are progressing on that one, with a collaboration with GraalVM team on Netty, but that will take more time than expected so I bring back this one to the backlog. |
Any resolve on the above i seem to be getting the same error |
[creator] [2/7] Performing analysis... [] (17.4s @ 1.60GB) |
@nyakaz73 Something is likely wrong with your setup since this is fixed out of the box by Spring Native for a long time. In the meantime, you can follow oracle/graal#4489 to see the proper resolution at GraalVM level. |
Spring Native is now superseded by Spring Boot 3 official native support, see the related reference documentation for more details. As a consequence, I am closing this issue, and recommend trying your use case with latest Spring Boot 3 version. If you still experience the issue reported here, please open an issue directly on the related Spring project (Spring Framework, Data, Security, Boot, Cloud, etc.) with a reproducer. Thanks for your contribution on the experimental Spring Native project, we hope you will enjoy the official native support introduced by Spring Boot 3. |
I tried to build image for my project using
mvn spring-boot:build-image
and it failed. Log snippet as following.My question is :
mvn spring-boot:build-image --trace-class-initialization
.The text was updated successfully, but these errors were encountered: