-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
Keycloak Integration #46435
Comments
/cc @pedroigor (keycloak), @sberyozkin (keycloak) |
@MustafaOtbah It can be hard to find out the cause without a reproducer, can you create it ? |
This is initialized before HTTP router accepts requests, so I don't think that stacktrace makes sense when Security extension is present (which it is judging by the fact you use OIDC). I am not sure how this can happen, but it is easy to make this bulletproof. I'll refactor it in a bit, shouldn't cost us (almost) anything. |
I wonder if this can occur close to Quarkus application shutdown @MustafaOtbah ? |
Hey, I think this #46438 should effectively limit possibility of NPE to zero. Thanks for info @MustafaOtbah , if you have more context or if you experience the issue once you upgrade to Quarkus with the fix, please let us know. |
@michalvavrik I think you are right, it could happen when the application shuts down. The application was running normally though but in development mode. I think there is a mechanism where some parts shut down when it compiles new code. Could this be the case? Unfortunately I am not aware of how to reproduce the error. The stacktrace does not help me either understand how it could happen unless I look into how Quarkus was written. But if I find some pattern I will definitely report it. Thanks for the fix. |
yes, it seems like the most likely candidate
np, thanks |
Describe the bug
We have integrated Keycloak and OIDC extensions with Quarkus version 3.18.3. Everything works fine, but once in a while we get the an exception about EagerSecurityHandler.instance being null upon sending a request to an endpoint that requires authorization.
Expected behavior
If some error is occuring on our side, it should be well reported by the system. If it is on Quarkus side, it should also be reported and recovered.
Actual behavior
How to Reproduce?
Not really sure how to replicate it.
Output of
uname -a
orver
Linux MustafaMachine 6.1.0-27-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.115-1 (2024-11-01) x86_64 GNU/Linux
Output of
java -version
openjdk version "17.0.13" 2024-10-15 OpenJDK Runtime Environment (build 17.0.13+11-Debian-2deb12u1) OpenJDK 64-Bit Server VM (build 17.0.13+11-Debian-2deb12u1, mixed mode, sharing)
Quarkus version or git rev
3.18.3
Build tool (ie. output of
mvnw --version
orgradlew --version
)Apache Maven 3.9.9 (8e8579a9e76f7d015ee5ec7bfcdc97d260186937) Maven home: /home/mustafa/.m2/wrapper/dists/apache-maven-3.9.9-bin/33b4b2b4/apache-maven-3.9.9 Java version: 17.0.13, vendor: Debian, runtime: /usr/lib/jvm/java-17-openjdk-amd64 Default locale: en_US, platform encoding: UTF-8 OS name: "linux", version: "6.1.0-27-amd64", arch: "amd64", family: "unix"
Additional information
No response
The text was updated successfully, but these errors were encountered: