Runnig with GraalVM 19.1.1 got errors below :
guanchao-yang opened this issue · 0 comments
guanchao-yang commented
- With dependency
org.springframework.boot:spring-boot-actuator-autoconfigure:jar:2.2.0.M4
in Spring Boot project,
erver.ManagementContextConfigurationImportSelector
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at java.util.concurrent.ForkJoinTask.getThrowableException(ForkJoinTask.java:593)
at java.util.concurrent.ForkJoinTask.get(ForkJoinTask.java:1005)
at com.oracle.svm.hosted.NativeImageGenerator.run(NativeImageGenerator.java:457)
at com.oracle.svm.hosted.NativeImageGeneratorRunner.buildImage(NativeImageGeneratorRunner.java:308)
at com.oracle.svm.hosted.NativeImageGeneratorRunner.build(NativeImageGeneratorRunner.java:446)
at com.oracle.svm.hosted.NativeImageGeneratorRunner.main(NativeImageGeneratorRunner.java:112)
Caused by: java.lang.IllegalStateException: No @CompilationHint found for import selector: org.springframework.boot.actuate.autoconfigure.web.server.ManagementContextConfigurationImportSelector
at org.springframework.boot.graal.type.Type.getHints(Type.java:744)
at org.springframework.boot.graal.support.ResourcesHandler.processType(ResourcesHandler.java:460)
at org.springframework.boot.graal.support.ResourcesHandler.processType(ResourcesHandler.java:504)
at org.springframework.boot.graal.support.ResourcesHandler.processType(ResourcesHandler.java:559)
at org.springframework.boot.graal.support.ResourcesHandler.processType(ResourcesHandler.java:559)
at org.springframework.boot.graal.support.ResourcesHandler.processType(ResourcesHandler.java:430)
at org.springframework.boot.graal.support.ResourcesHandler.verifyType(ResourcesHandler.java:426)
at org.springframework.boot.graal.support.ResourcesHandler.processSpringFactory(ResourcesHandler.java:378)
at org.springframework.boot.graal.support.ResourcesHandler.processSpringFactories(ResourcesHandler.java:278)
at org.springframework.boot.graal.support.ResourcesHandler.register(ResourcesHandler.java:90)
at org.springframework.boot.graal.support.SpringFeature.beforeAnalysis(SpringFeature.java:73)
at com.oracle.svm.hosted.NativeImageGenerator.lambda$runPointsToAnalysis$7(NativeImageGenerator.java:666)
at com.oracle.svm.hosted.FeatureHandler.forEachFeature(FeatureHandler.java:63)
at com.oracle.svm.hosted.NativeImageGenerator.runPointsToAnalysis(NativeImageGenerator.java:666)
at com.oracle.svm.hosted.NativeImageGenerator.doRun(NativeImageGenerator.java:522)
at com.oracle.svm.hosted.NativeImageGenerator.lambda$run$0(NativeImageGenerator.java:440)
at java.util.concurrent.ForkJoinTask$AdaptedRunnableAction.exec(ForkJoinTask.java:1386)
at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289)
at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1056)
at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1692)
at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:157)
Maybe org.springframework.boot.graal.type.Type missing consider annotation @org.springframework.core.annotation.Order
such as in @ImportSelector Class org.springframework.boot.actuate.autoconfigure.web.server.ManagementContextConfigurationImportSelector
:
@Order(Ordered.LOWEST_PRECEDENCE)
class ManagementContextConfigurationImportSelector implements DeferredImportSelector, BeanClassLoaderAware {
private ClassLoader classLoader;