[keycloak-user] Tried upgrading again (no luck)
Dean Peterson
peterson.dean at gmail.com
Mon Apr 13 09:19:08 EDT 2015
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.
On Mon, Apr 13, 2015 at 12:36 AM, Stian Thorgersen <stian at redhat.com> wrote:
> We've never released a "1.1.0-Alpha1" so I'm not sure what version you're
> referring to.
>
> Did you follow the migration guide in the docs? Specifically the part
> about migrating the database?
>
> The problem you're seeing is as the realm doesn't have a value for
> codeSecret, which was introduced in 1.1.0.Beta1 (
> https://issues.jboss.org/browse/KEYCLOAK-704). The migration feature
> takes care of adding that during upgrade.
>
> ----- Original Message -----
> > From: "Dean Peterson" <peterson.dean at gmail.com>
> > To: keycloak-user at lists.jboss.org
> > Sent: Monday, 13 April, 2015 2:57:11 AM
> > Subject: Re: [keycloak-user] Tried upgrading again (no luck)
> >
> > Actually, I get this error. The previous error I mentioned was due to an
> old
> > version of keycloak.js.
> >
> > This is the error I am getting:
> > (default task-12) UT005023: Exception handling request to
> > /auth/realms/abecorn/protocol/openid-connect/auth:
> > java.lang.RuntimeException: request path:
> > /auth/realms/abecorn/protocol/openid-connect/auth
> > at
> >
> org.keycloak.services.filters.KeycloakSessionServletFilter.doFilter(KeycloakSessionServletFilter.java:54)
> > [keycloak-services-1.2.0.Beta1.jar:1.2.0.Beta1]
> > at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:60)
> > [undertow-servlet-1.0.15.Final.jar:1.0.15.Final]
> > at
> >
> io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:132)
> > [undertow-servlet-1.0.15.Final.jar:1.0.15.Final]
> > at
> >
> io.undertow.servlet.handlers.FilterHandler.handleRequest(FilterHandler.java:85)
> > [undertow-servlet-1.0.15.Final.jar:1.0.15.Final]
> > at
> >
> io.undertow.servlet.handlers.security.ServletSecurityRoleHandler.handleRequest(ServletSecurityRoleHandler.java:61)
> > [undertow-servlet-1.0.15.Final.jar:1.0.15.Final]
> > at
> >
> io.undertow.servlet.handlers.ServletDispatchingHandler.handleRequest(ServletDispatchingHandler.java:36)
> > [undertow-servlet-1.0.15.Final.jar:1.0.15.Final]
> > at
> >
> org.wildfly.extension.undertow.security.SecurityContextAssociationHandler.handleRequest(SecurityContextAssociationHandler.java:78)
> > at
> >
> io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:25)
> > [undertow-core-1.0.15.Final.jar:1.0.15.Final]
> > at
> >
> io.undertow.servlet.handlers.security.SSLInformationAssociationHandler.handleRequest(SSLInformationAssociationHandler.java:113)
> > [undertow-servlet-1.0.15.Final.jar:1.0.15.Final]
> > at
> >
> io.undertow.servlet.handlers.security.ServletAuthenticationCallHandler.handleRequest(ServletAuthenticationCallHandler.java:56)
> > [undertow-servlet-1.0.15.Final.jar:1.0.15.Final]
> > at
> >
> io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:25)
> > [undertow-core-1.0.15.Final.jar:1.0.15.Final]
> > at
> >
> io.undertow.security.handlers.AbstractConfidentialityHandler.handleRequest(AbstractConfidentialityHandler.java:45)
> > [undertow-core-1.0.15.Final.jar:1.0.15.Final]
> > at
> >
> io.undertow.servlet.handlers.security.ServletConfidentialityConstraintHandler.handleRequest(ServletConfidentialityConstraintHandler.java:61)
> > [undertow-servlet-1.0.15.Final.jar:1.0.15.Final]
> > at
> >
> io.undertow.security.handlers.AuthenticationMechanismsHandler.handleRequest(AuthenticationMechanismsHandler.java:58)
> > [undertow-core-1.0.15.Final.jar:1.0.15.Final]
> > at
> >
> io.undertow.servlet.handlers.security.CachedAuthenticatedSessionHandler.handleRequest(CachedAuthenticatedSessionHandler.java:70)
> > [undertow-servlet-1.0.15.Final.jar:1.0.15.Final]
> > at
> >
> io.undertow.security.handlers.SecurityInitialHandler.handleRequest(SecurityInitialHandler.java:76)
> > [undertow-core-1.0.15.Final.jar:1.0.15.Final]
> > at
> >
> io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:25)
> > [undertow-core-1.0.15.Final.jar:1.0.15.Final]
> > at
> >
> org.wildfly.extension.undertow.security.jacc.JACCContextIdHandler.handleRequest(JACCContextIdHandler.java:61)
> > at
> >
> io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:25)
> > [undertow-core-1.0.15.Final.jar:1.0.15.Final]
> > at
> >
> io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:25)
> > [undertow-core-1.0.15.Final.jar:1.0.15.Final]
> > at
> >
> io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:240)
> > [undertow-servlet-1.0.15.Final.jar:1.0.15.Final]
> > at
> >
> io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:227)
> > [undertow-servlet-1.0.15.Final.jar:1.0.15.Final]
> > at
> >
> io.undertow.servlet.handlers.ServletInitialHandler.access$000(ServletInitialHandler.java:73)
> > [undertow-servlet-1.0.15.Final.jar:1.0.15.Final]
> > at
> >
> io.undertow.servlet.handlers.ServletInitialHandler$1.handleRequest(ServletInitialHandler.java:146)
> > [undertow-servlet-1.0.15.Final.jar:1.0.15.Final]
> > at io.undertow.server.Connectors.executeRootHandler(Connectors.java:177)
> > [undertow-core-1.0.15.Final.jar:1.0.15.Final]
> > at
> io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:727)
> > [undertow-core-1.0.15.Final.jar:1.0.15.Final]
> > at
> >
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
> > [rt.jar:1.8.0_31]
> > at
> >
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
> > [rt.jar:1.8.0_31]
> > at java.lang.Thread.run(Thread.java:745) [rt.jar:1.8.0_31]
> > Caused by: org.jboss.resteasy.spi.UnhandledException:
> > java.lang.RuntimeException: java.lang.NullPointerException
> > at
> >
> org.jboss.resteasy.core.ExceptionHandler.handleApplicationException(ExceptionHandler.java:76)
> > [resteasy-jaxrs-3.0.8.Final.jar:]
> > at
> >
> org.jboss.resteasy.core.ExceptionHandler.handleException(ExceptionHandler.java:212)
> > [resteasy-jaxrs-3.0.8.Final.jar:]
> > at
> >
> org.jboss.resteasy.core.SynchronousDispatcher.writeException(SynchronousDispatcher.java:149)
> > [resteasy-jaxrs-3.0.8.Final.jar:]
> > at
> >
> org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:372)
> > [resteasy-jaxrs-3.0.8.Final.jar:]
> > at
> >
> org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:179)
> > [resteasy-jaxrs-3.0.8.Final.jar:]
> > at
> >
> org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher.service(ServletContainerDispatcher.java:220)
> > [resteasy-jaxrs-3.0.8.Final.jar:]
> > at
> >
> org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:56)
> > [resteasy-jaxrs-3.0.8.Final.jar:]
> > at
> >
> org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:51)
> > [resteasy-jaxrs-3.0.8.Final.jar:]
> > at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
> > [jboss-servlet-api_3.1_spec-1.0.0.Final.jar:1.0.0.Final]
> > at
> >
> io.undertow.servlet.handlers.ServletHandler.handleRequest(ServletHandler.java:85)
> > [undertow-servlet-1.0.15.Final.jar:1.0.15.Final]
> > at
> >
> io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:130)
> > [undertow-servlet-1.0.15.Final.jar:1.0.15.Final]
> > at
> >
> org.keycloak.services.filters.ClientConnectionFilter.doFilter(ClientConnectionFilter.java:41)
> > [keycloak-services-1.2.0.Beta1.jar:1.2.0.Beta1]
> > at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:60)
> > [undertow-servlet-1.0.15.Final.jar:1.0.15.Final]
> > at
> >
> io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:132)
> > [undertow-servlet-1.0.15.Final.jar:1.0.15.Final]
> > at
> >
> org.keycloak.services.filters.KeycloakSessionServletFilter.doFilter(KeycloakSessionServletFilter.java:40)
> > [keycloak-services-1.2.0.Beta1.jar:1.2.0.Beta1]
> > ... 28 more
> > Caused by: java.lang.RuntimeException: java.lang.NullPointerException
> > at
> >
> org.keycloak.services.managers.ClientSessionCode.createHash(ClientSessionCode.java:171)
> > [keycloak-services-1.2.0.Beta1.jar:1.2.0.Beta1]
> > at
> >
> org.keycloak.services.managers.ClientSessionCode.generateCode(ClientSessionCode.java:151)
> > [keycloak-services-1.2.0.Beta1.jar:1.2.0.Beta1]
> > at
> >
> org.keycloak.services.managers.ClientSessionCode.getCode(ClientSessionCode.java:147)
> > [keycloak-services-1.2.0.Beta1.jar:1.2.0.Beta1]
> > at
> >
> org.keycloak.protocol.oidc.endpoints.AuthorizationEndpoint.buildAuthorizationCodeAuthorizationResponse(AuthorizationEndpoint.java:236)
> > [keycloak-services-1.2.0.Beta1.jar:1.2.0.Beta1]
> > at
> >
> org.keycloak.protocol.oidc.endpoints.AuthorizationEndpoint.build(AuthorizationEndpoint.java:100)
> > [keycloak-services-1.2.0.Beta1.jar:1.2.0.Beta1]
> > at sun.reflect.GeneratedMethodAccessor264.invoke(Unknown Source)
> [:1.8.0_31]
> > at
> >
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> > [rt.jar:1.8.0_31]
> > at java.lang.reflect.Method.invoke(Method.java:483) [rt.jar:1.8.0_31]
> > at
> >
> org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:137)
> > [resteasy-jaxrs-3.0.8.Final.jar:]
> > at
> >
> org.jboss.resteasy.core.ResourceMethodInvoker.invokeOnTarget(ResourceMethodInvoker.java:296)
> > [resteasy-jaxrs-3.0.8.Final.jar:]
> > at
> >
> org.jboss.resteasy.core.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:250)
> > [resteasy-jaxrs-3.0.8.Final.jar:]
> > at
> >
> org.jboss.resteasy.core.ResourceLocatorInvoker.invokeOnTargetObject(ResourceLocatorInvoker.java:140)
> > [resteasy-jaxrs-3.0.8.Final.jar:]
> > at
> >
> org.jboss.resteasy.core.ResourceLocatorInvoker.invoke(ResourceLocatorInvoker.java:109)
> > [resteasy-jaxrs-3.0.8.Final.jar:]
> > at
> >
> org.jboss.resteasy.core.ResourceLocatorInvoker.invokeOnTargetObject(ResourceLocatorInvoker.java:135)
> > [resteasy-jaxrs-3.0.8.Final.jar:]
> > at
> >
> org.jboss.resteasy.core.ResourceLocatorInvoker.invoke(ResourceLocatorInvoker.java:103)
> > [resteasy-jaxrs-3.0.8.Final.jar:]
> > at
> >
> org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:356)
> > [resteasy-jaxrs-3.0.8.Final.jar:]
> > ... 39 more
> > Caused by: java.lang.NullPointerException
> > at
> >
> org.keycloak.services.managers.ClientSessionCode.createHash(ClientSessionCode.java:164)
> > [keycloak-services-1.2.0.Beta1.jar:1.2.0.Beta1]
> >
> > On Sun, Apr 12, 2015 at 6:43 PM, Dean Peterson < peterson.dean at gmail.com
> >
> > wrote:
> >
> >
> >
> > I tried upgrading from 1.1.0-Alpha1 to 1.2.0.Beta1.jar. I get many errors
> > that look like this:
> >
> > [org.keycloak.protocol.oidc.endpoints.AuthorizationEndpoint] (default
> > task-122) Invoking deprecated endpoint
> >
> 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
> > 18:35:32,990 ERROR [io.undertow.request] (default task-122) UT005023:
> > Exception handling request to /auth/realms/abecorn/tokens/login
> >
> > Also, I had to copy the themes folder from the dist appliance because
> the war
> > distributable is missing the themes folder.
> >
> >
> > _______________________________________________
> > keycloak-user mailing list
> > keycloak-user at lists.jboss.org
> > https://lists.jboss.org/mailman/listinfo/keycloak-user
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/keycloak-user/attachments/20150413/ae23d428/attachment.html
More information about the keycloak-user
mailing list