[keycloak-user] Fwd: Join Group Issue in keycloak2.3.0 with mongo db
Jitendra Chouhan
jitendrachouhan03 at gmail.com
Fri Nov 18 03:56:53 EST 2016
Does anyone have idea about or faced problem in assigning group to user
when keycloak-2.3.0.Final instance runs with mongo database? For detailed
information please refer this email chain.
Thanks,
Jitendra Chouhan
---------- Forwarded message ----------
From: Jitendra Chouhan <jitendrachouhan03 at gmail.com>
Date: Thu, Nov 17, 2016 at 10:43 PM
Subject: Join Group Issue in keycloak2.3.0 with mongo db
To: keycloak-user at lists.jboss.org
Hi,
We are evaluating keycloak-2.3.0 in standalone mode as well as with docker
images. During our validations we came across issue with group assignment
to user. Please find below listed information.
Everything works fine when we do our testing keycloak-2.3.0 with default
configuration which uses h2 database internally. We encounter issue with
group assignment(others functionality working fine) when we use mongo db as
external database to store information. Just to let you know we have
configured mongo db related configuration in keycloak by referencing "
https://keycloak.gitbooks.io/server-installation-and-
configuration/content/v/2.3/topics/mongo.html" link.
Upon checking backed server logs we found below stack trace:
Caused by: java.lang.NullPointerException
at org.keycloak.models.mongo.keycloak.adapters.UserAdapter.
isMemberOf(UserAdapter.java:263)
at org.keycloak.models.cache.infinispan.UserAdapter.
isMemberOf(UserAdapter.java:368)
at org.keycloak.services.resources.admin.UsersResource.
joinGroup(UsersResource.java:992)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(
NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(
DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.jboss.resteasy.core.MethodInjectorImpl.invoke(
MethodInjectorImpl.java:139)
at org.jboss.resteasy.core.ResourceMethodInvoker.invokeOnTarget(
ResourceMethodInvoker.java:295)
at org.jboss.resteasy.core.ResourceMethodInvoker.invoke(
ResourceMethodInvoker.java:249)
at org.jboss.resteasy.core.ResourceLocatorInvoker.
invokeOnTargetObject(ResourceLocatorInvoker.java:138)
at org.jboss.resteasy.core.ResourceLocatorInvoker.invoke(
ResourceLocatorInvoker.java:107)
at org.jboss.resteasy.core.ResourceLocatorInvoker.
invokeOnTargetObject(ResourceLocatorInvoker.java:133)
at org.jboss.resteasy.core.ResourceLocatorInvoker.invoke(
ResourceLocatorInvoker.java:107)
at org.jboss.resteasy.core.ResourceLocatorInvoker.
invokeOnTargetObject(ResourceLocatorInvoker.java:133)
at org.jboss.resteasy.core.ResourceLocatorInvoker.invoke(
ResourceLocatorInvoker.java:101)
at org.jboss.resteasy.core.SynchronousDispatcher.invoke(
SynchronousDispatcher.java:395)
Everything works fine with keycloak-2.2.1 version. Please confirm if this
is an issue or something is wrong.
Thanks,
Jitendra Chouhan
More information about the keycloak-user
mailing list