-
Notifications
You must be signed in to change notification settings - Fork 1
Description
The issue I came across is that the constructor for UserDto can't be found when trying to register a new user. Calling the /user/registration endpoint triggers this. Associated method: UserRegistrationController.showRegistrationForm(UserDto userDto)
It seems to be a recently reported bug involving finding Beans.
Useful links found during investigation:
https://stackoverflow.com/questions/71146331/graalvm-native-image-build-fails-to-find-log4j-appender-class
https://simply-how.com/fix-graalvm-native-image-compilation-issues#section-4
Command used to generate my JSON config files.
/home/johann/.sdkman/candidates/java/22.3.1.r17-grl/bin/java -agentlib:native-image-agent=config-output-dir=/home/johann/Downloads/projects/comicreading/build/libs -jar -Dspring.profiles.active=dev comicreading-0.0.1-SNAPSHOT.jar
GraalVM also seems to try pull in Spring DevTools when making the image. That seems odd. Need to figure out why that happens.
Current version of GraalVM plugin is id 'org.graalvm.buildtools.native' version '0.9.19'