Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

java.lang.IllegalStateException: Shutdown in progress exception while destroying Quarkus app #4100

Closed
gastaldi opened this issue Sep 18, 2019 · 0 comments · Fixed by #4101
Closed
Labels
kind/bug Something isn't working
Milestone

Comments

@gastaldi
Copy link
Contributor

Describe the bug
When CTRL+C'ing a Quarkus app, the following stacktrace appears in the console:

^C2019-09-18 18:07:28,429 ERROR [io.qua.run.StartupContext] (main) Running a shutdown task failed: java.lang.IllegalStateException: Shutdown in progress
	at java.lang.ApplicationShutdownHooks.add(ApplicationShutdownHooks.java:66)
	at java.lang.Runtime.addShutdownHook(Runtime.java:211)
	at io.vertx.core.file.impl.FileResolver.setupCacheDir(FileResolver.java:351)
	at io.vertx.core.file.impl.FileResolver.<init>(FileResolver.java:87)
	at io.vertx.core.impl.VertxImpl.<init>(VertxImpl.java:165)
	at io.vertx.core.impl.VertxImpl.vertx(VertxImpl.java:92)
	at io.vertx.core.impl.VertxFactoryImpl.vertx(VertxFactoryImpl.java:40)
	at io.vertx.core.impl.VertxFactoryImpl.vertx(VertxFactoryImpl.java:32)
	at io.vertx.core.Vertx.vertx(Vertx.java:85)
	at io.quarkus.vertx.core.runtime.VertxCoreRecorder.initialize(VertxCoreRecorder.java:133)
	at io.quarkus.vertx.core.runtime.VertxCoreRecorder$1.get(VertxCoreRecorder.java:52)
	at io.quarkus.vertx.core.runtime.VertxCoreRecorder$1.get(VertxCoreRecorder.java:45)
	at io.quarkus.vertx.core.runtime.VertxCoreRecorder.destroy(VertxCoreRecorder.java:168)
	at io.quarkus.vertx.core.runtime.VertxCoreRecorder$2.run(VertxCoreRecorder.java:64)
	at io.quarkus.runtime.StartupContext.close(StartupContext.java:43)
	at io.quarkus.runner.ApplicationImpl1.doStop(ApplicationImpl1.zig:172)
	at io.quarkus.runtime.Application.stop(Application.java:158)
	at io.quarkus.runtime.Application.run(Application.java:211)
	at io.quarkus.runner.GeneratedMain.main(GeneratedMain.zig:34)

Expected behavior
No stacktrace

Actual behavior
Shows stacktrace

To Reproduce
Steps to reproduce the behavior:

  1. Any Quarkus app running latest master
  2. Press Ctrl +C
  3. Stacktrace is shown

Environment (please complete the following information):

  • Output of uname -a or ver: Linux ggastald-laptop 5.2.13-200.fc30.x86_64 Switch to the Maven distributed copy of the SubstrateVM annotations #1 SMP Fri Sep 6 14:30:40 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

  • Output of java -version:
    openjdk version "1.8.0_212"
    OpenJDK Runtime Environment (AdoptOpenJDK)(build 1.8.0_212-b03)
    OpenJDK 64-Bit Server VM (AdoptOpenJDK)(build 25.212-b03, mixed mode)

  • GraalVM version (if different from Java):

  • Quarkus version or git rev: bf24401

Additional context
(Add any other context about the problem here.)

Doesn't happen with 0.22.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants