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
I'm trying to create a simple sample project that is very similar to the one you provided (springmvc-tomcat) using GraalVM 19.2.1
The build runs fine. However, when I run the final binary, it throws an exception
Jan 27, 2020 11:06:12 AM org.springframework.boot.SpringApplication reportFailure
SEVERE: Application run failed
org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.context.annotation.AnnotationConfigApplicationContext]: No default constructor found; nested exception is java.lang.NoSuchMethodException: org.springframework.context.annotation.AnnotationConfigApplicationContext.<init>
at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:145)
at org.springframework.boot.SpringApplication.createApplicationContext(SpringApplication.java:588)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:311)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1226)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1215)
at com.ak.graalvmdemo.GraalVMDemoApplication.main(GraalVMDemoApplication.java:10)
Caused by: java.lang.NoSuchMethodException: org.springframework.context.annotation.AnnotationConfigApplicationContext.<init>
at java.lang.Class.getConstructor0(DynamicHub.java:3082)
at java.lang.Class.getDeclaredConstructor(DynamicHub.java:2178)
at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:138)
... 5 more
I am using
spring-graal-native-feature at version 0.6.0 GitRef 275d9ca
SpringBoot 2.2.3
javac packed with GraalVM.
Is there anything I can do to make this work?
Thanks for your help,
André
The text was updated successfully, but these errors were encountered:
Hej,
I'm trying to create a simple sample project that is very similar to the one you provided (springmvc-tomcat) using GraalVM 19.2.1
The build runs fine. However, when I run the final binary, it throws an exception
I am using
Is there anything I can do to make this work?
Thanks for your help,
André
The text was updated successfully, but these errors were encountered: