graalvm / native-build-tools

Native-image plugins for various build tools
https://graalvm.github.io/native-build-tools/
Other
366 stars 58 forks source link

Graalvm 22.2.0 fails on nativeBuild for Micronaut 3.6.0 #287

Closed ThraaxSession closed 2 years ago

ThraaxSession commented 2 years ago

Describe the bug When I run

gradlew clean nativeRun -d

It seeems to be an issue with logback. How can I solve it?

it fails hard.

To Reproduce Hard to tell what product has an issue.

Expected behavior The native build works fine.

Logs

2022-08-13T12:48:06.972+0200 [QUIET] [system.out] [2/7] Performing analysis...  [******]                                                                  (31,4s @ 3,26GB)
2022-08-13T12:48:06.975+0200 [QUIET] [system.out]   21.842 (93,94%) of 23.252 classes reachable
2022-08-13T12:48:06.986+0200 [QUIET] [system.out]   33.378 (65,78%) of 50.741 fields reachable
2022-08-13T12:48:07.054+0200 [QUIET] [system.out]  106.114 (63,05%) of 168.296 methods reachable
2022-08-13T12:48:07.054+0200 [QUIET] [system.out]    1.099 classes,   856 fields, and 3.831 methods registered for reflection
2022-08-13T12:48:07.054+0200 [QUIET] [system.out]        2 native libraries: psapi, winhttp
2022-08-13T12:48:07.058+0200 [QUIET] [system.out]
2022-08-13T12:48:07.061+0200 [ERROR] [system.err] 2 fatal errors detected:
2022-08-13T12:48:07.061+0200 [ERROR] [system.err] Fatal error: org.graalvm.compiler.debug.GraalError: com.oracle.graal.pointsto.constraints.UnsupportedFeatureException: Detected a started Thread in the image heap. Threads running in the image generator are no longer running at image runtime.  To see how this object got instantiated use --trace-object-instantiation=java.lang.Thread. The object was probably created by a class initializer and is reachable from a static field. You can request class initialization at image runtime by using the option --initialize-at-run-time=<class-name>. Or you can write your own initialization methods and call them explicitly from your main entry point.
2022-08-13T12:48:07.061+0200 [ERROR] [system.err]       at org.graalvm.nativeimage.pointsto/com.oracle.graal.pointsto.util.AnalysisFuture.setException(AnalysisFuture.java:49)
2022-08-13T12:48:07.061+0200 [ERROR] [system.err]       at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:269)
2022-08-13T12:48:07.061+0200 [ERROR] [system.err]       at org.graalvm.nativeimage.pointsto/com.oracle.graal.pointsto.util.AnalysisFuture.ensureDone(AnalysisFuture.java:63)
2022-08-13T12:48:07.062+0200 [ERROR] [system.err]       at org.graalvm.nativeimage.pointsto/com.oracle.graal.pointsto.heap.ImageHeapScanner.lambda$postTask$9(ImageHeapScanner.java:611)
2022-08-13T12:48:07.062+0200 [ERROR] [system.err]       at org.graalvm.nativeimage.pointsto/com.oracle.graal.pointsto.util.CompletionExecutor.executeCommand(CompletionExecutor.java:193)
2022-08-13T12:48:07.062+0200 [ERROR] [system.err]       at org.graalvm.nativeimage.pointsto/com.oracle.graal.pointsto.util.CompletionExecutor.lambda$executeService$0(CompletionExecutor.java:177)
2022-08-13T12:48:07.062+0200 [ERROR] [system.err]       at java.base/java.util.concurrent.ForkJoinTask$RunnableExecuteAction.exec(ForkJoinTask.java:1426)
2022-08-13T12:48:07.062+0200 [ERROR] [system.err]       at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:290)
2022-08-13T12:48:07.062+0200 [ERROR] [system.err]       at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1020)
2022-08-13T12:48:07.062+0200 [ERROR] [system.err]       at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1656)
2022-08-13T12:48:07.062+0200 [ERROR] [system.err]       at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1594)
2022-08-13T12:48:07.062+0200 [ERROR] [system.err]       at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:183)
2022-08-13T12:48:07.062+0200 [ERROR] [system.err] Caused by: com.oracle.graal.pointsto.constraints.UnsupportedFeatureException: Detected a started Thread in the image heap. Threads running in the image generator are no longer running at image runtime.  To see how this object got instantiated use --trace-object-instantiation=java.lang.Thread. The object was probably created by a class initializer and is reachable from a static field. You can request class initialization at image runtime by using the option --initialize-at-run-time=<class-name>. Or you can write your own initialization methods and call them explicitly from your main entry point.
2022-08-13T12:48:07.062+0200 [ERROR] [system.err]       at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.image.DisallowedImageHeapObjectFeature.error(DisallowedImageHeapObjectFeature.java:173)
2022-08-13T12:48:07.062+0200 [ERROR] [system.err]       at org.graalvm.nativeimage.builder/com.oracle.svm.core.image.DisallowedImageHeapObjects.check(DisallowedImageHeapObjects.java:74)
2022-08-13T12:48:07.062+0200 [ERROR] [system.err]       at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.image.DisallowedImageHeapObjectFeature.replacer(DisallowedImageHeapObjectFeature.java:149)
2022-08-13T12:48:07.062+0200 [ERROR] [system.err]       at org.graalvm.nativeimage.pointsto/com.oracle.graal.pointsto.meta.AnalysisUniverse.replaceObject(AnalysisUniverse.java:583)
2022-08-13T12:48:07.062+0200 [ERROR] [system.err]       at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.ameta.AnalysisConstantReflectionProvider.replaceObject(AnalysisConstantReflectionProvider.java:257)
2022-08-13T12:48:07.062+0200 [ERROR] [system.err]       at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.ameta.AnalysisConstantReflectionProvider.interceptValue(AnalysisConstantReflectionProvider.java:228)
2022-08-13T12:48:07.062+0200 [ERROR] [system.err]       at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.heap.SVMImageHeapScanner.transformFieldValue(SVMImageHeapScanner.java:126)
2022-08-13T12:48:07.062+0200 [ERROR] [system.err]       at org.graalvm.nativeimage.pointsto/com.oracle.graal.pointsto.heap.ImageHeapScanner.onFieldValueReachable(ImageHeapScanner.java:331)
2022-08-13T12:48:07.062+0200 [ERROR] [system.err]       at org.graalvm.nativeimage.pointsto/com.oracle.graal.pointsto.heap.ImageHeapScanner.lambda$createImageHeapObject$3(ImageHeapScanner.java:272)
2022-08-13T12:48:07.062+0200 [ERROR] [system.err]       at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
2022-08-13T12:48:07.062+0200 [ERROR] [system.err]       ... 10 more
2022-08-13T12:48:07.062+0200 [ERROR] [system.err] Fatal error: org.graalvm.compiler.debug.GraalError: com.oracle.graal.pointsto.constraints.UnsupportedFeatureException: Detected a started Thread in the image heap. Threads running in the image generator are no longer running at image runtime.  To see how this object got instantiated use --trace-object-instantiation=java.lang.Thread. The object was probably created by a class initializer and is reachable from a static field. You can request class initialization at image runtime by using the option --initialize-at-run-time=<class-name>. Or you can write your own initialization methods and call them explicitly from your main entry point.
2022-08-13T12:48:07.062+0200 [ERROR] [system.err]       at org.graalvm.nativeimage.pointsto/com.oracle.graal.pointsto.util.AnalysisFuture.setException(AnalysisFuture.java:49)
2022-08-13T12:48:07.062+0200 [ERROR] [system.err]       at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:269)
2022-08-13T12:48:07.062+0200 [ERROR] [system.err]       at org.graalvm.nativeimage.pointsto/com.oracle.graal.pointsto.util.AnalysisFuture.ensureDone(AnalysisFuture.java:63)
2022-08-13T12:48:07.062+0200 [ERROR] [system.err]       at org.graalvm.nativeimage.pointsto/com.oracle.graal.pointsto.heap.ImageHeapScanner.lambda$postTask$9(ImageHeapScanner.java:611)
2022-08-13T12:48:07.062+0200 [ERROR] [system.err]       at org.graalvm.nativeimage.pointsto/com.oracle.graal.pointsto.util.CompletionExecutor.executeCommand(CompletionExecutor.java:193)
2022-08-13T12:48:07.062+0200 [ERROR] [system.err]       at org.graalvm.nativeimage.pointsto/com.oracle.graal.pointsto.util.CompletionExecutor.lambda$executeService$0(CompletionExecutor.java:177)
2022-08-13T12:48:07.062+0200 [ERROR] [system.err]       at java.base/java.util.concurrent.ForkJoinTask$RunnableExecuteAction.exec(ForkJoinTask.java:1426)
2022-08-13T12:48:07.062+0200 [ERROR] [system.err]       at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:290)
2022-08-13T12:48:07.063+0200 [ERROR] [system.err]       at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1020)
2022-08-13T12:48:07.063+0200 [ERROR] [system.err]       at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1656)
2022-08-13T12:48:07.063+0200 [ERROR] [system.err]       at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1594)
2022-08-13T12:48:07.063+0200 [ERROR] [system.err]       at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:183)
2022-08-13T12:48:07.063+0200 [ERROR] [system.err] Caused by: com.oracle.graal.pointsto.constraints.UnsupportedFeatureException: Detected a started Thread in the image heap. Threads running in the image generator are no longer running at image runtime.  To see how this object got instantiated use --trace-object-instantiation=java.lang.Thread. The object was probably created by a class initializer and is reachable from a static field. You can request class initialization at image runtime by using the option --initialize-at-run-time=<class-name>. Or you can write your own initialization methods and call them explicitly from your main entry point.
2022-08-13T12:48:07.063+0200 [ERROR] [system.err]       at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.image.DisallowedImageHeapObjectFeature.error(DisallowedImageHeapObjectFeature.java:173)
2022-08-13T12:48:07.063+0200 [ERROR] [system.err]       at org.graalvm.nativeimage.builder/com.oracle.svm.core.image.DisallowedImageHeapObjects.check(DisallowedImageHeapObjects.java:74)
2022-08-13T12:48:07.063+0200 [ERROR] [system.err]       at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.image.DisallowedImageHeapObjectFeature.replacer(DisallowedImageHeapObjectFeature.java:149)
2022-08-13T12:48:07.063+0200 [ERROR] [system.err]       at org.graalvm.nativeimage.pointsto/com.oracle.graal.pointsto.meta.AnalysisUniverse.replaceObject(AnalysisUniverse.java:583)
2022-08-13T12:48:07.063+0200 [QUIET] [system.out] ------------------------------------------------------------------------------------------------------------------------
2022-08-13T12:48:07.063+0200 [ERROR] [system.err]       at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.ameta.AnalysisConstantReflectionProvider.replaceObject(AnalysisConstantReflectionProvider.java:257)
2022-08-13T12:48:07.063+0200 [QUIET] [system.out]
2022-08-13T12:48:07.063+0200 [ERROR] [system.err]       at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.ameta.AnalysisConstantReflectionProvider.interceptValue(AnalysisConstantReflectionProvider.java:228)
2022-08-13T12:48:07.063+0200 [ERROR] [system.err]       at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.heap.SVMImageHeapScanner.transformFieldValue(SVMImageHeapScanner.java:126)
2022-08-13T12:48:07.063+0200 [ERROR] [system.err]       at org.graalvm.nativeimage.pointsto/com.oracle.graal.pointsto.heap.ImageHeapScanner.onFieldValueReachable(ImageHeapScanner.java:331)
2022-08-13T12:48:07.063+0200 [ERROR] [system.err]       at org.graalvm.nativeimage.pointsto/com.oracle.graal.pointsto.heap.ImageHeapScanner.lambda$createImageHeapObject$3(ImageHeapScanner.java:272)
2022-08-13T12:48:07.063+0200 [ERROR] [system.err]       at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
2022-08-13T12:48:07.063+0200 [ERROR] [system.err]       ... 10 more
2022-08-13T12:48:07.065+0200 [QUIET] [system.out]                         4,7s (10,3% of total time) in 25 GCs | Peak RSS: 6,64GB | CPU load: 7,23
2022-08-13T12:48:07.065+0200 [QUIET] [system.out] ========================================================================================================================
2022-08-13T12:48:07.065+0200 [QUIET] [system.out] Failed generating 'SpaceUp-Server' after 44,7s.
2022-08-13T12:48:08.127+0200 [ERROR] [system.err] Error: Image build request failed with exit status 1
2022-08-13T12:48:08.136+0200 [DEBUG] [org.gradle.process.internal.DefaultExecHandle] Changing state to: FAILED
2022-08-13T12:48:08.136+0200 [DEBUG] [org.gradle.process.internal.DefaultExecHandle] Process 'command 'D:\Software\graalvm-ce-java11-windows-amd64-22.2.0\graalvm-ce-java11-22.2.0\bin\native-image.cmd'' finished with exit value 1 (state: FAILED)

gradle graalvm configuration:

graalvmNative {
    binaries {
        main {
            imageName.set('SpaceUp-Server')
            buildArgs.add('--verbose')
            buildArgs.add('--trace-object-instantiation=java.lang.Thread')
        }
    }
}
2022-08-13T13:01:26.154+0200 [ERROR] [system.err] 3 fatal errors detected:
2022-08-13T13:01:26.154+0200 [ERROR] [system.err] Fatal error: org.graalvm.compiler.debug.GraalError: com.oracle.graal.pointsto.constraints.UnsupportedFeatureException: Detected a started Thread in the image heap. Threads running in the image generator are no longer running at image runtime.  Object has been initialized by the io.micronaut.runtime.Micronaut class initializer with a trace:
2022-08-13T13:01:26.154+0200 [ERROR] [system.err]       at java.lang.Thread.<init>(Thread.java:704)
2022-08-13T13:01:26.155+0200 [ERROR] [system.err]       at java.util.concurrent.Executors$DefaultThreadFactory.newThread(Executors.java:629)
2022-08-13T13:01:26.155+0200 [ERROR] [system.err]       at ch.qos.logback.core.util.ExecutorServiceUtil$1.newThread(ExecutorServiceUtil.java:42)
2022-08-13T13:01:26.155+0200 [ERROR] [system.err]       at java.util.concurrent.ThreadPoolExecutor$Worker.<init>(ThreadPoolExecutor.java:623)
2022-08-13T13:01:26.155+0200 [ERROR] [system.err]       at java.util.concurrent.ThreadPoolExecutor.addWorker(ThreadPoolExecutor.java:912)
2022-08-13T13:01:26.155+0200 [ERROR] [system.err]       at java.util.concurrent.ThreadPoolExecutor.ensurePrestart(ThreadPoolExecutor.java:1583)
2022-08-13T13:01:26.155+0200 [ERROR] [system.err]       at java.util.concurrent.ScheduledThreadPoolExecutor.delayedExecute(ScheduledThreadPoolExecutor.java:346)
2022-08-13T13:01:26.155+0200 [ERROR] [system.err]       at java.util.concurrent.ScheduledThreadPoolExecutor.scheduleAtFixedRate(ScheduledThreadPoolExecutor.java:632)
2022-08-13T13:01:26.155+0200 [ERROR] [system.err]       at ch.qos.logback.classic.joran.action.ConfigurationAction.processScanAttrib(ConfigurationAction.java:119)
2022-08-13T13:01:26.155+0200 [ERROR] [system.err]       at ch.qos.logback.classic.joran.action.ConfigurationAction.begin(ConfigurationAction.java:62)
2022-08-13T13:01:26.155+0200 [ERROR] [system.err]       at ch.qos.logback.core.joran.spi.Interpreter.callBeginAction(Interpreter.java:269)
2022-08-13T13:01:26.155+0200 [ERROR] [system.err]       at ch.qos.logback.core.joran.spi.Interpreter.startElement(Interpreter.java:145)
2022-08-13T13:01:26.155+0200 [ERROR] [system.err]       at ch.qos.logback.core.joran.spi.Interpreter.startElement(Interpreter.java:128)
2022-08-13T13:01:26.155+0200 [ERROR] [system.err]       at ch.qos.logback.core.joran.spi.EventPlayer.play(EventPlayer.java:50)
2022-08-13T13:01:26.155+0200 [ERROR] [system.err]       at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:165)
2022-08-13T13:01:26.155+0200 [ERROR] [system.err]       at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:152)
2022-08-13T13:01:26.155+0200 [ERROR] [system.err]       at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:110)
2022-08-13T13:01:26.155+0200 [ERROR] [system.err]       at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:53)
2022-08-13T13:01:26.155+0200 [ERROR] [system.err]       at ch.qos.logback.classic.util.ContextInitializer.configureByResource(ContextInitializer.java:64)
2022-08-13T13:01:26.155+0200 [ERROR] [system.err]       at ch.qos.logback.classic.util.ContextInitializer.autoConfig(ContextInitializer.java:134)
2022-08-13T13:01:26.155+0200 [ERROR] [system.err]       at org.slf4j.impl.StaticLoggerBinder.init(StaticLoggerBinder.java:84)
2022-08-13T13:01:26.155+0200 [ERROR] [system.err]       at org.slf4j.impl.StaticLoggerBinder.<clinit>(StaticLoggerBinder.java:55)
2022-08-13T13:01:26.155+0200 [ERROR] [system.err]       at org.slf4j.LoggerFactory.bind(LoggerFactory.java:150)
2022-08-13T13:01:26.155+0200 [ERROR] [system.err]       at org.slf4j.LoggerFactory.performInitialization(LoggerFactory.java:124)
2022-08-13T13:01:26.155+0200 [ERROR] [system.err]       at org.slf4j.LoggerFactory.getILoggerFactory(LoggerFactory.java:417)
2022-08-13T13:01:26.155+0200 [ERROR] [system.err]       at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:362)
2022-08-13T13:01:26.155+0200 [ERROR] [system.err]       at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:388)
2022-08-13T13:01:26.155+0200 [ERROR] [system.err]       at io.micronaut.runtime.Micronaut.<clinit>(Micronaut.java:53)
2022-08-13T13:01:26.061+0200 [QUIET] [system.out] [2/7] Performing analysis...  [******]                                                                  (31,4s @ 3,58GB)
2022-08-13T13:01:26.066+0200 [QUIET] [system.out]   21.835 (93,93%) of 23.245 classes reachable
2022-08-13T13:01:26.076+0200 [QUIET] [system.out]   33.367 (65,77%) of 50.731 fields reachable
2022-08-13T13:01:26.148+0200 [QUIET] [system.out]  106.069 (63,04%) of 168.265 methods reachable
2022-08-13T13:01:26.148+0200 [QUIET] [system.out]    1.099 classes,   856 fields, and 3.831 methods registered for reflection
2022-08-13T13:01:26.148+0200 [QUIET] [system.out]        2 native libraries: psapi, winhttp
2022-08-13T13:01:26.152+0200 [QUIET] [system.out]
2022-08-13T13:01:26.154+0200 [ERROR] [system.err] 3 fatal errors detected:
2022-08-13T13:01:26.154+0200 [ERROR] [system.err] Fatal error: org.graalvm.compiler.debug.GraalError: com.oracle.graal.pointsto.constraints.UnsupportedFeatureException: Detected a started Thread in the image heap. Threads running in the image generator are no longer running at image runtime.  Object has been initialized by the io.micronaut.runtime.Micronaut class initializer with a trace:
2022-08-13T13:01:26.154+0200 [ERROR] [system.err]       at java.lang.Thread.<init>(Thread.java:704)
2022-08-13T13:01:26.155+0200 [ERROR] [system.err]       at java.util.concurrent.Executors$DefaultThreadFactory.newThread(Executors.java:629)
2022-08-13T13:01:26.155+0200 [ERROR] [system.err]       at ch.qos.logback.core.util.ExecutorServiceUtil$1.newThread(ExecutorServiceUtil.java:42)
2022-08-13T13:01:26.155+0200 [ERROR] [system.err]       at java.util.concurrent.ThreadPoolExecutor$Worker.<init>(ThreadPoolExecutor.java:623)
2022-08-13T13:01:26.155+0200 [ERROR] [system.err]       at java.util.concurrent.ThreadPoolExecutor.addWorker(ThreadPoolExecutor.java:912)
2022-08-13T13:01:26.155+0200 [ERROR] [system.err]       at java.util.concurrent.ThreadPoolExecutor.ensurePrestart(ThreadPoolExecutor.java:1583)
2022-08-13T13:01:26.155+0200 [ERROR] [system.err]       at java.util.concurrent.ScheduledThreadPoolExecutor.delayedExecute(ScheduledThreadPoolExecutor.java:346)
2022-08-13T13:01:26.155+0200 [ERROR] [system.err]       at java.util.concurrent.ScheduledThreadPoolExecutor.scheduleAtFixedRate(ScheduledThreadPoolExecutor.java:632)
2022-08-13T13:01:26.155+0200 [ERROR] [system.err]       at ch.qos.logback.classic.joran.action.ConfigurationAction.processScanAttrib(ConfigurationAction.java:119)
2022-08-13T13:01:26.155+0200 [ERROR] [system.err]       at ch.qos.logback.classic.joran.action.ConfigurationAction.begin(ConfigurationAction.java:62)
2022-08-13T13:01:26.155+0200 [ERROR] [system.err]       at ch.qos.logback.core.joran.spi.Interpreter.callBeginAction(Interpreter.java:269)
2022-08-13T13:01:26.155+0200 [ERROR] [system.err]       at ch.qos.logback.core.joran.spi.Interpreter.startElement(Interpreter.java:145)
2022-08-13T13:01:26.155+0200 [ERROR] [system.err]       at ch.qos.logback.core.joran.spi.Interpreter.startElement(Interpreter.java:128)
2022-08-13T13:01:26.155+0200 [ERROR] [system.err]       at ch.qos.logback.core.joran.spi.EventPlayer.play(EventPlayer.java:50)
2022-08-13T13:01:26.155+0200 [ERROR] [system.err]       at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:165)
2022-08-13T13:01:26.155+0200 [ERROR] [system.err]       at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:152)
2022-08-13T13:01:26.155+0200 [ERROR] [system.err]       at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:110)
2022-08-13T13:01:26.155+0200 [ERROR] [system.err]       at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:53)
2022-08-13T13:01:26.155+0200 [ERROR] [system.err]       at ch.qos.logback.classic.util.ContextInitializer.configureByResource(ContextInitializer.java:64)
2022-08-13T13:01:26.155+0200 [ERROR] [system.err]       at ch.qos.logback.classic.util.ContextInitializer.autoConfig(ContextInitializer.java:134)
2022-08-13T13:01:26.155+0200 [ERROR] [system.err]       at org.slf4j.impl.StaticLoggerBinder.init(StaticLoggerBinder.java:84)
2022-08-13T13:01:26.155+0200 [ERROR] [system.err]       at org.slf4j.impl.StaticLoggerBinder.<clinit>(StaticLoggerBinder.java:55)
2022-08-13T13:01:26.155+0200 [ERROR] [system.err]       at org.slf4j.LoggerFactory.bind(LoggerFactory.java:150)
2022-08-13T13:01:26.155+0200 [ERROR] [system.err]       at org.slf4j.LoggerFactory.performInitialization(LoggerFactory.java:124)
2022-08-13T13:01:26.155+0200 [ERROR] [system.err]       at org.slf4j.LoggerFactory.getILoggerFactory(LoggerFactory.java:417)
2022-08-13T13:01:26.155+0200 [ERROR] [system.err]       at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:362)
2022-08-13T13:01:26.155+0200 [ERROR] [system.err]       at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:388)
2022-08-13T13:01:26.155+0200 [ERROR] [system.err]       at io.micronaut.runtime.Micronaut.<clinit>(Micronaut.java:53)
2022-08-13T13:01:26.155+0200 [ERROR] [system.err] . Try avoiding to initialize the class that caused initialization of the Thread. The object was probably created by a class initializer and is reachable from a static field. You can request class initialization at image runtime by using the option --initialize-at-run-time=<class-name>. Or you can write your own initialization methods and call them explicitly from your main entry point.
2022-08-13T13:01:26.155+0200 [ERROR] [system.err]       at org.graalvm.nativeimage.pointsto/com.oracle.graal.pointsto.util.AnalysisFuture.setException(AnalysisFuture.java:49)
2022-08-13T13:01:26.155+0200 [ERROR] [system.err]       at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:269)
2022-08-13T13:01:26.155+0200 [ERROR] [system.err]       at org.graalvm.nativeimage.pointsto/com.oracle.graal.pointsto.util.AnalysisFuture.ensureDone(AnalysisFuture.java:63)
2022-08-13T13:01:26.155+0200 [ERROR] [system.err]       at org.graalvm.nativeimage.pointsto/com.oracle.graal.pointsto.heap.ImageHeapScanner.lambda$postTask$9(ImageHeapScanner.java:611)
2022-08-13T13:01:26.156+0200 [ERROR] [system.err]       at org.graalvm.nativeimage.pointsto/com.oracle.graal.pointsto.util.CompletionExecutor.executeCommand(CompletionExecutor.java:193)
2022-08-13T13:01:26.156+0200 [ERROR] [system.err]       at org.graalvm.nativeimage.pointsto/com.oracle.graal.pointsto.util.CompletionExecutor.lambda$executeService$0(CompletionExecutor.java:177)
2022-08-13T13:01:26.156+0200 [ERROR] [system.err]       at java.base/java.util.concurrent.ForkJoinTask$RunnableExecuteAction.exec(ForkJoinTask.java:1426)
2022-08-13T13:01:26.156+0200 [ERROR] [system.err]       at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:290)
2022-08-13T13:01:26.156+0200 [ERROR] [system.err]       at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1020)
2022-08-13T13:01:26.156+0200 [ERROR] [system.err]       at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1656)
2022-08-13T13:01:26.156+0200 [ERROR] [system.err]       at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1594)
2022-08-13T13:01:26.156+0200 [ERROR] [system.err]       at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:183)
2022-08-13T13:01:26.156+0200 [ERROR] [system.err] Caused by: com.oracle.graal.pointsto.constraints.UnsupportedFeatureException: Detected a started Thread in the image heap. Threads running in the image generator are no longer running at image runtime.  Object has been initialized by the io.micronaut.runtime.Micronaut class initializer with a trace:
2022-08-13T13:01:26.156+0200 [ERROR] [system.err]       at java.lang.Thread.<init>(Thread.java:704)
2022-08-13T13:01:26.156+0200 [ERROR] [system.err]       at java.util.concurrent.Executors$DefaultThreadFactory.newThread(Executors.java:629)
2022-08-13T13:01:26.156+0200 [ERROR] [system.err]       at ch.qos.logback.core.util.ExecutorServiceUtil$1.newThread(ExecutorServiceUtil.java:42)
2022-08-13T13:01:26.156+0200 [ERROR] [system.err]       at java.util.concurrent.ThreadPoolExecutor$Worker.<init>(ThreadPoolExecutor.java:623)
2022-08-13T13:01:26.156+0200 [ERROR] [system.err]       at java.util.concurrent.ThreadPoolExecutor.addWorker(ThreadPoolExecutor.java:912)
2022-08-13T13:01:26.156+0200 [ERROR] [system.err]       at java.util.concurrent.ThreadPoolExecutor.ensurePrestart(ThreadPoolExecutor.java:1583)
2022-08-13T13:01:26.156+0200 [ERROR] [system.err]       at java.util.concurrent.ScheduledThreadPoolExecutor.delayedExecute(ScheduledThreadPoolExecutor.java:346)
2022-08-13T13:01:26.156+0200 [ERROR] [system.err]       at java.util.concurrent.ScheduledThreadPoolExecutor.scheduleAtFixedRate(ScheduledThreadPoolExecutor.java:632)
2022-08-13T13:01:26.156+0200 [ERROR] [system.err]       at ch.qos.logback.classic.joran.action.ConfigurationAction.processScanAttrib(ConfigurationAction.java:119)
2022-08-13T13:01:26.156+0200 [ERROR] [system.err]       at ch.qos.logback.classic.joran.action.ConfigurationAction.begin(ConfigurationAction.java:62)
2022-08-13T13:01:26.156+0200 [ERROR] [system.err]       at ch.qos.logback.core.joran.spi.Interpreter.callBeginAction(Interpreter.java:269)
2022-08-13T13:01:26.156+0200 [ERROR] [system.err]       at ch.qos.logback.core.joran.spi.Interpreter.startElement(Interpreter.java:145)
2022-08-13T13:01:26.156+0200 [ERROR] [system.err]       at ch.qos.logback.core.joran.spi.Interpreter.startElement(Interpreter.java:128)
2022-08-13T13:01:26.156+0200 [ERROR] [system.err]       at ch.qos.logback.core.joran.spi.EventPlayer.play(EventPlayer.java:50)
2022-08-13T13:01:26.156+0200 [ERROR] [system.err]       at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:165)
2022-08-13T13:01:26.156+0200 [ERROR] [system.err]       at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:152)
2022-08-13T13:01:26.156+0200 [ERROR] [system.err]       at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:110)
2022-08-13T13:01:26.156+0200 [ERROR] [system.err]       at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:53)
2022-08-13T13:01:26.156+0200 [ERROR] [system.err]       at ch.qos.logback.classic.util.ContextInitializer.configureByResource(ContextInitializer.java:64)
2022-08-13T13:01:26.156+0200 [ERROR] [system.err]       at ch.qos.logback.classic.util.ContextInitializer.autoConfig(ContextInitializer.java:134)
2022-08-13T13:01:26.156+0200 [ERROR] [system.err]       at org.slf4j.impl.StaticLoggerBinder.init(StaticLoggerBinder.java:84)
2022-08-13T13:01:26.156+0200 [ERROR] [system.err]       at org.slf4j.impl.StaticLoggerBinder.<clinit>(StaticLoggerBinder.java:55)
2022-08-13T13:01:26.156+0200 [ERROR] [system.err]       at org.slf4j.LoggerFactory.bind(LoggerFactory.java:150)
2022-08-13T13:01:26.156+0200 [ERROR] [system.err]       at org.slf4j.LoggerFactory.performInitialization(LoggerFactory.java:124)
2022-08-13T13:01:26.156+0200 [ERROR] [system.err]       at org.slf4j.LoggerFactory.getILoggerFactory(LoggerFactory.java:417)
2022-08-13T13:01:26.157+0200 [ERROR] [system.err]       at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:362)
2022-08-13T13:01:26.157+0200 [ERROR] [system.err]       at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:388)
2022-08-13T13:01:26.157+0200 [ERROR] [system.err]       at io.micronaut.runtime.Micronaut.<clinit>(Micronaut.java:53)
2022-08-13T13:01:26.157+0200 [ERROR] [system.err] . Try avoiding to initialize the class that caused initialization of the Thread. The object was probably created by a class initializer and is reachable from a static field. You can request class initialization at image runtime by using the option --initialize-at-run-time=<class-name>. Or you can write your own initialization methods and call them explicitly from your main entry point.
2022-08-13T13:01:26.157+0200 [ERROR] [system.err]       at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.image.DisallowedImageHeapObjectFeature.error(DisallowedImageHeapObjectFeature.java:173)
2022-08-13T13:01:26.157+0200 [ERROR] [system.err]       at org.graalvm.nativeimage.builder/com.oracle.svm.core.image.DisallowedImageHeapObjects.check(DisallowedImageHeapObjects.java:74)
2022-08-13T13:01:26.157+0200 [ERROR] [system.err]       at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.image.DisallowedImageHeapObjectFeature.replacer(DisallowedImageHeapObjectFeature.java:149)
2022-08-13T13:01:26.157+0200 [ERROR] [system.err]       at org.graalvm.nativeimage.pointsto/com.oracle.graal.pointsto.meta.AnalysisUniverse.replaceObject(AnalysisUniverse.java:583)
2022-08-13T13:01:26.157+0200 [ERROR] [system.err]       at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.ameta.AnalysisConstantReflectionProvider.replaceObject(AnalysisConstantReflectionProvider.java:257)
2022-08-13T13:01:26.157+0200 [ERROR] [system.err]       at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.ameta.AnalysisConstantReflectionProvider.interceptValue(AnalysisConstantReflectionProvider.java:228)
2022-08-13T13:01:26.157+0200 [ERROR] [system.err]       at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.heap.SVMImageHeapScanner.transformFieldValue(SVMImageHeapScanner.java:126)
2022-08-13T13:01:26.157+0200 [ERROR] [system.err]       at org.graalvm.nativeimage.pointsto/com.oracle.graal.pointsto.heap.ImageHeapScanner.onFieldValueReachable(ImageHeapScanner.java:331)
2022-08-13T13:01:26.157+0200 [ERROR] [system.err]       at org.graalvm.nativeimage.pointsto/com.oracle.graal.pointsto.heap.ImageHeapScanner.lambda$createImageHeapObject$3(ImageHeapScanner.java:272)
2022-08-13T13:01:26.157+0200 [ERROR] [system.err]       at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
2022-08-13T13:01:26.157+0200 [ERROR] [system.err]       ... 10 more
2022-08-13T13:01:26.157+0200 [ERROR] [system.err] Fatal error: org.graalvm.compiler.debug.GraalError: com.oracle.graal.pointsto.constraints.UnsupportedFeatureException: Detected a started Thread in the image heap. Threads running in the image generator are no longer running at image runtime.  Object has been initialized through the following trace:
2022-08-13T13:01:26.157+0200 [ERROR] [system.err]       at java.lang.Thread.<init>(Thread.java:704)
2022-08-13T13:01:26.157+0200 [ERROR] [system.err]       at java.util.concurrent.Executors$DefaultThreadFactory.newThread(Executors.java:629)
2022-08-13T13:01:26.157+0200 [ERROR] [system.err]       at ch.qos.logback.core.util.ExecutorServiceUtil$1.newThread(ExecutorServiceUtil.java:42)
2022-08-13T13:01:26.157+0200 [ERROR] [system.err]       at java.util.concurrent.ThreadPoolExecutor$Worker.<init>(ThreadPoolExecutor.java:623)
2022-08-13T13:01:26.157+0200 [ERROR] [system.err]       at java.util.concurrent.ThreadPoolExecutor.addWorker(ThreadPoolExecutor.java:912)
2022-08-13T13:01:26.157+0200 [ERROR] [system.err]       at java.util.concurrent.ThreadPoolExecutor.ensurePrestart(ThreadPoolExecutor.java:1583)
2022-08-13T13:01:26.157+0200 [ERROR] [system.err]       at java.util.concurrent.ScheduledThreadPoolExecutor.reExecutePeriodic(ScheduledThreadPoolExecutor.java:360)
2022-08-13T13:01:26.157+0200 [ERROR] [system.err]       at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:307)
2022-08-13T13:01:26.157+0200 [ERROR] [system.err]       at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
2022-08-13T13:01:26.157+0200 [ERROR] [system.err]       at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
2022-08-13T13:01:26.157+0200 [ERROR] [system.err]       at java.lang.Thread.run(Thread.java:829)
2022-08-13T13:01:26.157+0200 [ERROR] [system.err] . Try avoiding to initialize the class that caused initialization of the Thread. The object was probably created by a class initializer and is reachable from a static field. You can request class initialization at image runtime by using the option --initialize-at-run-time=<class-name>. Or you can write your own initialization methods and call them explicitly from your main entry point.
2022-08-13T13:01:26.157+0200 [ERROR] [system.err]       at org.graalvm.nativeimage.pointsto/com.oracle.graal.pointsto.util.AnalysisFuture.setException(AnalysisFuture.java:49)
2022-08-13T13:01:26.157+0200 [ERROR] [system.err]       at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:269)
2022-08-13T13:01:26.157+0200 [ERROR] [system.err]       at org.graalvm.nativeimage.pointsto/com.oracle.graal.pointsto.util.AnalysisFuture.ensureDone(AnalysisFuture.java:63)
2022-08-13T13:01:26.157+0200 [ERROR] [system.err]       at org.graalvm.nativeimage.pointsto/com.oracle.graal.pointsto.heap.ImageHeapScanner.lambda$postTask$9(ImageHeapScanner.java:611)
2022-08-13T13:01:26.157+0200 [ERROR] [system.err]       at org.graalvm.nativeimage.pointsto/com.oracle.graal.pointsto.util.CompletionExecutor.executeCommand(CompletionExecutor.java:193)
2022-08-13T13:01:26.158+0200 [ERROR] [system.err]       at org.graalvm.nativeimage.pointsto/com.oracle.graal.pointsto.util.CompletionExecutor.lambda$executeService$0(CompletionExecutor.java:177)
2022-08-13T13:01:26.158+0200 [ERROR] [system.err]       at java.base/java.util.concurrent.ForkJoinTask$RunnableExecuteAction.exec(ForkJoinTask.java:1426)
2022-08-13T13:01:26.158+0200 [ERROR] [system.err]       at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:290)
2022-08-13T13:01:26.158+0200 [ERROR] [system.err]       at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1020)
2022-08-13T13:01:26.158+0200 [ERROR] [system.err]       at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1656)
2022-08-13T13:01:26.158+0200 [ERROR] [system.err]       at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1594)
2022-08-13T13:01:26.158+0200 [ERROR] [system.err]       at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:183)
2022-08-13T13:01:26.158+0200 [ERROR] [system.err] Caused by: com.oracle.graal.pointsto.constraints.UnsupportedFeatureException: Detected a started Thread in the image heap. Threads running in the image generator are no longer running at image runtime.  Object has been initialized through the following trace:
2022-08-13T13:01:26.158+0200 [ERROR] [system.err]       at java.lang.Thread.<init>(Thread.java:704)
2022-08-13T13:01:26.158+0200 [ERROR] [system.err]       at java.util.concurrent.Executors$DefaultThreadFactory.newThread(Executors.java:629)
2022-08-13T13:01:26.158+0200 [ERROR] [system.err]       at ch.qos.logback.core.util.ExecutorServiceUtil$1.newThread(ExecutorServiceUtil.java:42)
2022-08-13T13:01:26.158+0200 [ERROR] [system.err]       at java.util.concurrent.ThreadPoolExecutor$Worker.<init>(ThreadPoolExecutor.java:623)
2022-08-13T13:01:26.158+0200 [ERROR] [system.err]       at java.util.concurrent.ThreadPoolExecutor.addWorker(ThreadPoolExecutor.java:912)
2022-08-13T13:01:26.158+0200 [ERROR] [system.err]       at java.util.concurrent.ThreadPoolExecutor.ensurePrestart(ThreadPoolExecutor.java:1583)
2022-08-13T13:01:26.158+0200 [ERROR] [system.err]       at java.util.concurrent.ScheduledThreadPoolExecutor.reExecutePeriodic(ScheduledThreadPoolExecutor.java:360)
2022-08-13T13:01:26.158+0200 [ERROR] [system.err]       at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:307)
2022-08-13T13:01:26.158+0200 [ERROR] [system.err]       at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
2022-08-13T13:01:26.158+0200 [ERROR] [system.err]       at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
2022-08-13T13:01:26.158+0200 [ERROR] [system.err]       at java.lang.Thread.run(Thread.java:829)
2022-08-13T13:01:26.158+0200 [ERROR] [system.err] . Try avoiding to initialize the class that caused initialization of the Thread. The object was probably created by a class initializer and is reachable from a static field. You can request class initialization at image runtime by using the option --initialize-at-run-time=<class-name>. Or you can write your own initialization methods and call them explicitly from your main entry point.
2022-08-13T13:01:26.158+0200 [ERROR] [system.err]       at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.image.DisallowedImageHeapObjectFeature.error(DisallowedImageHeapObjectFeature.java:173)
2022-08-13T13:01:26.158+0200 [ERROR] [system.err]       at org.graalvm.nativeimage.builder/com.oracle.svm.core.image.DisallowedImageHeapObjects.check(DisallowedImageHeapObjects.java:74)
2022-08-13T13:01:26.158+0200 [ERROR] [system.err]       at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.image.DisallowedImageHeapObjectFeature.replacer(DisallowedImageHeapObjectFeature.java:149)
2022-08-13T13:01:26.158+0200 [ERROR] [system.err]       at org.graalvm.nativeimage.pointsto/com.oracle.graal.pointsto.meta.AnalysisUniverse.replaceObject(AnalysisUniverse.java:583)
2022-08-13T13:01:26.158+0200 [ERROR] [system.err]       at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.ameta.AnalysisConstantReflectionProvider.replaceObject(AnalysisConstantReflectionProvider.java:257)
2022-08-13T13:01:26.158+0200 [ERROR] [system.err]       at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.ameta.AnalysisConstantReflectionProvider.interceptValue(AnalysisConstantReflectionProvider.java:228)
2022-08-13T13:01:26.158+0200 [ERROR] [system.err]       at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.heap.SVMImageHeapScanner.transformFieldValue(SVMImageHeapScanner.java:126)
2022-08-13T13:01:26.158+0200 [ERROR] [system.err]       at org.graalvm.nativeimage.pointsto/com.oracle.graal.pointsto.heap.ImageHeapScanner.onFieldValueReachable(ImageHeapScanner.java:331)
2022-08-13T13:01:26.158+0200 [ERROR] [system.err]       at org.graalvm.nativeimage.pointsto/com.oracle.graal.pointsto.heap.ImageHeapScanner.lambda$createImageHeapObject$3(ImageHeapScanner.java:272)
2022-08-13T13:01:26.158+0200 [ERROR] [system.err]       at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
2022-08-13T13:01:26.158+0200 [ERROR] [system.err]       ... 10 more
2022-08-13T13:01:26.158+0200 [ERROR] [system.err] Fatal error: org.graalvm.compiler.debug.GraalError: com.oracle.graal.pointsto.constraints.UnsupportedFeatureException: Detected a started Thread in the image heap. Threads running in the image generator are no longer running at image runtime.  Object has been initialized through the following trace:
2022-08-13T13:01:26.158+0200 [ERROR] [system.err]       at java.lang.Thread.<init>(Thread.java:704)
2022-08-13T13:01:26.159+0200 [ERROR] [system.err]       at java.util.concurrent.Executors$DefaultThreadFactory.newThread(Executors.java:629)
2022-08-13T13:01:26.159+0200 [ERROR] [system.err]       at ch.qos.logback.core.util.ExecutorServiceUtil$1.newThread(ExecutorServiceUtil.java:42)
2022-08-13T13:01:26.159+0200 [ERROR] [system.err]       at java.util.concurrent.ThreadPoolExecutor$Worker.<init>(ThreadPoolExecutor.java:623)
2022-08-13T13:01:26.159+0200 [ERROR] [system.err]       at java.util.concurrent.ThreadPoolExecutor.addWorker(ThreadPoolExecutor.java:912)
2022-08-13T13:01:26.159+0200 [ERROR] [system.err]       at java.util.concurrent.ThreadPoolExecutor.ensurePrestart(ThreadPoolExecutor.java:1583)
2022-08-13T13:01:26.159+0200 [ERROR] [system.err]       at java.util.concurrent.ScheduledThreadPoolExecutor.reExecutePeriodic(ScheduledThreadPoolExecutor.java:360)
2022-08-13T13:01:26.159+0200 [ERROR] [system.err]       at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:307)
2022-08-13T13:01:26.159+0200 [ERROR] [system.err]       at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
2022-08-13T13:01:26.159+0200 [ERROR] [system.err]       at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
2022-08-13T13:01:26.159+0200 [ERROR] [system.err]       at java.lang.Thread.run(Thread.java:829)
2022-08-13T13:01:26.159+0200 [ERROR] [system.err] . Try avoiding to initialize the class that caused initialization of the Thread. The object was probably created by a class initializer and is reachable from a static field. You can request class initialization at image runtime by using the option --initialize-at-run-time=<class-name>. Or you can write your own initialization methods and call them explicitly from your main entry point.
2022-08-13T13:01:26.159+0200 [ERROR] [system.err]       at org.graalvm.nativeimage.pointsto/com.oracle.graal.pointsto.util.AnalysisFuture.setException(AnalysisFuture.java:49)
2022-08-13T13:01:26.159+0200 [ERROR] [system.err]       at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:269)
2022-08-13T13:01:26.159+0200 [ERROR] [system.err]       at org.graalvm.nativeimage.pointsto/com.oracle.graal.pointsto.util.AnalysisFuture.ensureDone(AnalysisFuture.java:63)
2022-08-13T13:01:26.159+0200 [ERROR] [system.err]       at org.graalvm.nativeimage.pointsto/com.oracle.graal.pointsto.heap.ImageHeapScanner.lambda$postTask$9(ImageHeapScanner.java:611)
2022-08-13T13:01:26.159+0200 [ERROR] [system.err]       at org.graalvm.nativeimage.pointsto/com.oracle.graal.pointsto.util.CompletionExecutor.executeCommand(CompletionExecutor.java:193)
2022-08-13T13:01:26.159+0200 [QUIET] [system.out] ------------------------------------------------------------------------------------------------------------------------
2022-08-13T13:01:26.159+0200 [ERROR] [system.err]       at org.graalvm.nativeimage.pointsto/com.oracle.graal.pointsto.util.CompletionExecutor.lambda$executeService$0(CompletionExecutor.java:177)
2022-08-13T13:01:26.159+0200 [ERROR] [system.err]       at java.base/java.util.concurrent.ForkJoinTask$RunnableExecuteAction.exec(ForkJoinTask.java:1426)
2022-08-13T13:01:26.159+0200 [ERROR] [system.err]       at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:290)
2022-08-13T13:01:26.159+0200 [ERROR] [system.err]       at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1020)
2022-08-13T13:01:26.159+0200 [ERROR] [system.err]       at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1656)
2022-08-13T13:01:26.159+0200 [ERROR] [system.err]       at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1594)
2022-08-13T13:01:26.159+0200 [ERROR] [system.err]       at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:183)
2022-08-13T13:01:26.159+0200 [ERROR] [system.err] Caused by: com.oracle.graal.pointsto.constraints.UnsupportedFeatureException: Detected a started Thread in the image heap. Threads running in the image generator are no longer running at image runtime.  Object has been initialized through the following trace:
2022-08-13T13:01:26.160+0200 [ERROR] [system.err]       at java.lang.Thread.<init>(Thread.java:704)
2022-08-13T13:01:26.160+0200 [ERROR] [system.err]       at java.util.concurrent.Executors$DefaultThreadFactory.newThread(Executors.java:629)
2022-08-13T13:01:26.160+0200 [ERROR] [system.err]       at ch.qos.logback.core.util.ExecutorServiceUtil$1.newThread(ExecutorServiceUtil.java:42)
2022-08-13T13:01:26.160+0200 [ERROR] [system.err]       at java.util.concurrent.ThreadPoolExecutor$Worker.<init>(ThreadPoolExecutor.java:623)
2022-08-13T13:01:26.160+0200 [ERROR] [system.err]       at java.util.concurrent.ThreadPoolExecutor.addWorker(ThreadPoolExecutor.java:912)
2022-08-13T13:01:26.160+0200 [ERROR] [system.err]       at java.util.concurrent.ThreadPoolExecutor.ensurePrestart(ThreadPoolExecutor.java:1583)
2022-08-13T13:01:26.160+0200 [ERROR] [system.err]       at java.util.concurrent.ScheduledThreadPoolExecutor.reExecutePeriodic(ScheduledThreadPoolExecutor.java:360)
2022-08-13T13:01:26.160+0200 [ERROR] [system.err]       at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:307)
2022-08-13T13:01:26.160+0200 [ERROR] [system.err]       at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
2022-08-13T13:01:26.160+0200 [ERROR] [system.err]       at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
2022-08-13T13:01:26.160+0200 [ERROR] [system.err]       at java.lang.Thread.run(Thread.java:829)
2022-08-13T13:01:26.160+0200 [ERROR] [system.err] . Try avoiding to initialize the class that caused initialization of the Thread. The object was probably created by a class initializer and is reachable from a static field. You can request class initialization at image runtime by using the option --initialize-at-run-time=<class-name>. Or you can write your own initialization methods and call them explicitly from your main entry point.
2022-08-13T13:01:26.160+0200 [ERROR] [system.err]       at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.image.DisallowedImageHeapObjectFeature.error(DisallowedImageHeapObjectFeature.java:173)
2022-08-13T13:01:26.160+0200 [ERROR] [system.err]       at org.graalvm.nativeimage.builder/com.oracle.svm.core.image.DisallowedImageHeapObjects.check(DisallowedImageHeapObjects.java:74)
2022-08-13T13:01:26.160+0200 [ERROR] [system.err]       at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.image.DisallowedImageHeapObjectFeature.replacer(DisallowedImageHeapObjectFeature.java:149)
2022-08-13T13:01:26.160+0200 [ERROR] [system.err]       at org.graalvm.nativeimage.pointsto/com.oracle.graal.pointsto.meta.AnalysisUniverse.replaceObject(AnalysisUniverse.java:583)
2022-08-13T13:01:26.160+0200 [ERROR] [system.err]       at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.ameta.AnalysisConstantReflectionProvider.replaceObject(AnalysisConstantReflectionProvider.java:257)
2022-08-13T13:01:26.160+0200 [ERROR] [system.err]       at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.ameta.AnalysisConstantReflectionProvider.interceptValue(AnalysisConstantReflectionProvider.java:228)
2022-08-13T13:01:26.160+0200 [ERROR] [system.err]       at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.heap.SVMImageHeapScanner.transformFieldValue(SVMImageHeapScanner.java:126)
2022-08-13T13:01:26.160+0200 [ERROR] [system.err]       at org.graalvm.nativeimage.pointsto/com.oracle.graal.pointsto.heap.ImageHeapScanner.onFieldValueReachable(ImageHeapScanner.java:331)
2022-08-13T13:01:26.160+0200 [ERROR] [system.err]       at org.graalvm.nativeimage.pointsto/com.oracle.graal.pointsto.heap.ImageHeapScanner.lambda$createImageHeapObject$3(ImageHeapScanner.java:272)
2022-08-13T13:01:26.160+0200 [ERROR] [system.err]       at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
2022-08-13T13:01:26.161+0200 [ERROR] [system.err]       ... 10 more
2022-08-13T13:01:26.161+0200 [QUIET] [system.out]                         4,3s (9,5% of total time) in 25 GCs | Peak RSS: 7,13GB | CPU load: 7,21
2022-08-13T13:01:26.161+0200 [QUIET] [system.out] ========================================================================================================================
2022-08-13T13:01:26.161+0200 [QUIET] [system.out] Failed generating 'SpaceUp-Server' after 44,8s.
2022-08-13T13:01:27.234+0200 [ERROR] [system.err] Error: Image build request failed with exit status 1
2022-08-13T13:01:27.242+0200 [DEBUG] [org.gradle.process.internal.DefaultExecHandle] Changing state to: FAILED
2022-08-13T13:01:27.243+0200 [DEBUG] [org.gradle.process.internal.DefaultExecHandle] Process 'command 'D:\Software\graalvm-ce-java11-windows-amd64-22.2.0\graalvm-ce-java11-22.2.0\bin\native-image.cmd'' finished with exit value 1 (state: FAILED)

System Info (please complete the following information):

ThraaxSession commented 2 years ago

I found the issue in the logback.xml The scan feature of logback does not work as it initialize schedulers for the scan (as I think).

<!--configuration scan="true" scanPeriod="15 seconds" does not work with GraalVM -->
<configuration>