-
Notifications
You must be signed in to change notification settings - Fork 81
java.lang.NullpointerException:null error #34
Comments
@didi4456 What is the Keycloak's version you used? And please check and paste the Keycloak's log when NPE is occurred. |
@flytreeleft Thanks for looking into this. Keycloak version 8.0.1
|
This same issue occurred with Keycloak 8 for me. I've debugged it a bit, and realised that the Path generated contains a double slash: I've then removed the trailing slash from the It would probably make sense to check for this slash in the code, and strip it if this is something keycloak changed in the json |
@peschmae Thanks so much, the PR has been merged :). |
nexus3-keycloak-plugin-0.4.0-SNAPSHOT.zip @didi4456 Can you try to test the new compiled version as above? It contains the bugfix of PR #38. Note: please change the suffix |
@didi4456 I have created a pre-release version 0.3.5-pre0-SNAPSHOT, you can try it. |
Hi @flytreeleft, thank you! The new 0.3.5 snapshot works with nexus 3.19.1! It looks like there is a bug if using the 0.3.5 snapshot with nexus 3.20.0 though, I get a 403 error. But, that is a totally separate issue. Thanks for your help! |
@didi4456 Good news. :) Generally, the 403 error means that the Keycloak realm client (created for Nexus3) has no permission to read user, group or role, so just check the client permission following the README document. |
Hello,
I followed the steps to set up keycloak integration, but it isn't working correctly.
I am able to log in as a keycloak user, but a java.lang.NullPointerException notification pops up andthe nexus page is blank and has no options.
If I am logged into nexus as admin and Click on "Users" and change "Source" from local to keycloak, I'm unable to see the keycloak users and I get a "java.lang.NullPointerException" notification.
Using 0.3.4-snapshot plugin. I set up a different instance of nexus using the same plugin version a while back, but had no issues with it and followed the same configurations for this instance.
Nexus logs for logging in as keycloak user, "test"
Nexus logs when trying to view keycloak users as admin:
The text was updated successfully, but these errors were encountered: