-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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 with shared Keycloak dev services when exiting Quarkus dev mode #33897
Comments
/cc @geoand (devservices), @pedroigor (keycloak), @sberyozkin (keycloak), @stuartwdouglas (devservices) |
Thanks @nielspardon. @jmartisk Hi Jan, do you recall if you had a similar set up for your book ? I recall you were fixing a few NPEs, do you recall what version it was working with ? |
My problem was in build-time processing (#29946), this doesn't look much related |
@nielspardon Can you please try Quarkus I've tried to reproduce it on
|
@nielspardon If this NPE persists for you even in |
Updated my reproducer steps to avoid the port conflicts |
Thanks for the quick response. I will provide a reproducer early next week. |
Here's a reproducer using Quarkus 2.16.7.Final And here's a branch with the same reproducer migrated to Quarkus 3.1.2.Final |
Thanks @nielspardon |
@nielspardon I opened a simple PR to avoid this NPE, sorry I asked you to create a reproducer, it should've been obvious to me the shared representation of the service has no its own image running :-). |
no worries, I just had to find the time to prepare the reproducer. I can understand that it might be helpful to see some context. |
Describe the bug
I have two Quarkus apps with separate Gradle builds and I am using shared Keycloak dev services. When I exit the Quarkus dev mode with
q + ENTER
I get the following error message with the app that is reusing the shared Keycloak dev service from the other one:Expected behavior
I would not expect it to throw an exception.
Actual behavior
It throws an NPE.
How to Reproduce?
No response
Output of
uname -a
orver
No response
Output of
java -version
openjdk 17.0.7 2023-04-18 OpenJDK Runtime Environment Temurin-17.0.7+7 (build 17.0.7+7) OpenJDK 64-Bit Server VM Temurin-17.0.7+7 (build 17.0.7+7, mixed mode, sharing)
GraalVM version (if different from Java)
No response
Quarkus version or git rev
2.16.6.Final
Build tool (ie. output of
mvnw --version
orgradlew --version
)Gradle 7.6.1
Additional information
No response
The text was updated successfully, but these errors were encountered: