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

NPE in DEV console command #27622

Closed
FroMage opened this issue Aug 31, 2022 · 0 comments · Fixed by #27625
Closed

NPE in DEV console command #27622

FroMage opened this issue Aug 31, 2022 · 0 comments · Fixed by #27625
Assignees
Labels
area/devmode kind/bug Something isn't working
Milestone

Comments

@FroMage
Copy link
Member

FroMage commented Aug 31, 2022

Describe the bug

I started my app with mvn clean quarkus:dev, opened the DEV console with : then typed postgres print-command and got an NPE:

You are now in Quarkus Terminal. Your app is still running. Use `help` or tab completion to explore, `quit` or `q` to return to your application.
quarkus$ postgres print-command 
java.lang.NullPointerException
quarkus$ 

The normal terminal has more info:

2022-08-31 11:46:36,602 WARNING [org.aes.rea.Process] (Thread-77) Uncaught exception when executing the command: io.quarkus.devservices.postgresql.deployment.PsqlCommand@78eb1c73: java.lang.RuntimeException: java.lang.NullPointerException
	at org.aesh.command.impl.Executions$ExecutionImpl.execute(Executions.java:237)
	at org.aesh.readline.Process.run(Process.java:80)
Caused by: java.lang.NullPointerException
	at io.quarkus.devservices.postgresql.deployment.PsqlCommand.execute(PsqlCommand.java:28)
	at org.aesh.command.impl.operator.EndOperator.execute(EndOperator.java:41)
	at org.aesh.command.impl.Executions$ExecutionImpl.execute(Executions.java:213)
	... 1 more

quarkus-dev-console-psql.zip

Expected behavior

No response

Actual behavior

No response

How to Reproduce?

No response

Output of uname -a or ver

No response

Output of java -version

No response

GraalVM version (if different from Java)

No response

Quarkus version or git rev

No response

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

No response

Additional information

No response

@FroMage FroMage added the kind/bug Something isn't working label Aug 31, 2022
@geoand geoand self-assigned this Aug 31, 2022
@geoand geoand closed this as completed in 40df996 Aug 31, 2022
geoand added a commit that referenced this issue Aug 31, 2022
Make 'postgres print-command' quarkus command work with reactive datasources
@quarkus-bot quarkus-bot bot added this to the 2.13 - main milestone Aug 31, 2022
fercomunello pushed a commit to fercomunello/quarkus that referenced this issue Aug 31, 2022
@gsmet gsmet modified the milestones: 2.13 - main, 2.12.1.Final Sep 5, 2022
gsmet pushed a commit to gsmet/quarkus that referenced this issue Sep 5, 2022
evanchooly pushed a commit to nenros/quarkus that referenced this issue Sep 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/devmode kind/bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants