<div dir="ltr">Hi Bruno,<div><br></div><div>thank you for your response. It is weird, but it works fine with 1.9.3.Final... I'm switching to 1.9.3.Final ;-)</div><div><br></div><div>Best regards,</div><div>Bystrik</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, May 4, 2016 at 12:16 PM, Bruno Oliveira <span dir="ltr"><<a href="mailto:bruno@abstractj.org" target="_blank">bruno@abstractj.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I'd recommend you to try 1.9.3.Final if possible. If the problem<br>
persists, please report the steps to reproduce and I can look at this.<br>
<div><div class="h5"><br>
On 2016-05-03, Bystrik Horvath wrote:<br>
> Hi,<br>
><br>
> I'm facing NullPointerException when log-in to security admin console after<br>
> importing the master realm.<br>
> I just wanted to access to master realm by SSL only, so I changed in<br>
> security admin console 'Require SSL' -to 'all requests' in the master realm<br>
> settings, saved and exported the master realm. After successful import -<br>
> using overwriting the existing strategy - I'm getting NPE after log-in to<br>
> master like follows below.<br>
> Is it a bug or do I do anything wrong by manipulating the master realm?<br>
><br>
> Best regards,<br>
> Bystrik<br>
><br>
> 12:35:12,820 ERROR [io.undertow.request] (default task-38) UT005023:<br>
> Exception handling request to /auth/admin/master/console/whoami:<br>
> org.jboss.resteasy.spi.UnhandledException: java.lang<br>
> .NullPointerException<br>
> at<br>
> org.jboss.resteasy.core.ExceptionHandler.handleApplicationException(ExceptionHandler.java:76)<br>
> at<br>
> org.jboss.resteasy.core.ExceptionHandler.handleException(ExceptionHandler.java:212)<br>
> at<br>
> org.jboss.resteasy.core.SynchronousDispatcher.writeException(SynchronousDispatcher.java:168)<br>
> at<br>
> org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:411)<br>
> at<br>
> org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:202)<br>
> at<br>
> org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher.service(ServletContainerDispatcher.java:221)<br>
> at<br>
> org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:56)<br>
> at<br>
> org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:51)<br>
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)<br>
> at<br>
> io.undertow.servlet.handlers.ServletHandler.handleRequest(ServletHandler.java:85)<br>
> at<br>
> io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:129)<br>
> at<br>
> org.keycloak.services.filters.KeycloakSessionServletFilter.doFilter(KeycloakSessionServletFilter.java:78)<br>
> at<br>
> io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:60)<br>
> at<br>
> io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:131)<br>
> at<br>
> io.undertow.servlet.handlers.FilterHandler.handleRequest(FilterHandler.java:84)<br>
> at<br>
> io.undertow.servlet.handlers.security.ServletSecurityRoleHandler.handleRequest(ServletSecurityRoleHandler.java:62)<br>
> at<br>
> io.undertow.servlet.handlers.ServletDispatchingHandler.handleRequest(ServletDispatchingHandler.java:36)<br>
> at<br>
> org.wildfly.extension.undertow.security.SecurityContextAssociationHandler.handleRequest(SecurityContextAssociationHandler.java:78)<br>
> at<br>
> io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)<br>
> at<br>
> io.undertow.servlet.handlers.security.SSLInformationAssociationHandler.handleRequest(SSLInformationAssociationHandler.java:131)<br>
> at<br>
> io.undertow.servlet.handlers.security.ServletAuthenticationCallHandler.handleRequest(ServletAuthenticationCallHandler.java:57)<br>
> at<br>
> io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)<br>
> at<br>
> io.undertow.security.handlers.AbstractConfidentialityHandler.handleRequest(AbstractConfidentialityHandler.java:46)<br>
> at<br>
> io.undertow.servlet.handlers.security.ServletConfidentialityConstraintHandler.handleRequest(ServletConfidentialityConstraintHandler.java:64)<br>
> at<br>
> io.undertow.security.handlers.AuthenticationMechanismsHandler.handleRequest(AuthenticationMechanismsHandler.java:60)<br>
> at<br>
> io.undertow.servlet.handlers.security.CachedAuthenticatedSessionHandler.handleRequest(CachedAuthenticatedSessionHandler.java:77)<br>
> at<br>
> io.undertow.security.handlers.NotificationReceiverHandler.handleRequest(NotificationReceiverHandler.java:50)<br>
> at<br>
> io.undertow.security.handlers.AbstractSecurityContextAssociationHandler.handleRequest(AbstractSecurityContextAssociationHandler.java:43)<br>
> at<br>
> io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)<br>
> at<br>
> org.wildfly.extension.undertow.security.jacc.JACCContextIdHandler.handleRequest(JACCContextIdHandler.java:61)<br>
> at<br>
> io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)<br>
> at<br>
> io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)<br>
> at<br>
> io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:284)<br>
> at<br>
> io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:263)<br>
> at<br>
> io.undertow.servlet.handlers.ServletInitialHandler.access$000(ServletInitialHandler.java:81)<br>
> at<br>
> io.undertow.servlet.handlers.ServletInitialHandler$1.handleRequest(ServletInitialHandler.java:174)<br>
> at<br>
> io.undertow.server.Connectors.executeRootHandler(Connectors.java:202)<br>
> at<br>
> io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:793)<br>
> at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)<br>
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown<br>
> Source)<br>
> at java.lang.Thread.run(Unknown Source)<br>
> Caused by: java.lang.NullPointerException<br>
> at<br>
> org.keycloak.services.resources.admin.AdminConsole.addMasterRealmAccess(AdminConsole.java:239)<br>
> at<br>
> org.keycloak.services.resources.admin.AdminConsole.whoAmI(AdminConsole.java:212)<br>
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)<br>
> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)<br>
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)<br>
> at java.lang.reflect.Method.invoke(Unknown Source)<br>
> at<br>
> org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:139)<br>
> at<br>
> org.jboss.resteasy.core.ResourceMethodInvoker.invokeOnTarget(ResourceMethodInvoker.java:295)<br>
> at<br>
> org.jboss.resteasy.core.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:249)<br>
> at<br>
> org.jboss.resteasy.core.ResourceLocatorInvoker.invokeOnTargetObject(ResourceLocatorInvoker.java:138)<br>
> at<br>
> org.jboss.resteasy.core.ResourceLocatorInvoker.invoke(ResourceLocatorInvoker.java:101)<br>
> at<br>
> org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:395)<br>
> ... 37 more<br>
<br>
</div></div>> _______________________________________________<br>
> keycloak-user mailing list<br>
> <a href="mailto:keycloak-user@lists.jboss.org">keycloak-user@lists.jboss.org</a><br>
> <a href="https://lists.jboss.org/mailman/listinfo/keycloak-user" rel="noreferrer" target="_blank">https://lists.jboss.org/mailman/listinfo/keycloak-user</a><br>
<br>
<br>
--<br>
<br>
abstractj<br>
PGP: 0x84DC9914<br>
</blockquote></div><br></div>