Upgrade from 2.6.1 to 2.8.0 results in "Failed to start quarkus"
See original GitHub issueDescribe the bug
I developed with Quarkus 2.6.1. All worked fine. I could run and test the application, without any error.
Then, when I tried to upgrade to latest version 2.8.0, at start, I got a big exception chain, resulting in “Failed to start quarkus”.
Im not able to start the application, anymore.
The exception chain starts with:
20:52:26.970 WARN [Quarkus Main Thread] io.quarkus.arc.impl.ArcContainerImpl.shutdown - An error occurred during delivery of the @BeforeDestroyed(ApplicationScoped.class) event: javax.enterprise.inject.CreationException: Synthetic bean instance for io.quarkus.scheduler.runtime.SchedulerContext not initialized yet: io_quarkus_scheduler_runtime_SchedulerContext_97d170e1550eee4afc0af065b78cda302a97674c - a synthetic bean initialized during RUNTIME_INIT must not be accessed during STATIC_INIT - RUNTIME_INIT build steps that require access to synthetic beans initialized during RUNTIME_INIT should consume the SyntheticBeansRuntimeInitBuildItem … Caused by: java.lang.RuntimeException: Failed to start quarkus**
Expected behavior
Application should run, without errors, as with 2.6.1.
Actual behavior
Application does not start.
How to Reproduce?
<quarkus.platform.version>2.8.0.Final</quarkus.platform.version>
Output of uname -a or ver
Linux LAPTOP-KBBJVPB3 5.10.60.1-microsoft-standard-WSL2 #1 SMP Wed Aug 25 23:20:18 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
Output of java -version
openjdk 11.0.13 2021-10-19 LTS OpenJDK Runtime Environment Corretto-11.0.13.8.1 (build 11.0.13+8-LTS) OpenJDK 64-Bit Server VM Corretto-11.0.13.8.1 (build 11.0.13+8-LTS, mixed mode)
GraalVM version (if different from Java)
No response
Quarkus version or git rev
2.8.0.Final
Build tool (ie. output of mvnw --version or gradlew --version)
Apache Maven 3.8.4 (9b656c72d54e5bacbed989b64718c159fe39b537) Maven home: /usr/local/mvn Java version: 11.0.13, vendor: Amazon.com Inc., runtime: /opt/java/amazon-corretto-11.0.13.8.1-linux-x64 Default locale: en_US, platform encoding: UTF-8 OS name: “linux”, version: “5.10.60.1-microsoft-standard-wsl2”, arch: “amd64”, family: “unix”
Additional information
Issue_upgrading_from_261_to_280_results_in_Failed_to_star_quarkus.txt
Issue Analytics
- State:
- Created a year ago
- Comments:21 (16 by maintainers)
Top Related StackOverflow Question
Thanks for the information @gaetancollaud
Hello Michał Thank you for your reply. I don’t know what I could deliver to you as a “small reproducer”. It is an interface application, based on Quarkus and Camel, which connects an existing application to a new SAP system. There are hundreds of lines of code. The described error occurs when I replace the lines in the pom.xml: Old:
<quarkus.platform.version>2.6.1.Final</quarkus.platform.version>New:<quarkus.platform.version>2.8.0.Final</quarkus.platform.version>Kind regards Stephan