You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Won't be able for now to create a Spring Boot Native image due to lack of support for @lazy annotation, which is extensively used to allow creating spring context aware jpa entity listeners, not using lazy would cause a circular ref, because the entity listener needs repositories which needs entityManager, which needs entityListeners
The following exception is thrown
Note that even if running in jvm by using the intellij to run the app as normal, it will fail, because the native image builder generates and places its aot processed classes in target/classes folder, which would then be read by the regular compile process of IntelliJ
The error happends exactly here:
It tries to build the proxy instance for ObjectRelationBo which is lazyly-required by EntityWithRelationListener
Note that even if the Spring team fixes the bug, it may be worth nothing that maybe it wouldn't here anyway, because, lazies would be resolved at compiled time, and maybe it wouldn't be able to handle circular reference, as it has been init all together at the same time (or maybe yes, if they use a metadata structure to handle circular refs just like ts-lollipop does)
Some work still pending on branch tmp/experiment-native-image (commit: e975f7f)
As of commit: (a0ca18f) The following applies
Won't be able for now to create a Spring Boot Native image due to lack of support for @lazy annotation, which is extensively used to allow creating spring context aware jpa entity listeners, not using lazy would cause a circular ref, because the entity listener needs repositories which needs entityManager, which needs entityListeners
The following exception is thrown
Note that even if running in jvm by using the intellij to run the app as normal, it will fail, because the native image builder generates and places its aot processed classes in target/classes folder, which would then be read by the regular compile process of IntelliJ
The error happends exactly here:
It tries to build the proxy instance for ObjectRelationBo which is lazyly-required by EntityWithRelationListener
Note that even if the Spring team fixes the bug, it may be worth nothing that maybe it wouldn't here anyway, because, lazies would be resolved at compiled time, and maybe it wouldn't be able to handle circular reference, as it has been init all together at the same time (or maybe yes, if they use a metadata structure to handle circular refs just like ts-lollipop does)
Some work still pending on branch tmp/experiment-native-image (commit: e975f7f)
Track issue spring-projects/spring-framework#30985
Remember: Run the agent with graalvm to find out at runtime possible dynamic content (used for example to find out required classes for aspectj
Command to launch native image in local
docker run --rm -p 8080:8080 --env OWGE_DB_URL='192.168.1.253:3306/owge_dev' --env OWGE_DB_USER=root --env OWGE_DB_PASS=1234 docker.io/library/game-rest:0.11.5-SNAPSHOT
The text was updated successfully, but these errors were encountered: