[keycloak-dev] Testsuite broken?

Stan Silvert ssilvert at redhat.com
Fri Feb 8 14:00:39 EST 2019


Trying to run tests locally.  I did a clean build from master. Anyone 
know what is wrong?

java.lang.RuntimeException: RESTEASY003325: Failed to construct public 
org.keycloak.services.resources.KeycloakApplication(javax.servlet.ServletContext,org.jboss.resteasy.core.Dispatcher)
     at 
org.jboss.resteasy.core.ConstructorInjectorImpl.construct(ConstructorInjectorImpl.java:166)
     at 
org.jboss.resteasy.spi.ResteasyProviderFactory.createProviderInstance(ResteasyProviderFactory.java:2757)
     at 
org.jboss.resteasy.spi.ResteasyDeployment.createApplication(ResteasyDeployment.java:363)
     at 
org.jboss.resteasy.spi.ResteasyDeployment.startInternal(ResteasyDeployment.java:276)
     at 
org.jboss.resteasy.spi.ResteasyDeployment.start(ResteasyDeployment.java:88)
     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 
io.undertow.servlet.core.ManagedServlet$DefaultInstanceStrategy.start(ManagedServlet.java:300)
     at 
io.undertow.servlet.core.ManagedServlet.createServlet(ManagedServlet.java:140)
     at 
io.undertow.servlet.core.DeploymentManagerImpl$2.call(DeploymentManagerImpl.java:583)
     at 
io.undertow.servlet.core.DeploymentManagerImpl$2.call(DeploymentManagerImpl.java:554)
     at 
io.undertow.servlet.core.ServletRequestContextThreadSetupAction$1.call(ServletRequestContextThreadSetupAction.java:42)
     at 
io.undertow.servlet.core.ContextClassLoaderSetupAction$1.call(ContextClassLoaderSetupAction.java:43)
     at 
io.undertow.servlet.core.DeploymentManagerImpl.start(DeploymentManagerImpl.java:596)
     at 
org.jboss.resteasy.plugins.server.undertow.UndertowJaxrsServer.deploy(UndertowJaxrsServer.java:270)
     at 
org.keycloak.testsuite.arquillian.undertow.KeycloakOnUndertow.start(KeycloakOnUndertow.java:204)
     at 
org.jboss.arquillian.container.impl.ContainerImpl.start(ContainerImpl.java:179)
     at 
org.jboss.arquillian.container.impl.client.container.ContainerLifecycleController$8.perform(ContainerLifecycleController.java:137)
     at 
org.jboss.arquillian.container.impl.client.container.ContainerLifecycleController$8.perform(ContainerLifecycleController.java:133)
     at 
org.jboss.arquillian.container.impl.client.container.ContainerLifecycleController.forContainer(ContainerLifecycleController.java:208)
     at 
org.jboss.arquillian.container.impl.client.container.ContainerLifecycleController.startContainer(ContainerLifecycleController.java:133)
     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
     at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
     at java.lang.reflect.Method.invoke(Method.java:498)
     at 
org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:86)
     at 
org.jboss.arquillian.core.impl.EventContextImpl.invokeObservers(EventContextImpl.java:103)
     at 
org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:90)
     at 
org.jboss.arquillian.container.impl.client.ContainerDeploymentContextHandler.createContainerContext(ContainerDeploymentContextHandler.java:54)
     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
     at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
     at java.lang.reflect.Method.invoke(Method.java:498)
     at 
org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:86)
     at 
org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:95)
     at 
org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:133)
     at 
org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:105)
     at org.jboss.arquillian.core.impl.EventImpl.fire(EventImpl.java:62)
     at 
org.keycloak.testsuite.arquillian.AuthServerTestEnricher.startAuthContainer(AuthServerTestEnricher.java:321)
     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
     at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
     at java.lang.reflect.Method.invoke(Method.java:498)
     at 
org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:86)
     at 
org.jboss.arquillian.core.impl.EventContextImpl.invokeObservers(EventContextImpl.java:103)
     at 
org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:90)
     at 
org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:133)
     at 
org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:105)
     at org.jboss.arquillian.core.impl.EventImpl.fire(EventImpl.java:62)
     at 
org.jboss.arquillian.container.test.impl.client.ContainerEventController.execute(ContainerEventController.java:83)
     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
     at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
     at java.lang.reflect.Method.invoke(Method.java:498)
     at 
org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:86)
     at 
org.jboss.arquillian.core.impl.EventContextImpl.invokeObservers(EventContextImpl.java:103)
     at 
org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:90)
     at 
org.jboss.arquillian.test.impl.TestContextHandler.createSuiteContext(TestContextHandler.java:69)
     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
     at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
     at java.lang.reflect.Method.invoke(Method.java:498)
     at 
org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:86)
     at 
org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:95)
     at 
org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:133)
     at 
org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:105)
     at 
org.jboss.arquillian.test.impl.EventTestRunnerAdaptor.beforeSuite(EventTestRunnerAdaptor.java:70)
     at 
org.jboss.arquillian.junit.AdaptorManager.initializeAdaptor(AdaptorManager.java:23)
     at 
org.jboss.arquillian.junit.AdaptorManagerWithNotifier.initializeAdaptor(AdaptorManagerWithNotifier.java:19)
     at org.jboss.arquillian.junit.Arquillian.run(Arquillian.java:109)
     at 
org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:367)
     at 
org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:274)
     at 
org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:238)
     at 
org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:161)
     at 
org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:290)
     at 
org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:242)
     at 
org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:121)
Caused by: java.lang.RuntimeException: Failed to connect to database
     at 
org.keycloak.connections.jpa.DefaultJpaConnectionProviderFactory.getConnection(DefaultJpaConnectionProviderFactory.java:382)
     at 
org.keycloak.connections.jpa.updater.liquibase.lock.LiquibaseDBLockProvider.lazyInit(LiquibaseDBLockProvider.java:65)
     at 
org.keycloak.connections.jpa.updater.liquibase.lock.LiquibaseDBLockProvider.lambda$waitForLock$0(LiquibaseDBLockProvider.java:97)
     at 
org.keycloak.models.utils.KeycloakModelUtils.suspendJtaTransaction(KeycloakModelUtils.java:678)
     at 
org.keycloak.connections.jpa.updater.liquibase.lock.LiquibaseDBLockProvider.waitForLock(LiquibaseDBLockProvider.java:95)
     at 
org.keycloak.services.resources.KeycloakApplication$1.run(KeycloakApplication.java:148)
     at 
org.keycloak.models.utils.KeycloakModelUtils.runJobInTransaction(KeycloakModelUtils.java:227)
     at 
org.keycloak.services.resources.KeycloakApplication.<init>(KeycloakApplication.java:141)
     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:154)
     ... 77 more
Caused by: java.lang.ClassNotFoundException:
     at java.lang.Class.forName0(Native Method)
     at java.lang.Class.forName(Class.java:264)
     at 
org.keycloak.connections.jpa.DefaultJpaConnectionProviderFactory.getConnection(DefaultJpaConnectionProviderFactory.java:378)
     ... 89 more



More information about the keycloak-dev mailing list