roskenet / spring-javafx-examples

Example apps for springboot-javafx-support. See
https://www.felixroske.de/page/programmierung/index.html
159 stars 66 forks source link

javafx started and then crashed #7

Closed alrazihi closed 3 years ago

alrazihi commented 6 years ago

16:32:52.014 [ForkJoinPool.commonPool-worker-1] ERROR de.felixroske.jfxsupport.AbstractJavaFxApplicationSupport - Failed to load spring application context: java.util.concurrent.CompletionException: java.lang.NoSuchMethodError: org.springframework.boot.SpringApplication.run(Ljava/lang/Class;[Ljava/lang/String;)Lorg/springframework/context/ConfigurableApplicationContext; at java.base/java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:314) at java.base/java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:319) at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1702) at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.exec(CompletableFuture.java:1692) at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:283) at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1603) at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:175) Caused by: java.lang.NoSuchMethodError: org.springframework.boot.SpringApplication.run(Ljava/lang/Class;[Ljava/lang/String;)Lorg/springframework/context/ConfigurableApplicationContext; at de.felixroske.jfxsupport.AbstractJavaFxApplicationSupport.lambda$init$1(AbstractJavaFxApplicationSupport.java:122) at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1700) ... 4 common frames omitted

krystofurr commented 6 years ago

I am getting the same error in my projects. I'm using Spring Roo 2.0.0.RC2 and it was working fine with version 1.3.1. It seems that in October this libraries Spring Boot Parent was updated to 2.0.0 M5. If I use version 1.4.5 it works fine. If I use the 2.0 versions, I get the same error. The spring boot version that Roo uses is 1.4.1.RELEASE.

I tried upgrading my project to 2.0.0 M5 for spring boot and tried 2.1.5. No luck. Still getting the error.

roskenet commented 6 years ago

Please see: https://github.com/roskenet/spring-javafx-examples/issues/6