<div dir="ltr">It is a snapshot version. I was able to get it to work but I had to regenerate a secret for an applications in the realm. When I did that the code secret for the realm was somehow generated. I did the database migration prior to that (it even listed it had been migrated in the databaseChangeLog collection) but the code secret was still empty. </div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Apr 13, 2015 at 12:36 AM, Stian Thorgersen <span dir="ltr"><<a href="mailto:stian@redhat.com" target="_blank">stian@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">We've never released a "1.1.0-Alpha1" so I'm not sure what version you're referring to.<br>
<br>
Did you follow the migration guide in the docs? Specifically the part about migrating the database?<br>
<br>
The problem you're seeing is as the realm doesn't have a value for codeSecret, which was introduced in 1.1.0.Beta1 (<a href="https://issues.jboss.org/browse/KEYCLOAK-704" target="_blank">https://issues.jboss.org/browse/KEYCLOAK-704</a>). The migration feature takes care of adding that during upgrade.<br>
<div><div class="h5"><br>
----- Original Message -----<br>
> From: "Dean Peterson" <<a href="mailto:peterson.dean@gmail.com">peterson.dean@gmail.com</a>><br>
> To: <a href="mailto:keycloak-user@lists.jboss.org">keycloak-user@lists.jboss.org</a><br>
> Sent: Monday, 13 April, 2015 2:57:11 AM<br>
> Subject: Re: [keycloak-user] Tried upgrading again (no luck)<br>
><br>
> Actually, I get this error. The previous error I mentioned was due to an old<br>
> version of keycloak.js.<br>
><br>
> This is the error I am getting:<br>
> (default task-12) UT005023: Exception handling request to<br>
> /auth/realms/abecorn/protocol/openid-connect/auth:<br>
> java.lang.RuntimeException: request path:<br>
> /auth/realms/abecorn/protocol/openid-connect/auth<br>
> at<br>
> org.keycloak.services.filters.KeycloakSessionServletFilter.doFilter(KeycloakSessionServletFilter.java:54)<br>
> [keycloak-services-1.2.0.Beta1.jar:1.2.0.Beta1]<br>
> at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:60)<br>
> [undertow-servlet-1.0.15.Final.jar:1.0.15.Final]<br>
> at<br>
> io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:132)<br>
> [undertow-servlet-1.0.15.Final.jar:1.0.15.Final]<br>
> at<br>
> io.undertow.servlet.handlers.FilterHandler.handleRequest(FilterHandler.java:85)<br>
> [undertow-servlet-1.0.15.Final.jar:1.0.15.Final]<br>
> at<br>
> io.undertow.servlet.handlers.security.ServletSecurityRoleHandler.handleRequest(ServletSecurityRoleHandler.java:61)<br>
> [undertow-servlet-1.0.15.Final.jar:1.0.15.Final]<br>
> at<br>
> io.undertow.servlet.handlers.ServletDispatchingHandler.handleRequest(ServletDispatchingHandler.java:36)<br>
> [undertow-servlet-1.0.15.Final.jar:1.0.15.Final]<br>
> at<br>
> org.wildfly.extension.undertow.security.SecurityContextAssociationHandler.handleRequest(SecurityContextAssociationHandler.java:78)<br>
> at<br>
> io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:25)<br>
> [undertow-core-1.0.15.Final.jar:1.0.15.Final]<br>
> at<br>
> io.undertow.servlet.handlers.security.SSLInformationAssociationHandler.handleRequest(SSLInformationAssociationHandler.java:113)<br>
> [undertow-servlet-1.0.15.Final.jar:1.0.15.Final]<br>
> at<br>
> io.undertow.servlet.handlers.security.ServletAuthenticationCallHandler.handleRequest(ServletAuthenticationCallHandler.java:56)<br>
> [undertow-servlet-1.0.15.Final.jar:1.0.15.Final]<br>
> at<br>
> io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:25)<br>
> [undertow-core-1.0.15.Final.jar:1.0.15.Final]<br>
> at<br>
> io.undertow.security.handlers.AbstractConfidentialityHandler.handleRequest(AbstractConfidentialityHandler.java:45)<br>
> [undertow-core-1.0.15.Final.jar:1.0.15.Final]<br>
> at<br>
> io.undertow.servlet.handlers.security.ServletConfidentialityConstraintHandler.handleRequest(ServletConfidentialityConstraintHandler.java:61)<br>
> [undertow-servlet-1.0.15.Final.jar:1.0.15.Final]<br>
> at<br>
> io.undertow.security.handlers.AuthenticationMechanismsHandler.handleRequest(AuthenticationMechanismsHandler.java:58)<br>
> [undertow-core-1.0.15.Final.jar:1.0.15.Final]<br>
> at<br>
> io.undertow.servlet.handlers.security.CachedAuthenticatedSessionHandler.handleRequest(CachedAuthenticatedSessionHandler.java:70)<br>
> [undertow-servlet-1.0.15.Final.jar:1.0.15.Final]<br>
> at<br>
> io.undertow.security.handlers.SecurityInitialHandler.handleRequest(SecurityInitialHandler.java:76)<br>
> [undertow-core-1.0.15.Final.jar:1.0.15.Final]<br>
> at<br>
> io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:25)<br>
> [undertow-core-1.0.15.Final.jar:1.0.15.Final]<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:25)<br>
> [undertow-core-1.0.15.Final.jar:1.0.15.Final]<br>
> at<br>
> io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:25)<br>
> [undertow-core-1.0.15.Final.jar:1.0.15.Final]<br>
> at<br>
> io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:240)<br>
> [undertow-servlet-1.0.15.Final.jar:1.0.15.Final]<br>
> at<br>
> io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:227)<br>
> [undertow-servlet-1.0.15.Final.jar:1.0.15.Final]<br>
> at<br>
> io.undertow.servlet.handlers.ServletInitialHandler.access$000(ServletInitialHandler.java:73)<br>
> [undertow-servlet-1.0.15.Final.jar:1.0.15.Final]<br>
> at<br>
> io.undertow.servlet.handlers.ServletInitialHandler$1.handleRequest(ServletInitialHandler.java:146)<br>
> [undertow-servlet-1.0.15.Final.jar:1.0.15.Final]<br>
> at io.undertow.server.Connectors.executeRootHandler(Connectors.java:177)<br>
> [undertow-core-1.0.15.Final.jar:1.0.15.Final]<br>
> at io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:727)<br>
> [undertow-core-1.0.15.Final.jar:1.0.15.Final]<br>
> at<br>
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)<br>
> [rt.jar:1.8.0_31]<br>
> at<br>
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)<br>
> [rt.jar:1.8.0_31]<br>
> at java.lang.Thread.run(Thread.java:745) [rt.jar:1.8.0_31]<br>
> Caused by: org.jboss.resteasy.spi.UnhandledException:<br>
> java.lang.RuntimeException: java.lang.NullPointerException<br>
> at<br>
> org.jboss.resteasy.core.ExceptionHandler.handleApplicationException(ExceptionHandler.java:76)<br>
> [resteasy-jaxrs-3.0.8.Final.jar:]<br>
> at<br>
> org.jboss.resteasy.core.ExceptionHandler.handleException(ExceptionHandler.java:212)<br>
> [resteasy-jaxrs-3.0.8.Final.jar:]<br>
> at<br>
> org.jboss.resteasy.core.SynchronousDispatcher.writeException(SynchronousDispatcher.java:149)<br>
> [resteasy-jaxrs-3.0.8.Final.jar:]<br>
> at<br>
> org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:372)<br>
> [resteasy-jaxrs-3.0.8.Final.jar:]<br>
> at<br>
> org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:179)<br>
> [resteasy-jaxrs-3.0.8.Final.jar:]<br>
> at<br>
> org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher.service(ServletContainerDispatcher.java:220)<br>
> [resteasy-jaxrs-3.0.8.Final.jar:]<br>
> at<br>
> org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:56)<br>
> [resteasy-jaxrs-3.0.8.Final.jar:]<br>
> at<br>
> org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:51)<br>
> [resteasy-jaxrs-3.0.8.Final.jar:]<br>
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)<br>
> [jboss-servlet-api_3.1_spec-1.0.0.Final.jar:1.0.0.Final]<br>
> at<br>
> io.undertow.servlet.handlers.ServletHandler.handleRequest(ServletHandler.java:85)<br>
> [undertow-servlet-1.0.15.Final.jar:1.0.15.Final]<br>
> at<br>
> io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:130)<br>
> [undertow-servlet-1.0.15.Final.jar:1.0.15.Final]<br>
> at<br>
> org.keycloak.services.filters.ClientConnectionFilter.doFilter(ClientConnectionFilter.java:41)<br>
> [keycloak-services-1.2.0.Beta1.jar:1.2.0.Beta1]<br>
> at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:60)<br>
> [undertow-servlet-1.0.15.Final.jar:1.0.15.Final]<br>
> at<br>
> io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:132)<br>
> [undertow-servlet-1.0.15.Final.jar:1.0.15.Final]<br>
> at<br>
> org.keycloak.services.filters.KeycloakSessionServletFilter.doFilter(KeycloakSessionServletFilter.java:40)<br>
> [keycloak-services-1.2.0.Beta1.jar:1.2.0.Beta1]<br>
> ... 28 more<br>
> Caused by: java.lang.RuntimeException: java.lang.NullPointerException<br>
> at<br>
> org.keycloak.services.managers.ClientSessionCode.createHash(ClientSessionCode.java:171)<br>
> [keycloak-services-1.2.0.Beta1.jar:1.2.0.Beta1]<br>
> at<br>
> org.keycloak.services.managers.ClientSessionCode.generateCode(ClientSessionCode.java:151)<br>
> [keycloak-services-1.2.0.Beta1.jar:1.2.0.Beta1]<br>
> at<br>
> org.keycloak.services.managers.ClientSessionCode.getCode(ClientSessionCode.java:147)<br>
> [keycloak-services-1.2.0.Beta1.jar:1.2.0.Beta1]<br>
> at<br>
> org.keycloak.protocol.oidc.endpoints.AuthorizationEndpoint.buildAuthorizationCodeAuthorizationResponse(AuthorizationEndpoint.java:236)<br>
> [keycloak-services-1.2.0.Beta1.jar:1.2.0.Beta1]<br>
> at<br>
> org.keycloak.protocol.oidc.endpoints.AuthorizationEndpoint.build(AuthorizationEndpoint.java:100)<br>
> [keycloak-services-1.2.0.Beta1.jar:1.2.0.Beta1]<br>
> at sun.reflect.GeneratedMethodAccessor264.invoke(Unknown Source) [:1.8.0_31]<br>
> at<br>
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)<br>
> [rt.jar:1.8.0_31]<br>
> at java.lang.reflect.Method.invoke(Method.java:483) [rt.jar:1.8.0_31]<br>
> at<br>
> org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:137)<br>
> [resteasy-jaxrs-3.0.8.Final.jar:]<br>
> at<br>
> org.jboss.resteasy.core.ResourceMethodInvoker.invokeOnTarget(ResourceMethodInvoker.java:296)<br>
> [resteasy-jaxrs-3.0.8.Final.jar:]<br>
> at<br>
> org.jboss.resteasy.core.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:250)<br>
> [resteasy-jaxrs-3.0.8.Final.jar:]<br>
> at<br>
> org.jboss.resteasy.core.ResourceLocatorInvoker.invokeOnTargetObject(ResourceLocatorInvoker.java:140)<br>
> [resteasy-jaxrs-3.0.8.Final.jar:]<br>
> at<br>
> org.jboss.resteasy.core.ResourceLocatorInvoker.invoke(ResourceLocatorInvoker.java:109)<br>
> [resteasy-jaxrs-3.0.8.Final.jar:]<br>
> at<br>
> org.jboss.resteasy.core.ResourceLocatorInvoker.invokeOnTargetObject(ResourceLocatorInvoker.java:135)<br>
> [resteasy-jaxrs-3.0.8.Final.jar:]<br>
> at<br>
> org.jboss.resteasy.core.ResourceLocatorInvoker.invoke(ResourceLocatorInvoker.java:103)<br>
> [resteasy-jaxrs-3.0.8.Final.jar:]<br>
> at<br>
> org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:356)<br>
> [resteasy-jaxrs-3.0.8.Final.jar:]<br>
> ... 39 more<br>
> Caused by: java.lang.NullPointerException<br>
> at<br>
> org.keycloak.services.managers.ClientSessionCode.createHash(ClientSessionCode.java:164)<br>
> [keycloak-services-1.2.0.Beta1.jar:1.2.0.Beta1]<br>
><br>
> On Sun, Apr 12, 2015 at 6:43 PM, Dean Peterson < <a href="mailto:peterson.dean@gmail.com">peterson.dean@gmail.com</a> ><br>
> wrote:<br>
><br>
><br>
><br>
> I tried upgrading from 1.1.0-Alpha1 to 1.2.0.Beta1.jar. I get many errors<br>
> that look like this:<br>
><br>
> [org.keycloak.protocol.oidc.endpoints.AuthorizationEndpoint] (default<br>
> task-122) Invoking deprecated endpoint<br>
> <a href="http://localhost:8080/auth/realms/abecorn/tokens/login?client_id=trade-client&redirect_uri=http%3A%2F%2Flocalhost%3A9001%2F%3Fredirect_fragment%3D%252F&state=150ce43d-1f7e-4462-8156-c3fbb5dcd92b&response_type=code" target="_blank">http://localhost:8080/auth/realms/abecorn/tokens/login?client_id=trade-client&redirect_uri=http%3A%2F%2Flocalhost%3A9001%2F%3Fredirect_fragment%3D%252F&state=150ce43d-1f7e-4462-8156-c3fbb5dcd92b&response_type=code</a><br>
> 18:35:32,990 ERROR [io.undertow.request] (default task-122) UT005023:<br>
> Exception handling request to /auth/realms/abecorn/tokens/login<br>
><br>
> Also, I had to copy the themes folder from the dist appliance because the war<br>
> distributable is missing the themes folder.<br>
><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" target="_blank">https://lists.jboss.org/mailman/listinfo/keycloak-user</a><br>
</blockquote></div><br></div>