Closed st4s1k closed 8 months ago
The only thing that pops up in google is this: https://build-native-java-apps.cc/developer-guide/debug-native-image-generation/
I cannot debug GraalVM classes because they are not accessible to me. Maybe there is a way to debug this but I don't know how. When you google Fatal error: com.oracle.svm.core.util.VMError$HostedError: java.lang.NullPointerException: Cannot invoke "com.oracle.graal.pointsto.flow.AllInstantiatedTypeFlow.addState(com.oracle.graal.pointsto.PointsToAnalysis, com.oracle.graal.pointsto.typestate.TypeState)" because "t.instantiatedTypes" is null
you literally get 1 (one) search result.
Hi, thank you for reporting this we will take a look into it and get back to you
Spring boot with gradle fails as well
clean build nativeBuild
--> https://github.com/st4s1k/League-of-Legends-Team-Composition-Tool/tree/experimental/spring-boot-gradle
Similar unresolved issue: https://github.com/oracle/graal/issues/3358
> Task :nativeLink
[Wed Apr 27 22:55:41 EEST 2022][FINE] Result for java-version: 0
[Wed Apr 27 22:55:41 EEST 2022][FINE] PB Command for check version: C:\Program Files\Java\graalvm-svm-java17-windows-gluon-22.0.0.3-Final\bin\java -version
[Wed Apr 27 22:55:41 EEST 2022][FINE] Start process check version...
[Wed Apr 27 22:55:41 EEST 2022][FINE] Result for check version: 0
[Wed Apr 27 22:55:41 EEST 2022][INFO] ==================== LINK TASK ====================
[Wed Apr 27 22:55:41 EEST 2022][FINE] Creating icon resource
[Wed Apr 27 22:55:41 EEST 2022][FINE] Copied resource D:\MEGA\Plutus\DEV\LeagueTeamComp\src\windows\assets\icon.ico to D:\MEGA\Plutus\DEV\LeagueTeamComp\build\gluonfx\x86_64-windows\gvm\tmp\icon\icon.ico
[Wed Apr 27 22:55:41 EEST 2022][FINE] User provided icon.ico image used as application icon.
[Wed Apr 27 22:55:41 EEST 2022][FINE] Looking for resource: /native/windows/assets/IconGroup.rc
[Wed Apr 27 22:55:41 EEST 2022][FINE] PB Command for rc compile: rc -fo D:\MEGA\Plutus\DEV\LeagueTeamComp\build\gluonfx\x86_64-windows\gvm\tmp\icon\IconGroup.res D:\MEGA\Plutus\DEV\LeagueTeamComp\build\gluonfx\x86_64-windows\gvm\tmp\icon\IconGroup.rc
[Wed Apr 27 22:55:41 EEST 2022][FINE] Start process rc compile...
[Wed Apr 27 22:55:41 EEST 2022][FINE] Result for rc compile: 0
[Wed Apr 27 22:55:41 EEST 2022][FINE] PB Command for cvtres: cvtres /machine:x64 -out:D:\MEGA\Plutus\DEV\LeagueTeamComp\build\gluonfx\x86_64-windows\gvm\tmp\icon\IconGroup.obj D:\MEGA\Plutus\DEV\LeagueTeamComp\build\gluonfx\x86_64-windows\gvm\tmp\icon\IconGroup.res
[Wed Apr 27 22:55:41 EEST 2022][FINE] Start process cvtres...
[Wed Apr 27 22:55:41 EEST 2022][FINE] Result for cvtres: 0
[Wed Apr 27 22:55:41 EEST 2022][FINE] IconGroup.obj created successfully
[Wed Apr 27 22:55:41 EEST 2022][FINE] Copied resource D:\MEGA\Plutus\DEV\LeagueTeamComp\build\gluonfx\x86_64-windows\gvm\tmp\icon\IconGroup.obj to D:\MEGA\Plutus\DEV\LeagueTeamComp\build\gluonfx\x86_64-windows\gvm\league-team-comp\IconGroup.obj
[Wed Apr 27 22:55:41 EEST 2022][FINE] Looking for resource: /native/windows/launcher.c
[Wed Apr 27 22:55:41 EEST 2022][FINE] PB Command for compile-additional-sources: cl -c -DGVM_VERBOSE -DSUBSTRATE /MD /D_UNICODE /DUNICODE /DWIN32 /D_WINDOWS -ID:\MEGA\Plutus\DEV\LeagueTeamComp\build\gluonfx\x86_64-windows\gvm\league-team-comp launcher.c
[Wed Apr 27 22:55:41 EEST 2022][FINE] Start process compile-additional-sources...
[Wed Apr 27 22:55:41 EEST 2022][FINE] Result for compile-additional-sources: 0
[Wed Apr 27 22:55:42 EEST 2022][FINE] PB Command for link: link D:\MEGA\Plutus\DEV\LeagueTeamComp\build\gluonfx\x86_64-windows\gvm\league-team-comp\launcher.obj D:\MEGA\Plutus\DEV\LeagueTeamComp\build\gluonfx\x86_64-windows\gvm\tmp\SVM-1651089164439\com.st4s1k.leagueteamcomp.leagueteamcompapplication.obj D:\MEGA\Plutus\DEV\LeagueTeamComp\build\gluonfx\x86_64-windows\gvm\league-team-comp\IconGroup.obj j2pkcs11.lib java.lib net.lib nio.lib prefs.lib fdlibm.lib zip.lib sunmscapi.lib jvm.lib libchelper.lib advapi32.lib iphlpapi.lib secur32.lib userenv.lib version.lib ws2_32.lib winhttp.lib ncrypt.lib crypt32.lib /NODEFAULTLIB:libcmt.lib /SUBSYSTEM:WINDOWS /ENTRY:mainCRTStartup comdlg32.lib dwmapi.lib gdi32.lib imm32.lib shell32.lib uiautomationcore.lib urlmon.lib winmm.lib glass.lib javafx_font.lib javafx_iio.lib prism_common.lib prism_d3d.lib /WHOLEARCHIVE:glass.lib /WHOLEARCHIVE:javafx_font.lib /WHOLEARCHIVE:javafx_iio.lib /WHOLEARCHIVE:prism_common.lib /WHOLEARCHIVE:prism_d3d.lib /OUT:D:\MEGA\Plutus\DEV\LeagueTeamComp\build\gluonfx\x86_64-windows\league-team-comp.exe /LIBPATH:C:\Users\Stanislav\.gluon\substrate\javafxStaticSdk\19-ea+4\windows-x86_64\sdk\lib /LIBPATH:C:\Program Files\Java\graalvm-svm-java17-windows-gluon-22.0.0.3-Final\lib\svm\clibraries\windows-amd64 /LIBPATH:C:\Program Files\Java\graalvm-svm-java17-windows-gluon-22.0.0.3-Final\lib\static\windows-amd64
[Wed Apr 27 22:55:42 EEST 2022][FINE] Start process link...
[Wed Apr 27 22:55:42 EEST 2022][FINE] Result for link: 0
[Wed Apr 27 22:55:42 EEST 2022][FINE] Logging process [link] to file: D:\MEGA\Plutus\DEV\LeagueTeamComp\build\gluonfx\log\process-link-1651089342396.log
[Wed Apr 27 22:55:42 EEST 2022][FINE] PB Command for find windows version: cmd.exe /c ver
[Wed Apr 27 22:55:42 EEST 2022][FINE] Start process find windows version...
[Wed Apr 27 22:55:42 EEST 2022][FINE] Result for find windows version: 0
[Wed Apr 27 22:55:42 EEST 2022][FINE] Windows version: Microsoft Windows [Version 10.0.22000.613]
[Wed Apr 27 22:55:42 EEST 2022][FINE] Windows Build number: 22000
[Wed Apr 27 22:55:42 EEST 2022][FINE] PB Command for Clear Explorer cache: ie4uinit -show
[Wed Apr 27 22:55:42 EEST 2022][FINE] Start process Clear Explorer cache...
[Wed Apr 27 22:55:42 EEST 2022][FINE] Result for Clear Explorer cache: 0
[Wed Apr 27 22:55:42 EEST 2022][FINE] [SUB] openjdk 17.0.2 2022-01-18
[Wed Apr 27 22:55:42 EEST 2022][FINE] [SUB] OpenJDK Runtime Environment GraalVM 22.0.0.2 (build 17.0.2+8-jvmci-22.0-b05)
[Wed Apr 27 22:55:42 EEST 2022][FINE] [SUB] OpenJDK 64-Bit Server VM GraalVM 22.0.0.2 (build 17.0.2+8-jvmci-22.0-b05, mixed mode, sharing)
[Wed Apr 27 22:55:42 EEST 2022][FINE] [SUB] openjdk version "17.0.2" 2022-01-18
[Wed Apr 27 22:55:42 EEST 2022][FINE] [SUB] OpenJDK Runtime Environment GraalVM 22.0.0.2 (build 17.0.2+8-jvmci-22.0-b05)
[Wed Apr 27 22:55:42 EEST 2022][FINE] [SUB] OpenJDK 64-Bit Server VM GraalVM 22.0.0.2 (build 17.0.2+8-jvmci-22.0-b05, mixed mode, sharing)
[Wed Apr 27 22:55:43 EEST 2022][INFO] [SUB] Main
[Wed Apr 27 22:55:43 EEST 2022][INFO] [SUB]
[Wed Apr 27 22:55:43 EEST 2022][INFO] [SUB] _ _____ ____
[Wed Apr 27 22:55:43 EEST 2022][INFO] [SUB] | | ___ __ _ __ _ _ _ __|_ _|__ __ _ _ __ ___ / ___|___ _ __ ___ _ __
[Wed Apr 27 22:55:43 EEST 2022][INFO] [SUB] | | / _ \/ _` |/ _` | | | |/ _ \| |/ _ \/ _` | '_ ` _ \| | / _ \| '_ ` _ \| '_ \
[Wed Apr 27 22:55:43 EEST 2022][INFO] [SUB] | |__| __/ (_| | (_| | |_| | __/| | __/ (_| | | | | | | |__| (_) | | | | | | |_) |
[Wed Apr 27 22:55:43 EEST 2022][INFO] [SUB] |_____\___|\__,_|\__, |\__,_|\___||_|\___|\__,_|_| |_| |_|\____\___/|_| |_| |_| .__/
[Wed Apr 27 22:55:43 EEST 2022][INFO] [SUB] ==================|___/========================================================|_|====
[Wed Apr 27 22:55:43 EEST 2022][INFO] [SUB] :: League of Legends Team Composition Tool :: (v1.0.7)
[Wed Apr 27 22:55:43 EEST 2022][INFO] [SUB]
[Wed Apr 27 22:55:43 EEST 2022][INFO] [SUB] Apr 27, 2022 10:55:43 PM com.sun.javafx.application.PlatformImpl startup
[Wed Apr 27 22:55:43 EEST 2022][INFO] [SUB] WARNING: Unsupported JavaFX configuration: classes were loaded from 'unnamed module @ff0b0ce'
[Wed Apr 27 22:55:44 EEST 2022][INFO] [SUB]
[Wed Apr 27 22:55:44 EEST 2022][INFO] [SUB] . ____ _ __ _ _
[Wed Apr 27 22:55:44 EEST 2022][INFO] [SUB] /\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \
[Wed Apr 27 22:55:44 EEST 2022][INFO] [SUB] ( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
[Wed Apr 27 22:55:44 EEST 2022][INFO] [SUB] \\/ ___)| |_)| | | | | || (_| | ) ) ) )
[Wed Apr 27 22:55:44 EEST 2022][INFO] [SUB] ' |____| .__|_| |_|_| |_\__, | / / / /
[Wed Apr 27 22:55:44 EEST 2022][INFO] [SUB] =========|_|==============|___/=/_/_/_/
[Wed Apr 27 22:55:44 EEST 2022][INFO] [SUB] :: Spring Boot :: (v2.6.6)
[Wed Apr 27 22:55:44 EEST 2022][INFO] [SUB]
[Wed Apr 27 22:55:44 EEST 2022][INFO] [SUB] [INFO ] 2022-04-27 22:55:44.533 [JavaFX Application Thread] SpringApplication - Starting application using Java 17.0.2 on st4s1k-legion with PID 24024 (started by Stanislav in D:\MEGA\Plutus\DEV\LeagueTeamComp)
[Wed Apr 27 22:55:44 EEST 2022][INFO] [SUB] [INFO ] 2022-04-27 22:55:44.533 [JavaFX Application Thread] SpringApplication - No active profile set, falling back to 1 default profile: "default"
[Wed Apr 27 22:55:44 EEST 2022][INFO] [SUB] [WARN ] 2022-04-27 22:55:44.533 [JavaFX Application Thread] AnnotationConfigApplicationContext - Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.context.annotation.internalConfigurationAnnotationProcessor': Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.context.annotation.ConfigurationClassPostProcessor]: No default constructor found; nested exception is java.lang.NoSuchMethodException: org.springframework.context.annotation.ConfigurationClassPostProcessor.<init>()
[Wed Apr 27 22:55:44 EEST 2022][INFO] [SUB] [ERROR] 2022-04-27 22:55:44.533 [JavaFX Application Thread] SpringApplication - Application run failed
[Wed Apr 27 22:55:44 EEST 2022][INFO] [SUB] org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.context.annotation.internalConfigurationAnnotationProcessor': Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.context.annotation.ConfigurationClassPostProcessor]: No default constructor found; nested exception is java.lang.NoSuchMethodException: org.springframework.context.annotation.ConfigurationClassPostProcessor.<init>()
[Wed Apr 27 22:55:44 EEST 2022][INFO] [SUB] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:1334) ~[?:?]
[Wed Apr 27 22:55:44 EEST 2022][INFO] [SUB] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1232) ~[?:?]
[Wed Apr 27 22:55:44 EEST 2022][INFO] [SUB] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:582) ~[?:?]
[Wed Apr 27 22:55:44 EEST 2022][INFO] [SUB] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542) ~[?:?]
[Wed Apr 27 22:55:44 EEST 2022][INFO] [SUB] at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335) ~[?:?]
[Wed Apr 27 22:55:44 EEST 2022][INFO] [SUB] at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234) ~[?:?]
[Wed Apr 27 22:55:44 EEST 2022][INFO] [SUB] at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333) ~[?:?]
[Wed Apr 27 22:55:44 EEST 2022][INFO] [SUB] at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:213) ~[?:?]
[Wed Apr 27 22:55:44 EEST 2022][INFO] [SUB] at org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanFactoryPostProcessors(PostProcessorRegistrationDelegate.java:106) ~[?:?]
[Wed Apr 27 22:55:44 EEST 2022][INFO] [SUB] at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:746) ~[?:?]
[Wed Apr 27 22:55:44 EEST 2022][INFO] [SUB] at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:564) ~[?:?]
[Wed Apr 27 22:55:44 EEST 2022][INFO] [SUB] at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:740) ~[?:?]
[Wed Apr 27 22:55:44 EEST 2022][INFO] [SUB] at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:415) ~[?:?]
[Wed Apr 27 22:55:44 EEST 2022][INFO] [SUB] at org.springframework.boot.SpringApplication.run(SpringApplication.java:303) ~[?:?]
[Wed Apr 27 22:55:44 EEST 2022][INFO] [SUB] at org.springframework.boot.SpringApplication.run(SpringApplication.java:1312) ~[?:?]
[Wed Apr 27 22:55:44 EEST 2022][INFO] [SUB] at org.springframework.boot.SpringApplication.run(SpringApplication.java:1301) ~[?:?]
[Wed Apr 27 22:55:44 EEST 2022][INFO] [SUB] at com.st4s1k.leagueteamcomp.LeagueTeamCompApplication.lambda$start$0(LeagueTeamCompApplication.java:78) ~[league-team-comp.exe:?]
[Wed Apr 27 22:55:44 EEST 2022][INFO] [SUB] at com.gluonhq.ignite.spring.SpringContext.init(SpringContext.java:149) ~[?:?]
[Wed Apr 27 22:55:44 EEST 2022][INFO] [SUB] at com.st4s1k.leagueteamcomp.LeagueTeamCompApplication.start(LeagueTeamCompApplication.java:78) ~[league-team-comp.exe:?]
[Wed Apr 27 22:55:44 EEST 2022][INFO] [SUB] at com.sun.javafx.application.LauncherImpl.lambda$launchApplication1$9(LauncherImpl.java:847) ~[?:?]
[Wed Apr 27 22:55:44 EEST 2022][INFO] [SUB] at com.sun.javafx.application.PlatformImpl.lambda$runAndWait$12(PlatformImpl.java:484) ~[league-team-comp.exe:?]
[Wed Apr 27 22:55:44 EEST 2022][INFO] [SUB] at com.sun.javafx.application.PlatformImpl.lambda$runLater$10(PlatformImpl.java:457) ~[league-team-comp.exe:?]
[Wed Apr 27 22:55:44 EEST 2022][INFO] [SUB] at java.security.AccessController.doPrivileged(AccessController.java:107) ~[league-team-comp.exe:?]
[Wed Apr 27 22:55:44 EEST 2022][INFO] [SUB] at com.sun.javafx.application.PlatformImpl.lambda$runLater$11(PlatformImpl.java:456) ~[league-team-comp.exe:?]
[Wed Apr 27 22:55:44 EEST 2022][INFO] [SUB] at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:96) ~[league-team-comp.exe:?]
[Wed Apr 27 22:55:44 EEST 2022][INFO] [SUB] at com.oracle.svm.jni.JNIJavaCallWrappers.jniInvoke_VA_LIST_Runnable_run_16403f8d32adb631126daa893e5e80085c5d6325(JNIJavaCallWrappers.java:0) ~[?:?]
[Wed Apr 27 22:55:44 EEST 2022][INFO] [SUB] at com.sun.glass.ui.win.WinApplication._runLoop(WinApplication.java) ~[league-team-comp.exe:?]
[Wed Apr 27 22:55:44 EEST 2022][INFO] [SUB] at com.sun.glass.ui.win.WinApplication.lambda$runLoop$3(WinApplication.java:184) ~[league-team-comp.exe:?]
[Wed Apr 27 22:55:44 EEST 2022][INFO] [SUB] at java.lang.Thread.run(Thread.java:833) ~[league-team-comp.exe:?]
[Wed Apr 27 22:55:44 EEST 2022][INFO] [SUB] at com.oracle.svm.core.thread.JavaThreads.threadStartRoutine(JavaThreads.java:597) ~[?:?]
[Wed Apr 27 22:55:44 EEST 2022][INFO] [SUB] at com.oracle.svm.core.windows.WindowsJavaThreads.osThreadStartRoutine(WindowsJavaThreads.java:140) ~[?:?]
[Wed Apr 27 22:55:44 EEST 2022][INFO] [SUB] Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.context.annotation.ConfigurationClassPostProcessor]: No default constructor found; nested exception is java.lang.NoSuchMethodException: org.springframework.context.annotation.ConfigurationClassPostProcessor.<init>()
[Wed Apr 27 22:55:44 EEST 2022][INFO] [SUB] at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:83) ~[?:?]
[Wed Apr 27 22:55:44 EEST 2022][INFO] [SUB] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:1326) ~[?:?]
[Wed Apr 27 22:55:44 EEST 2022][INFO] [SUB] ... 30 more
[Wed Apr 27 22:55:44 EEST 2022][INFO] [SUB] Caused by: java.lang.NoSuchMethodException: org.springframework.context.annotation.ConfigurationClassPostProcessor.<init>()
[Wed Apr 27 22:55:44 EEST 2022][INFO] [SUB] at java.lang.Class.getConstructor0(DynamicHub.java:3585) ~[league-team-comp.exe:?]
[Wed Apr 27 22:55:44 EEST 2022][INFO] [SUB] at java.lang.Class.getDeclaredConstructor(DynamicHub.java:2754) ~[league-team-comp.exe:?]
[Wed Apr 27 22:55:44 EEST 2022][INFO] [SUB] at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:78) ~[?:?]
[Wed Apr 27 22:55:44 EEST 2022][INFO] [SUB] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:1326) ~[?:?]
[Wed Apr 27 22:55:44 EEST 2022][INFO] [SUB] ... 30 more
[Wed Apr 27 22:55:44 EEST 2022][INFO] [SUB] Exception in Application start method
[Wed Apr 27 22:55:44 EEST 2022][INFO] [SUB] Exception in thread "main" java.lang.RuntimeException: Exception in Application start method
[Wed Apr 27 22:55:44 EEST 2022][INFO] [SUB] at com.sun.javafx.application.LauncherImpl.launchApplication1(LauncherImpl.java:901)
[Wed Apr 27 22:55:44 EEST 2022][INFO] [SUB] at com.sun.javafx.application.LauncherImpl.lambda$launchApplication$2(LauncherImpl.java:196)
[Wed Apr 27 22:55:44 EEST 2022][INFO] [SUB] at java.lang.Thread.run(Thread.java:833)
[Wed Apr 27 22:55:44 EEST 2022][INFO] [SUB] at com.oracle.svm.core.thread.JavaThreads.threadStartRoutine(JavaThreads.java:597)
[Wed Apr 27 22:55:44 EEST 2022][INFO] [SUB] at com.oracle.svm.core.windows.WindowsJavaThreads.osThreadStartRoutine(WindowsJavaThreads.java:140)
[Wed Apr 27 22:55:44 EEST 2022][INFO] [SUB] Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.context.annotation.internalConfigurationAnnotationProcessor': Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.context.annotation.ConfigurationClassPostProcessor]: No default constructor found; nested exception is java.lang.NoSuchMethodException: org.springframework.context.annotation.ConfigurationClassPostProcessor.<init>()
[Wed Apr 27 22:55:44 EEST 2022][INFO] [SUB] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:1334)
[Wed Apr 27 22:55:44 EEST 2022][INFO] [SUB] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1232)
[Wed Apr 27 22:55:44 EEST 2022][INFO] [SUB] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:582)
[Wed Apr 27 22:55:44 EEST 2022][INFO] [SUB] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542)
[Wed Apr 27 22:55:44 EEST 2022][INFO] [SUB] at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335)
[Wed Apr 27 22:55:44 EEST 2022][INFO] [SUB] at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)
[Wed Apr 27 22:55:44 EEST 2022][INFO] [SUB] at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333)
[Wed Apr 27 22:55:44 EEST 2022][INFO] [SUB] at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:213)
[Wed Apr 27 22:55:44 EEST 2022][INFO] [SUB] at org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanFactoryPostProcessors(PostProcessorRegistrationDelegate.java:106)
[Wed Apr 27 22:55:44 EEST 2022][INFO] [SUB] at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:746)
[Wed Apr 27 22:55:44 EEST 2022][INFO] [SUB] at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:564)
[Wed Apr 27 22:55:44 EEST 2022][INFO] [SUB] at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:740)
[Wed Apr 27 22:55:44 EEST 2022][INFO] [SUB] at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:415)
[Wed Apr 27 22:55:44 EEST 2022][INFO] [SUB] at org.springframework.boot.SpringApplication.run(SpringApplication.java:303)
[Wed Apr 27 22:55:44 EEST 2022][INFO] [SUB] at org.springframework.boot.SpringApplication.run(SpringApplication.java:1312)
[Wed Apr 27 22:55:44 EEST 2022][INFO] [SUB] at org.springframework.boot.SpringApplication.run(SpringApplication.java:1301)
[Wed Apr 27 22:55:44 EEST 2022][INFO] [SUB] at com.st4s1k.leagueteamcomp.LeagueTeamCompApplication.lambda$start$0(LeagueTeamCompApplication.java:78)
[Wed Apr 27 22:55:44 EEST 2022][INFO] [SUB] at com.gluonhq.ignite.spring.SpringContext.init(SpringContext.java:149)
[Wed Apr 27 22:55:44 EEST 2022][INFO] [SUB] at com.st4s1k.leagueteamcomp.LeagueTeamCompApplication.start(LeagueTeamCompApplication.java:78)
[Wed Apr 27 22:55:44 EEST 2022][INFO] [SUB] at com.sun.javafx.application.LauncherImpl.lambda$launchApplication1$9(LauncherImpl.java:847)
[Wed Apr 27 22:55:44 EEST 2022][INFO] [SUB] at com.sun.javafx.application.PlatformImpl.lambda$runAndWait$12(PlatformImpl.java:484)
[Wed Apr 27 22:55:44 EEST 2022][INFO] [SUB] at com.sun.javafx.application.PlatformImpl.lambda$runLater$10(PlatformImpl.java:457)
[Wed Apr 27 22:55:44 EEST 2022][INFO] [SUB] at java.security.AccessController.doPrivileged(AccessController.java:107)
[Wed Apr 27 22:55:44 EEST 2022][INFO] [SUB] at com.sun.javafx.application.PlatformImpl.lambda$runLater$11(PlatformImpl.java:456)
[Wed Apr 27 22:55:44 EEST 2022][INFO] [SUB] at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:96)
[Wed Apr 27 22:55:44 EEST 2022][INFO] [SUB] at com.oracle.svm.jni.JNIJavaCallWrappers.jniInvoke_VA_LIST_Runnable_run_16403f8d32adb631126daa893e5e80085c5d6325(JNIJavaCallWrappers.java:0)
[Wed Apr 27 22:55:44 EEST 2022][INFO] [SUB] at com.sun.glass.ui.win.WinApplication._runLoop(WinApplication.java)
[Wed Apr 27 22:55:44 EEST 2022][INFO] [SUB] at com.sun.glass.ui.win.WinApplication.lambda$runLoop$3(WinApplication.java:184)
[Wed Apr 27 22:55:44 EEST 2022][INFO] [SUB] ... 3 more
[Wed Apr 27 22:55:44 EEST 2022][INFO] [SUB] Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.context.annotation.ConfigurationClassPostProcessor]: No default constructor found; nested exception is java.lang.NoSuchMethodException: org.springframework.context.annotation.ConfigurationClassPostProcessor.<init>()
[Wed Apr 27 22:55:44 EEST 2022][INFO] [SUB] at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:83)
[Wed Apr 27 22:55:44 EEST 2022][INFO] [SUB] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:1326)
[Wed Apr 27 22:55:44 EEST 2022][INFO] [SUB] ... 30 more
[Wed Apr 27 22:55:44 EEST 2022][INFO] [SUB] Caused by: java.lang.NoSuchMethodException: org.springframework.context.annotation.ConfigurationClassPostProcessor.<init>()
[Wed Apr 27 22:55:44 EEST 2022][INFO] [SUB] at java.lang.Class.getConstructor0(DynamicHub.java:3585)
[Wed Apr 27 22:55:44 EEST 2022][INFO] [SUB] at java.lang.Class.getDeclaredConstructor(DynamicHub.java:2754)
[Wed Apr 27 22:55:44 EEST 2022][INFO] [SUB] at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:78)
[Wed Apr 27 22:55:44 EEST 2022][INFO] [SUB] ... 31 more
If this issue is still relevant in the latest GraalVM versions with the latest springboot, please create a new issue for it and follow the template provided. Thank you
I'm not sure if this is a GraalVM issue or Gluon issue, sorry. I get a NPE when trying to build the project. It appeared after I tried to integrate spring-boot into the project. I had other issues which I fixed by creating this file
resources/META-INF/substrate/config/initbuildtime
but then the current issue appeared.Expected Behavior
The build should not throw a NPE
Current Behavior
The build throws a NPE
Steps to Reproduce
mvn clean gluonfx:runagent gluonfx:build
My Environment
Platform: Windows 11 JDK: 17 GraalVM: graalvm-svm-java17-windows-gluon-22.0.0.3-Final