[keycloak-user] StackOverflowError when listing federated identities

Marek Posolda mposolda at redhat.com
Wed Dec 5 04:08:39 EST 2018


There is JIRA for this https://issues.jboss.org/browse/KEYCLOAK-9002 . 
Will try to resolve this for the next version.

Marek

On 27/11/2018 23:01, Wyllys Ingersoll wrote:
> Using Keycloak 4.6.0.Final, when I query for all users in a realm which is
> federated to an AD domain (only about 25 users in the domain), it pretty
> consistently throws exceptions (see below).
>
> Oddly enough, if I add the parameter "briefRepresentation=true", the list
> is returned successfully.  I can query for individual users just fine
> (brief or full).
>
> This was not an issue in 4.5.0, Im only seeing now that I upgraded to 4.6.0.
>
> Possibly a memory issue, but its hard to tell.
> Any ideas?
>
> thanks,
>     Wyllys Ingersoll
>
>
> 21:32:11,324 ERROR [org.keycloak.services.error.KeycloakErrorHandler]
> (default task-112) Uncaught server error: java.lang.StackOverflowError
> at sun.reflect.GeneratedMethodAccessor378.invoke(Unknown Source)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:498)
> at
> org.keycloak.connections.jpa.PersistenceExceptionConverter.invoke(PersistenceExceptionConverter.java:49)
> at com.sun.proxy.$Proxy92.find(Unknown Source)
> at
> org.keycloak.models.jpa.JpaUserProvider.getUserById(JpaUserProvider.java:520)
> at
> org.keycloak.storage.UserStorageManager.getUserById(UserStorageManager.java:369)
> at
> org.keycloak.models.cache.infinispan.UserAdapter.getUserModel(UserAdapter.java:399)
> at
> org.keycloak.models.cache.infinispan.DefaultLazyLoader.get(DefaultLazyLoader.java:42)
> at
> org.keycloak.models.cache.infinispan.entities.CachedUser.getRequiredActions(CachedUser.java:111)
> at
> org.keycloak.models.cache.infinispan.UserAdapter.getRequiredActions(UserAdapter.java:173)
> at
> org.keycloak.models.utils.UserModelDelegate.getRequiredActions(UserModelDelegate.java:99)
> at
> org.keycloak.models.utils.UserModelDelegate.getRequiredActions(UserModelDelegate.java:99)
> at
> org.keycloak.models.utils.UserModelDelegate.getRequiredActions(UserModelDelegate.java:99)
> at
> org.keycloak.models.utils.UserModelDelegate.getRequiredActions(UserModelDelegate.java:99)
> at
> org.keycloak.models.utils.UserModelDelegate.getRequiredActions(UserModelDelegate.java:99)
> at
> org.keycloak.storage.ldap.mappers.msad.MSADUserAccountControlStorageMapper$MSADUserModelDelegate.getRequiredActions(MSADUserAccountControlStorageMapper.java:305)
> at
> org.keycloak.models.cache.infinispan.DefaultLazyLoader.get(DefaultLazyLoader.java:43)
> at
> org.keycloak.models.cache.infinispan.entities.CachedUser.getRequiredActions(CachedUser.java:111)
> at
> org.keycloak.models.cache.infinispan.UserAdapter.getRequiredActions(UserAdapter.java:173)
> at
> org.keycloak.models.utils.UserModelDelegate.getRequiredActions(UserModelDelegate.java:99)
> at
> org.keycloak.models.utils.UserModelDelegate.getRequiredActions(UserModelDelegate.java:99)
> at
> org.keycloak.models.utils.UserModelDelegate.getRequiredActions(UserModelDelegate.java:99)
> at
> org.keycloak.models.utils.UserModelDelegate.getRequiredActions(UserModelDelegate.java:99)
> at
> org.keycloak.models.utils.UserModelDelegate.getRequiredActions(UserModelDelegate.java:99)
> at
> org.keycloak.storage.ldap.mappers.msad.MSADUserAccountControlStorageMapper$MSADUserModelDelegate.getRequiredActions(MSADUserAccountControlStorageMapper.java:305)
> at
> org.keycloak.models.cache.infinispan.DefaultLazyLoader.get(DefaultLazyLoader.java:43)
> at
> org.keycloak.models.cache.infinispan.entities.CachedUser.getRequiredActions(CachedUser.java:111)
> ...
> _______________________________________________
> keycloak-user mailing list
> keycloak-user at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/keycloak-user




More information about the keycloak-user mailing list