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

DevUI console no longer responds if you enter input before it boots #23674

Closed
gastaldi opened this issue Feb 14, 2022 · 0 comments · Fixed by #23675
Closed

DevUI console no longer responds if you enter input before it boots #23674

gastaldi opened this issue Feb 14, 2022 · 0 comments · Fixed by #23675
Assignees
Labels
Milestone

Comments

@gastaldi
Copy link
Contributor

Describe the bug

In a Quarkus app, if you type something before the app is initialized with mvn clean compile quarkus:dev, you'll get the following exception in the console and the input no longer works (you need to kill the process to Ctrl+C the application):

Exception in thread "Aesh InputStream Reader" java.lang.NullPointerException: Cannot invoke "io.quarkus.dev.console.QuarkusConsole$StateChangeInputStream.acceptInput(int)" because "redirectIn" is null
	at io.quarkus.deployment.console.AeshConsole.lambda$setup$1(AeshConsole.java:231)
	at org.aesh.terminal.EventDecoder.accept(EventDecoder.java:118)
	at org.aesh.terminal.EventDecoder.accept(EventDecoder.java:31)
	at org.aesh.terminal.io.Decoder.write(Decoder.java:133)
	at org.aesh.readline.tty.terminal.TerminalConnection.openBlocking(TerminalConnection.java:216)
	at org.aesh.readline.tty.terminal.TerminalConnection.openBlocking(TerminalConnection.java:203)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
	at java.base/java.lang.Thread.run(Thread.java:833)

Expected behavior

No errors and input works normally

Actual behavior

You can't input anything in the console while the app is running

How to Reproduce?

  1. Create a Quarkus application
  2. Run mvn clean compile quarkus:dev
  3. Start typing in the console before the application starts

Output of uname -a or ver

Darwin Kernel Version 21.3.0: Wed Jan 5 21:37:58 PST 2022; root:xnu-8019.80.24~20/RELEASE_ARM64_T6000 arm64

Output of java -version

OpenJDK 64-Bit Server VM Temurin-17.0.2+8 (build 17.0.2+8, mixed mode)

GraalVM version (if different from Java)

None

Quarkus version or git rev

2.7.1.Final

Build tool (ie. output of mvnw --version or gradlew --version)

Maven 3.8.4

Additional information

No response

@gastaldi gastaldi added the kind/bug Something isn't working label Feb 14, 2022
@gastaldi gastaldi self-assigned this Feb 14, 2022
famod pushed a commit that referenced this issue Feb 14, 2022
@quarkus-bot quarkus-bot bot added this to the 2.8 - main milestone Feb 14, 2022
@gsmet gsmet modified the milestones: 2.8 - main, 2.7.2.Final Feb 21, 2022
gsmet pushed a commit to gsmet/quarkus that referenced this issue Feb 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants