<div dir="ltr"><div style=""><div style=""><div style=""><div style="font-size:12.8px"><div><div><div><span style="font-size:12.8px">I report an issue with &quot;</span><a href="http://keycloak.github.io/docs/rest-api/index.html#_update_the_client" target="_blank" style="font-size:12.8px">Update the events provider</a><span style="font-size:12.8px">&quot; via Admin REST API.</span><br></div></div><div><br></div><div>I want add <span style="color:rgb(51,51,51);font-family:&#39;Open Sans&#39;,Helvetica,Arial,sans-serif;font-size:12px;font-weight:600;line-height:20px;text-align:right">Event Listeners: email</span>. via </div><div>PUT http://&lt;URL&gt;:&lt;PORT&gt;/auth/admin/realms/universities/events/config</div><div><br></div><div>with body {&quot;eventsListeners&quot;:[ &quot;email&quot; ]}<br><br></div><div><u style="font-size:12.8px">But I got</u><span style="font-size:12.8px"> </span><span style="font-size:12.8px">Status Code: 500 Internal Server Error</span><br></div></div><br></div><div style=""><span style="font-size:12.8px"><u>2015-11-13 15:06:53,182 ERROR [io.undertow.request] (default task-11) UT005023: Exception handling request to /auth/admin/realms/universities/events/config: java.lang.RuntimeException: request path: /auth/admin/realms/universities/events/config</u></span></div><div style=""><span style="font-size:12.8px"><u>        at org.keycloak.services.filters.KeycloakSessionServletFilter.doFilter(KeycloakSessionServletFilter.java:75)</u></span></div><div style=""><span style="font-size:12.8px"><u>        at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:60)</u></span></div><div style=""><span style="font-size:12.8px"><u>        at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:132)</u></span></div><div style=""><span style="font-size:12.8px"><u>        at io.undertow.servlet.handlers.FilterHandler.handleRequest(FilterHandler.java:85)</u></span></div><div style=""><span style="font-size:12.8px"><u>        at io.undertow.servlet.handlers.security.ServletSecurityRoleHandler.handleRequest(ServletSecurityRoleHandler.java:62)</u></span></div><div style=""><span style="font-size:12.8px"><u>        at io.undertow.servlet.handlers.ServletDispatchingHandler.handleRequest(ServletDispatchingHandler.java:36)</u></span></div><div style=""><span style="font-size:12.8px"><u>        at org.wildfly.extension.undertow.security.SecurityContextAssociationHandler.handleRequest(SecurityContextAssociationHandler.java:78)</u></span></div><div style=""><span style="font-size:12.8px"><u>        at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)</u></span></div><div style=""><span style="font-size:12.8px"><u>        at io.undertow.servlet.handlers.security.SSLInformationAssociationHandler.handleRequest(SSLInformationAssociationHandler.java:131)</u></span></div><div style=""><span style="font-size:12.8px"><u>        at io.undertow.servlet.handlers.security.ServletAuthenticationCallHandler.handleRequest(ServletAuthenticationCallHandler.java:57)</u></span></div><div style=""><span style="font-size:12.8px"><u>        at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)</u></span></div><div style=""><span style="font-size:12.8px"><u>        at io.undertow.security.handlers.AbstractConfidentialityHandler.handleRequest(AbstractConfidentialityHandler.java:46)</u></span></div><div style=""><span style="font-size:12.8px"><u>        at io.undertow.servlet.handlers.security.ServletConfidentialityConstraintHandler.handleRequest(ServletConfidentialityConstraintHandler.java:64)</u></span></div><div style=""><span style="font-size:12.8px"><u>        at io.undertow.security.handlers.AuthenticationMechanismsHandler.handleRequest(AuthenticationMechanismsHandler.java:58)</u></span></div><div style=""><span style="font-size:12.8px"><u>        at io.undertow.servlet.handlers.security.CachedAuthenticatedSessionHandler.handleRequest(CachedAuthenticatedSessionHandler.java:72)</u></span></div><div style=""><span style="font-size:12.8px"><u>        at io.undertow.security.handlers.NotificationReceiverHandler.handleRequest(NotificationReceiverHandler.java:50)</u></span></div><div style=""><span style="font-size:12.8px"><u>        at io.undertow.security.handlers.SecurityInitialHandler.handleRequest(SecurityInitialHandler.java:76)</u></span></div><div style=""><span style="font-size:12.8px"><u>        at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)</u></span></div><div style=""><span style="font-size:12.8px"><u>        at org.wildfly.extension.undertow.security.jacc.JACCContextIdHandler.handleRequest(JACCContextIdHandler.java:61)</u></span></div><div style=""><span style="font-size:12.8px"><u>        at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)</u></span></div><div style=""><span style="font-size:12.8px"><u>        at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)</u></span></div><div style=""><span style="font-size:12.8px"><u>        at io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:282)</u></span></div><div style=""><span style="font-size:12.8px"><u>        at io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:261)</u></span></div><div style=""><span style="font-size:12.8px"><u>        at io.undertow.servlet.handlers.ServletInitialHandler.access$000(ServletInitialHandler.java:80)</u></span></div><div style=""><span style="font-size:12.8px"><u>        at io.undertow.servlet.handlers.ServletInitialHandler$1.handleRequest(ServletInitialHandler.java:172)</u></span></div><div style=""><span style="font-size:12.8px"><u>        at io.undertow.server.Connectors.executeRootHandler(Connectors.java:199)</u></span></div><div style=""><span style="font-size:12.8px"><u>        at io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:774)</u></span></div><div style=""><span style="font-size:12.8px"><u>        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)</u></span></div><div style=""><span style="font-size:12.8px"><u>        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)</u></span></div><div style=""><span style="font-size:12.8px"><u>        at java.lang.Thread.run(Thread.java:745)</u></span></div><div style=""><span style="font-size:12.8px"><u>Caused by: org.jboss.resteasy.spi.UnhandledException: java.lang.NullPointerException</u></span></div><div style=""><span style="font-size:12.8px"><u>        at org.jboss.resteasy.core.ExceptionHandler.handleApplicationException(ExceptionHandler.java:76)</u></span></div><div style=""><span style="font-size:12.8px"><u>        at org.jboss.resteasy.core.ExceptionHandler.handleException(ExceptionHandler.java:212)</u></span></div><div style=""><span style="font-size:12.8px"><u>        at org.jboss.resteasy.core.SynchronousDispatcher.writeException(SynchronousDispatcher.java:149)</u></span></div><div style=""><span style="font-size:12.8px"><u>        at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:372)</u></span></div><div style=""><span style="font-size:12.8px"><u>        at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:179)</u></span></div><div style=""><span style="font-size:12.8px"><u>        at org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher.service(ServletContainerDispatcher.java:220)</u></span></div><div style=""><span style="font-size:12.8px"><u>        at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:56)</u></span></div><div style=""><span style="font-size:12.8px"><u>        at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:51)</u></span></div><div style=""><span style="font-size:12.8px"><u>        at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)</u></span></div><div style=""><span style="font-size:12.8px"><u>        at io.undertow.servlet.handlers.ServletHandler.handleRequest(ServletHandler.java:86)</u></span></div><div style=""><span style="font-size:12.8px"><u>        at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:130)</u></span></div><div style=""><span style="font-size:12.8px"><u>        at org.keycloak.services.filters.KeycloakSessionServletFilter.doFilter(KeycloakSessionServletFilter.java:61)</u></span></div><div style=""><span style="font-size:12.8px"><u>        ... 29 more</u></span></div><div style=""><span style="font-size:12.8px"><u>Caused by: java.lang.NullPointerException</u></span></div><div style=""><span style="font-size:12.8px"><u>        at org.keycloak.services.managers.RealmManager.updateRealmEventsConfig(RealmManager.java:225)</u></span></div><div style=""><span style="font-size:12.8px"><u>        at org.keycloak.services.resources.admin.RealmAdminResource.updateRealmEventsConfig(RealmAdminResource.java:397)</u></span></div><div style=""><span style="font-size:12.8px"><u>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)</u></span></div><div style=""><span style="font-size:12.8px"><u>        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)</u></span></div><div style=""><span style="font-size:12.8px"><u>        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)</u></span></div><div style=""><span style="font-size:12.8px"><u>        at java.lang.reflect.Method.invoke(Method.java:606)</u></span></div><div style=""><span style="font-size:12.8px"><u>        at org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:137)</u></span></div><div style=""><span style="font-size:12.8px"><u>        at org.jboss.resteasy.core.ResourceMethodInvoker.invokeOnTarget(ResourceMethodInvoker.java:296)</u></span></div><div style=""><span style="font-size:12.8px"><u>        at org.jboss.resteasy.core.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:250)</u></span></div><div style=""><span style="font-size:12.8px"><u>        at org.jboss.resteasy.core.ResourceLocatorInvoker.invokeOnTargetObject(ResourceLocatorInvoker.java:140)</u></span></div><div style=""><span style="font-size:12.8px"><u>        at org.jboss.resteasy.core.ResourceLocatorInvoker.invoke(ResourceLocatorInvoker.java:109)</u></span></div><div style=""><span style="font-size:12.8px"><u>        at org.jboss.resteasy.core.ResourceLocatorInvoker.invokeOnTargetObject(ResourceLocatorInvoker.java:135)</u></span></div><div style=""><span style="font-size:12.8px"><u>        at org.jboss.resteasy.core.ResourceLocatorInvoker.invoke(ResourceLocatorInvoker.java:103)</u></span></div><div style=""><span style="font-size:12.8px"><u>        at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:356)</u></span></div><div style=""><span style="font-size:12.8px"><u>        ... 37 more</u></span></div><div style="font-size:12.8px"><br></div><br><br></div></div></div></div>