Score:0

Keycloak Throws NullPointerException with RoleMappings

ar flag

Keycloak sometimes throws NPE and observed following error. We are creating SuperUser of type composite , but SuperUser is created without composite on and for other user Roles are not assigned .

2022-04-20T18:01:25.986113142-05:00 stdout F ^[[0m^[[32m23:01:25,986 DEBUG [org.keycloak.services.resources.admin.RoleMapperResource] (default task-1) ** addRealmRoleMappings: null 2022-04-20T18:01:25.986550005-05:00 stdout F ^[[0m^[[31m23:01:25,986 ERROR [org.keycloak.services.error.KeycloakErrorHandler] (default task-1) Uncaught server error: java.lang.NullPointerException 2022-04-20T18:01:25.98655527-05:00 stdout F at [email protected]//org.keycloak.services.resources.admin.RoleMapperResource.addRealmRoleMappings(RoleMapperResource.java:221) 2022-04-20T18:01:25.986558971-05:00 stdout F at jdk.internal.reflect.GeneratedMethodAccessor670.invoke(Unknown Source) 2022-04-20T18:01:25.986562495-05:00 stdout F at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 2022-04-20T18:01:25.986565789-05:00 stdout F at java.base/java.lang.reflect.Method.invoke(Method.java:566)

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.