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

Cannot instantiate WebAuthnCredentialProviderFactory with Jackson 2.10.0

    Details

    • Sprint:
      Keycloak Sprint 34
    • Steps to Reproduce:
      Hide
      1. Bump FasterXML version to 2.10.0
      2. Fix KeycloakOnUndertowConfiguration.java
        -    private Map<String, String> keycloakConfigPropertyOverridesMap;
        +    private Map<String, Object> keycloakConfigPropertyOverridesMap;
        
        -    public Map<String, String> getKeycloakConfigPropertyOverridesMap() {
        +    public Map<String, Object> getKeycloakConfigPropertyOverridesMap() {
        
      1. mvn clean install -Pdistribution -DskipTests
      2. Run server with standalone.sh
      Show
      Bump FasterXML version to 2.10.0 Fix KeycloakOnUndertowConfiguration.java - private Map< String , String > keycloakConfigPropertyOverridesMap; + private Map< String , Object > keycloakConfigPropertyOverridesMap; - public Map< String , String > getKeycloakConfigPropertyOverridesMap() { + public Map< String , Object > getKeycloakConfigPropertyOverridesMap() { mvn clean install -Pdistribution -DskipTests Run server with standalone.sh
    • Docs QE Status:
      NEW
    • QE Status:
      NEW

      Description

      When you update FasterXML version to 2.10.0 due to EAP 7.3.0.GA upgrade server won't start.

      Stacktrace:

      java.util.ServiceConfigurationError: org.keycloak.credential.CredentialProviderFactory: Provider org.keycloak.credential.WebAuthnCredentialProviderFactory could not be instantiated
      	at java.util.ServiceLoader.fail(ServiceLoader.java:232)
      	at java.util.ServiceLoader.access$100(ServiceLoader.java:185)
      	at java.util.ServiceLoader$LazyIterator.nextService(ServiceLoader.java:384)
      	at java.util.ServiceLoader$LazyIterator.next(ServiceLoader.java:404)
      	at java.util.ServiceLoader$1.next(ServiceLoader.java:480)
      	at org.keycloak.provider.DefaultProviderLoader.load(DefaultProviderLoader.java:60)
      	at org.keycloak.provider.ProviderManager.load(ProviderManager.java:93)
      	at org.keycloak.services.DefaultKeycloakSessionFactory.loadFactories(DefaultKeycloakSessionFactory.java:214)
      	at org.keycloak.services.DefaultKeycloakSessionFactory.init(DefaultKeycloakSessionFactory.java:78)
      	at org.keycloak.services.resources.KeycloakApplication.createSessionFactory(KeycloakApplication.java:268)
      	at org.keycloak.services.resources.KeycloakApplication.<init>(KeycloakApplication.java:105)
      	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
      	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
      	at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
      	at org.jboss.resteasy.core.ConstructorInjectorImpl.construct(ConstructorInjectorImpl.java:152)
      	at org.jboss.resteasy.spi.ResteasyProviderFactory.createProviderInstance(ResteasyProviderFactory.java:2784)
      	at org.jboss.resteasy.spi.ResteasyDeployment.createApplication(ResteasyDeployment.java:364)
      	at org.jboss.resteasy.spi.ResteasyDeployment.startInternal(ResteasyDeployment.java:277)
      	at org.jboss.resteasy.spi.ResteasyDeployment.start(ResteasyDeployment.java:89)
      	at org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher.init(ServletContainerDispatcher.java:119)
      	at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.init(HttpServletDispatcher.java:36)
      	at io.undertow.servlet.core.LifecyleInterceptorInvocation.proceed(LifecyleInterceptorInvocation.java:117)
      	at org.wildfly.extension.undertow.security.RunAsLifecycleInterceptor.init(RunAsLifecycleInterceptor.java:78)
      	at io.undertow.servlet.core.LifecyleInterceptorInvocation.proceed(LifecyleInterceptorInvocation.java:103)
      	at io.undertow.servlet.core.ManagedServlet$DefaultInstanceStrategy.start(ManagedServlet.java:305)
      	at io.undertow.servlet.core.ManagedServlet.createServlet(ManagedServlet.java:145)
      	at io.undertow.servlet.core.DeploymentManagerImpl$2.call(DeploymentManagerImpl.java:585)
      	at io.undertow.servlet.core.DeploymentManagerImpl$2.call(DeploymentManagerImpl.java:556)
      	at io.undertow.servlet.core.ServletRequestContextThreadSetupAction$1.call(ServletRequestContextThreadSetupAction.java:42)
      	at io.undertow.servlet.core.ContextClassLoaderSetupAction$1.call(ContextClassLoaderSetupAction.java:43)
      	at org.wildfly.extension.undertow.security.SecurityContextThreadSetupAction.lambda$create$0(SecurityContextThreadSetupAction.java:105)
      	at org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1504)
      	at org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1504)
      	at org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1504)
      	at org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1504)
      	at io.undertow.servlet.core.DeploymentManagerImpl.start(DeploymentManagerImpl.java:598)
      	at org.wildfly.extension.undertow.deployment.UndertowDeploymentService.startContext(UndertowDeploymentService.java:97)
      	at org.wildfly.extension.undertow.deployment.UndertowDeploymentService$1.run(UndertowDeploymentService.java:78)
      	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
      	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      	at org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35)
      	at org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:1982)
      	at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1486)
      	at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1377)
      	at java.lang.Thread.run(Thread.java:748)
      	at org.jboss.threads.JBossThread.run(JBossThread.java:485)
      Caused by: java.lang.NoClassDefFoundError: com/fasterxml/jackson/core/TSFBuilder
      	at com.webauthn4j.converter.util.CborConverter.<init>(CborConverter.java:67)
      	at org.keycloak.credential.WebAuthnCredentialProviderFactory.<clinit>(WebAuthnCredentialProviderFactory.java:27)
      	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
      	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
      	at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
      	at java.lang.Class.newInstance(Class.java:442)
      	at java.util.ServiceLoader$LazyIterator.nextService(ServiceLoader.java:380)
      	... 44 more
      Caused by: java.lang.ClassNotFoundException: com.fasterxml.jackson.core.TSFBuilder from [Module "com.fasterxml.jackson.dataformat.jackson-dataformat-cbor" version 2.10.0 from local module loader @63355449 (finder: local module finder @9353778 (roots: /home/mkanis/workspace/keycloak/distribution/server-dist/target/keycloak-9.0.0-SNAPSHOT/modules,/home/mkanis/workspace/keycloak/distribution/server-dist/target/keycloak-9.0.0-SNAPSHOT/modules/system/layers/keycloak,/home/mkanis/workspace/keycloak/distribution/server-dist/target/keycloak-9.0.0-SNAPSHOT/modules/system/layers/base))]
      	at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:255)
      	at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:410)
      	at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398)
      	at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:116)
      

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                mkanis Martin Kanis
                Reporter:
                mkanis Martin Kanis
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: