Closed davidfrickert closed 3 years ago
Update: Ended up trying the "agent" to auto generate reflection file and it is now working, sorry for the pollution.
mvn package spring-boot:repackage
cd target
mkdir -p META-INF/native-image
java -agentlib:native-image-agent=config-output-dir=META-INF/native-image -jar GraalVMTest-1.0-SNAPSHOT.jar
# exercise a bit your app...
# then profit with output config files.
Describe the issue When attempting to use Micrometer AOP module to time function execution after starting native image it instantly crashes with
java.lang.NoSuchMethodError: java.lang.invoke.MethodHandle.apply()
(full stack trace below).I suspect this is a reflection issue, but I'm not seeing if it is my problem (missing configuration) or native image problem.
Steps to reproduce the issue Build
Run
Describe GraalVM and your environment:
More details Build
Run