Uploaded image for project: 'Keycloak'
  1. Keycloak
  2. KEYCLOAK-2319

Cannot login to admin console after upgrade 1.6 -> 1.8.CR1

    XMLWordPrintable

    Details

      Description

      After upgrade I cannot login to admin console:
      Stack trace:

      2016/01/14 10:27:20,244 ERROR [org.keycloak.authentication.AuthenticationProcessor] (http-/127.10.220.129:8080-4) failed authentication: java.lang.NullPointerException
      	at org.keycloak.hash.PasswordHashManager.verify(PasswordHashManager.java:34) [keycloak-model-api-1.8.0.CR1.jar:1.8.0.CR1]
      	at org.keycloak.hash.PasswordHashManager.verify(PasswordHashManager.java:28) [keycloak-model-api-1.8.0.CR1.jar:1.8.0.CR1]
      	at org.keycloak.models.utils.CredentialValidation.validateHashedCredential(CredentialValidation.java:63) [keycloak-model-api-1.8.0.CR1.jar:1.8.0.CR1]
      	at org.keycloak.models.utils.CredentialValidation.validPassword(CredentialValidation.java:53) [keycloak-model-api-1.8.0.CR1.jar:1.8.0.CR1]
      	at org.keycloak.models.utils.CredentialValidation.validCredential(CredentialValidation.java:185) [keycloak-model-api-1.8.0.CR1.jar:1.8.0.CR1]
      	at org.keycloak.models.utils.CredentialValidation.validCredentials(CredentialValidation.java:163) [keycloak-model-api-1.8.0.CR1.jar:1.8.0.CR1]
      	at org.keycloak.models.jpa.JpaUserProvider.validCredentials(JpaUserProvider.java:502) [keycloak-model-jpa-1.8.0.CR1.jar:1.8.0.CR1]
      	at org.keycloak.models.cache.infinispan.DefaultCacheUserProvider.validCredentials(DefaultCacheUserProvider.java:303) [keycloak-invalidation-cache-infinispan-1.8.0.CR1.jar:1.8.0.CR1]
      	at org.keycloak.models.UserFederationManager.validCredentials(UserFederationManager.java:461) [keycloak-model-api-1.8.0.CR1.jar:1.8.0.CR1]
      	at org.keycloak.authentication.authenticators.browser.AbstractUsernameFormAuthenticator.validatePassword(AbstractUsernameFormAuthenticator.java:152) [keycloak-services-1.8.0.CR1.jar:1.8.0.CR1]
      	at org.keycloak.authentication.authenticators.browser.AbstractUsernameFormAuthenticator.validateUserAndPassword(AbstractUsernameFormAuthenticator.java:128) [keycloak-services-1.8.0.CR1.jar:1.8.0.CR1]
      	at org.keycloak.authentication.authenticators.browser.UsernamePasswordForm.validateForm(UsernamePasswordForm.java:41) [keycloak-services-1.8.0.CR1.jar:1.8.0.CR1]
      	at org.keycloak.authentication.authenticators.browser.UsernamePasswordForm.action(UsernamePasswordForm.java:34) [keycloak-services-1.8.0.CR1.jar:1.8.0.CR1]
      	at org.keycloak.authentication.DefaultAuthenticationFlow.processAction(DefaultAuthenticationFlow.java:70) [keycloak-services-1.8.0.CR1.jar:1.8.0.CR1]
      	at org.keycloak.authentication.DefaultAuthenticationFlow.processAction(DefaultAuthenticationFlow.java:61) [keycloak-services-1.8.0.CR1.jar:1.8.0.CR1]
      	at org.keycloak.authentication.AuthenticationProcessor.authenticationAction(AuthenticationProcessor.java:747) [keycloak-services-1.8.0.CR1.jar:1.8.0.CR1]
      	at org.keycloak.services.resources.LoginActionsService.processFlow(LoginActionsService.java:305) [keycloak-services-1.8.0.CR1.jar:1.8.0.CR1]
      	at org.keycloak.services.resources.LoginActionsService.processAuthentication(LoginActionsService.java:286) [keycloak-services-1.8.0.CR1.jar:1.8.0.CR1]
      	at org.keycloak.services.resources.LoginActionsService.authenticateForm(LoginActionsService.java:332) [keycloak-services-1.8.0.CR1.jar:1.8.0.CR1]
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.8.0_65]
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) [rt.jar:1.8.0_65]
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.8.0_65]
      	at java.lang.reflect.Method.invoke(Method.java:497) [rt.jar:1.8.0_65]
      	at org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:137) [resteasy-jaxrs-3.0.9.Final.jar:]
      	at org.jboss.resteasy.core.ResourceMethodInvoker.invokeOnTarget(ResourceMethodInvoker.java:296) [resteasy-jaxrs-3.0.9.Final.jar:]
      	at org.jboss.resteasy.core.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:250) [resteasy-jaxrs-3.0.9.Final.jar:]
      	at org.jboss.resteasy.core.ResourceLocatorInvoker.invokeOnTargetObject(ResourceLocatorInvoker.java:140) [resteasy-jaxrs-3.0.9.Final.jar:]
      	at org.jboss.resteasy.core.ResourceLocatorInvoker.invoke(ResourceLocatorInvoker.java:103) [resteasy-jaxrs-3.0.9.Final.jar:]
      	at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:356) [resteasy-jaxrs-3.0.9.Final.jar:]
      	at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:179) [resteasy-jaxrs-3.0.9.Final.jar:]
      	at org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher.service(ServletContainerDispatcher.java:220) [resteasy-jaxrs-3.0.9.Final.jar:]
      	at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:56) [resteasy-jaxrs-3.0.9.Final.jar:]
      	at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:51) [resteasy-jaxrs-3.0.9.Final.jar:]
      	at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) [jboss-servlet-api_3.0_spec.jar:1.0.2.Final-redhat-2]
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:295) [jbossweb.jar:7.5.10.Final-redhat-1]
      	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214) [jbossweb.jar:7.5.10.Final-redhat-1]
      	at org.keycloak.services.filters.KeycloakSessionServletFilter.doFilter(KeycloakSessionServletFilter.java:61) [keycloak-services-1.8.0.CR1.jar:1.8.0.CR1]
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:246) [jbossweb.jar:7.5.10.Final-redhat-1]
      	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214) [jbossweb.jar:7.5.10.Final-redhat-1]
      	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:231) [jbossweb.jar:7.5.10.Final-redhat-1]
      	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:149) [jbossweb.jar:7.5.10.Final-redhat-1]
      	at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:169) [jboss-as-web.jar:7.5.3.Final-redhat-2]
      	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:150) [jbossweb.jar:7.5.10.Final-redhat-1]
      	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:97) [jbossweb.jar:7.5.10.Final-redhat-1]
      	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:102) [jbossweb.jar:7.5.10.Final-redhat-1]
      	at org.apache.catalina.valves.RemoteIpValve.invoke(RemoteIpValve.java:621) [jbossweb.jar:7.5.10.Final-redhat-1]
      	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:344) [jbossweb.jar:7.5.10.Final-redhat-1]
      	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:854) [jbossweb.jar:7.5.10.Final-redhat-1]
      	at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:653) [jbossweb.jar:7.5.10.Final-redhat-1]
      	at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:926) [jbossweb.jar:7.5.10.Final-redhat-1]
      	at java.lang.Thread.run(Thread.java:745) [rt.jar:1.8.0_65]
      

      Do I miss some upgrade step in keycloak-server.json or whatever else ?

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  stianst Stian Thorgersen
                  Reporter:
                  lkrzyzanek Libor Krzy┼żanek
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: