<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
PS: we did have another issue with 1.9.0.Final in that Keycloak failed to upgrade its database model from 1.9.0.RC1. We solved that simply by starting again with an empty database, as we import our realm every time anyway. I guess the database upgrade path
 from a release candidate version is not something that is supported in any case?
<div class=""><br class="">
</div>
<div class=""><br class="">
</div>
<div class="">
<div class="">&#27;[0m&#27;[0m08:41:42,161 INFO &nbsp;[org.keycloak.services] (ServerService Thread Pool -- 46) KC-SERVICES0001: Loading config from /opt/jboss/keycloak/standalone/configuration/keycloak-server.json</div>
<div class="">&#27;[0m&#27;[31m08:41:45,659 ERROR [org.keycloak.services] (ServerService Thread Pool -- 46) KC-SERVICES0002: Failed to migrate datamodel: java.lang.RuntimeException: Failed to update database</div>
<div class=""><span class="Apple-tab-span" style="white-space:pre"></span>at org.keycloak.connections.jpa.updater.liquibase.LiquibaseJpaUpdaterProvider.update(LiquibaseJpaUpdaterProvider.java:91)</div>
<div class=""><span class="Apple-tab-span" style="white-space:pre"></span>at org.keycloak.connections.jpa.DefaultJpaConnectionProviderFactory.lazyInit(DefaultJpaConnectionProviderFactory.java:170)</div>
<div class=""><span class="Apple-tab-span" style="white-space:pre"></span>at org.keycloak.connections.jpa.DefaultJpaConnectionProviderFactory.create(DefaultJpaConnectionProviderFactory.java:59)</div>
<div class=""><span class="Apple-tab-span" style="white-space:pre"></span>at org.keycloak.connections.jpa.DefaultJpaConnectionProviderFactory.create(DefaultJpaConnectionProviderFactory.java:47)</div>
<div class=""><span class="Apple-tab-span" style="white-space:pre"></span>at org.keycloak.services.DefaultKeycloakSession.getProvider(DefaultKeycloakSession.java:101)</div>
<div class=""><span class="Apple-tab-span" style="white-space:pre"></span>at org.keycloak.models.jpa.JpaRealmProviderFactory.create(JpaRealmProviderFactory.java:51)</div>
<div class=""><span class="Apple-tab-span" style="white-space:pre"></span>at org.keycloak.models.jpa.JpaRealmProviderFactory.create(JpaRealmProviderFactory.java:33)</div>
<div class=""><span class="Apple-tab-span" style="white-space:pre"></span>at org.keycloak.services.DefaultKeycloakSession.getProvider(DefaultKeycloakSession.java:101)</div>
<div class=""><span class="Apple-tab-span" style="white-space:pre"></span>at org.keycloak.models.cache.infinispan.locking.LockingCacheRealmProvider.getDelegate(LockingCacheRealmProvider.java:104)</div>
<div class=""><span class="Apple-tab-span" style="white-space:pre"></span>at org.keycloak.models.cache.infinispan.locking.LockingCacheRealmProvider.getMigrationModel(LockingCacheRealmProvider.java:97)</div>
<div class=""><span class="Apple-tab-span" style="white-space:pre"></span>at org.keycloak.migration.MigrationModelManager.migrate(MigrationModelManager.java:39)</div>
<div class=""><span class="Apple-tab-span" style="white-space:pre"></span>at org.keycloak.services.resources.KeycloakApplication.migrateModel(KeycloakApplication.java:152)</div>
<div class=""><span class="Apple-tab-span" style="white-space:pre"></span>at org.keycloak.services.resources.KeycloakApplication.&lt;init&gt;(KeycloakApplication.java:94)</div>
<div class=""><span class="Apple-tab-span" style="white-space:pre"></span>at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)</div>
<div class=""><span class="Apple-tab-span" style="white-space:pre"></span>at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)</div>
<div class=""><span class="Apple-tab-span" style="white-space:pre"></span>at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)</div>
<div class=""><span class="Apple-tab-span" style="white-space:pre"></span>at java.lang.reflect.Constructor.newInstance(Constructor.java:422)</div>
<div class=""><span class="Apple-tab-span" style="white-space:pre"></span>at org.jboss.resteasy.core.ConstructorInjectorImpl.construct(ConstructorInjectorImpl.java:150)</div>
<div class=""><span class="Apple-tab-span" style="white-space:pre"></span>at org.jboss.resteasy.spi.ResteasyProviderFactory.createProviderInstance(ResteasyProviderFactory.java:2209)</div>
<div class=""><span class="Apple-tab-span" style="white-space:pre"></span>at org.jboss.resteasy.spi.ResteasyDeployment.createApplication(ResteasyDeployment.java:299)</div>
<div class=""><span class="Apple-tab-span" style="white-space:pre"></span>at org.jboss.resteasy.spi.ResteasyDeployment.start(ResteasyDeployment.java:240)</div>
<div class=""><span class="Apple-tab-span" style="white-space:pre"></span>at org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher.init(ServletContainerDispatcher.java:113)</div>
<div class=""><span class="Apple-tab-span" style="white-space:pre"></span>at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.init(HttpServletDispatcher.java:36)</div>
<div class=""><span class="Apple-tab-span" style="white-space:pre"></span>at io.undertow.servlet.core.LifecyleInterceptorInvocation.proceed(LifecyleInterceptorInvocation.java:117)</div>
<div class=""><span class="Apple-tab-span" style="white-space:pre"></span>at org.wildfly.extension.undertow.security.RunAsLifecycleInterceptor.init(RunAsLifecycleInterceptor.java:78)</div>
<div class=""><span class="Apple-tab-span" style="white-space:pre"></span>at io.undertow.servlet.core.LifecyleInterceptorInvocation.proceed(LifecyleInterceptorInvocation.java:103)</div>
<div class=""><span class="Apple-tab-span" style="white-space:pre"></span>at io.undertow.servlet.core.ManagedServlet$DefaultInstanceStrategy.start(ManagedServlet.java:231)</div>
<div class=""><span class="Apple-tab-span" style="white-space:pre"></span>at io.undertow.servlet.core.ManagedServlet.createServlet(ManagedServlet.java:132)</div>
<div class=""><span class="Apple-tab-span" style="white-space:pre"></span>at io.undertow.servlet.core.DeploymentManagerImpl.start(DeploymentManagerImpl.java:526)</div>
<div class=""><span class="Apple-tab-span" style="white-space:pre"></span>at org.wildfly.extension.undertow.deployment.UndertowDeploymentService.startContext(UndertowDeploymentService.java:101)</div>
<div class=""><span class="Apple-tab-span" style="white-space:pre"></span>at org.wildfly.extension.undertow.deployment.UndertowDeploymentService$1.run(UndertowDeploymentService.java:82)</div>
<div class=""><span class="Apple-tab-span" style="white-space:pre"></span>at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)</div>
<div class=""><span class="Apple-tab-span" style="white-space:pre"></span>at java.util.concurrent.FutureTask.run(FutureTask.java:266)</div>
<div class=""><span class="Apple-tab-span" style="white-space:pre"></span>at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)</div>
<div class=""><span class="Apple-tab-span" style="white-space:pre"></span>at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)</div>
<div class=""><span class="Apple-tab-span" style="white-space:pre"></span>at java.lang.Thread.run(Thread.java:745)</div>
<div class=""><span class="Apple-tab-span" style="white-space:pre"></span>at org.jboss.threads.JBossThread.run(JBossThread.java:320)</div>
<div class="">Caused by: liquibase.exception.ValidationFailedException: Validation Failed:</div>
<div class="">&nbsp; &nbsp; &nbsp;1 change sets check sum</div>
<div class="">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; META-INF/jpa-changelog-1.9.0.xml::1.9.0::<a href="mailto:mposolda@redhat.com" class="">mposolda@redhat.com</a> is now: 7:ed2dc7f799d19ac452cbcda56c929e47</div>
<div class=""><br class="">
</div>
<div class=""><span class="Apple-tab-span" style="white-space:pre"></span>at liquibase.changelog.DatabaseChangeLog.validate(DatabaseChangeLog.java:206)</div>
<div class=""><span class="Apple-tab-span" style="white-space:pre"></span>at liquibase.Liquibase.listUnrunChangeSets(Liquibase.java:1139)</div>
<div class=""><span class="Apple-tab-span" style="white-space:pre"></span>at liquibase.Liquibase.listUnrunChangeSets(Liquibase.java:1126)</div>
<div class=""><span class="Apple-tab-span" style="white-space:pre"></span>at liquibase.Liquibase.listUnrunChangeSets(Liquibase.java:1122)</div>
<div class=""><span class="Apple-tab-span" style="white-space:pre"></span>at org.keycloak.connections.jpa.updater.liquibase.LiquibaseJpaUpdaterProvider.update(LiquibaseJpaUpdaterProvider.java:67)</div>
<div class=""><span class="Apple-tab-span" style="white-space:pre"></span>... 36 more</div>
<div class=""><br class="">
</div>
<div class=""><br class="">
<div>
<blockquote type="cite" class="">
<div class="">On 25 Feb 2016, at 09:32, Edgar Vonk - <a href="http://info.nl" class="">
Info.nl</a> &lt;<a href="mailto:Edgar@info.nl" class="">Edgar@info.nl</a>&gt; wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
Thanks Bill! Yes, the issue was indeed our version of the keycloak-server.json.
<div class=""><br class="">
<div class="">
<blockquote type="cite" class="">
<div class="">On 24 Feb 2016, at 20:46, Bill Burke &lt;<a href="mailto:bburke@redhat.com" class="">bburke@redhat.com</a>&gt; wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div bgcolor="#FFFFFF" text="#000000" class="">Please check the distributions keycloak-server.json, it is changed.&nbsp; standalone.xml has also changed to add an additional cache.<br class="">
<br class="">
<div class="moz-cite-prefix">On 2/24/2016 1:46 PM, Stian Thorgersen wrote:<br class="">
</div>
<blockquote cite="mid:CAJgngAdmjZcm0SGtmsezV9ygyAzFRFFoswp66_GVAJPJrR&#43;46A@mail.gmail.com" type="cite" class="">
<div dir="ltr" class="">Well,&nbsp;<a moz-do-not-send="true" href="https://github.com/keycloak/keycloak/blob/1.9.0.Final/model/infinispan/src/main/java/org/keycloak/models/cache/infinispan/InfinispanCacheUserProviderFactory.java#L58" class="">https://github.com/keycloak/keycloak/blob/1.9.0.Final/model/infinispan/src/main/java/org/keycloak/models/cache/infinispan/InfinispanCacheUserProviderFactory.java#L58</a>
 would be a start.
<div class=""><br class="">
</div>
<div class="">My guess is that&nbsp;<span style="color:rgb(51,51,51);font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;line-height:16.8px;white-space:pre;background-color:rgb(248,238,199)" class="">session</span><span class="" style="color:rgb(167,29,93);font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;line-height:16.8px;white-space:pre">.</span><span style="color:rgb(51,51,51);font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;line-height:16.8px;white-space:pre;background-color:rgb(248,238,199)" class="">getProvider(</span><span class="" style="color:rgb(51,51,51);font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;line-height:16.8px;white-space:pre">InfinispanConnectionProvider</span><span class="" style="color:rgb(167,29,93);font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;line-height:16.8px;white-space:pre">.</span><span style="color:rgb(51,51,51);font-famil!
 y:Consol
as,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;line-height:16.8px;white-space:pre;background-color:rgb(248,238,199)" class="">class)
</span>is returning null for some reason. When you say you've done customizations you've not described what you've done.</div>
</div>
<div class="gmail_extra"><br class="">
<div class="gmail_quote">On 24 February 2016 at 17:59, Edgar Vonk - <a href="http://info.nl/" class="">
Info.nl</a> <span dir="ltr" class="">&lt;<a moz-do-not-send="true" href="mailto:Edgar@info.nl" target="_blank" class="">Edgar@info.nl</a>&gt;</span> wrote:<br class="">
<blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">
hi,<br class="">
<br class="">
Starting from 1.9.0.Final (it was working ok in 1.9.0.RC1) our Keycloak Docker image no longer starts up. We get the following exception. We have made a number of customisations so I am guessing the issue is somewhere there. Maybe someone already has an idea
 where to look from this stack trace? We based our Docker image on <a moz-do-not-send="true" href="https://hub.docker.com/r/jboss/keycloak/" rel="noreferrer" target="_blank" class="">
https://hub.docker.com/r/jboss/keycloak/</a> but customised it quite a bit.<br class="">
<br class="">
cheers<br class="">
<br class="">
Edgar<br class="">
<br class="">
16:49:50,851 INFO&nbsp; [org.keycloak.services] (ServerService Thread Pool -- 46) KC-SERVICES0050: Initializing master realm<br class="">
16:49:52,621 ERROR [org.jboss.msc.service.fail] (ServerService Thread Pool -- 46) MSC000001: Failed to start service jboss.undertow.deployment.default-server.default-host./auth: org.jboss.msc.service.StartException in service jboss.undertow.deployment.default-server.default-host./auth:
 java.lang.RuntimeException: RESTEASY003325: Failed to construct public org.keycloak.services.resources.KeycloakApplication(javax.servlet.ServletContext,org.jboss.resteasy.core.Dispatcher)<br class="">
&nbsp; &nbsp; &nbsp; &nbsp; at org.wildfly.extension.undertow.deployment.UndertowDeploymentService$1.run(UndertowDeploymentService.java:85)<br class="">
&nbsp; &nbsp; &nbsp; &nbsp; at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)<br class="">
&nbsp; &nbsp; &nbsp; &nbsp; at java.util.concurrent.FutureTask.run(FutureTask.java:266)<br class="">
&nbsp; &nbsp; &nbsp; &nbsp; at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)<br class="">
&nbsp; &nbsp; &nbsp; &nbsp; at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)<br class="">
&nbsp; &nbsp; &nbsp; &nbsp; at java.lang.Thread.run(Thread.java:745)<br class="">
&nbsp; &nbsp; &nbsp; &nbsp; at org.jboss.threads.JBossThread.run(JBossThread.java:320)<br class="">
Caused by: java.lang.RuntimeException: RESTEASY003325: Failed to construct public org.keycloak.services.resources.KeycloakApplication(javax.servlet.ServletContext,org.jboss.resteasy.core.Dispatcher)<br class="">
&nbsp; &nbsp; &nbsp; &nbsp; at org.jboss.resteasy.core.ConstructorInjectorImpl.construct(ConstructorInjectorImpl.java:162)<br class="">
&nbsp; &nbsp; &nbsp; &nbsp; at org.jboss.resteasy.spi.ResteasyProviderFactory.createProviderInstance(ResteasyProviderFactory.java:2209)<br class="">
&nbsp; &nbsp; &nbsp; &nbsp; at org.jboss.resteasy.spi.ResteasyDeployment.createApplication(ResteasyDeployment.java:299)<br class="">
&nbsp; &nbsp; &nbsp; &nbsp; at org.jboss.resteasy.spi.ResteasyDeployment.start(ResteasyDeployment.java:240)<br class="">
&nbsp; &nbsp; &nbsp; &nbsp; at org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher.init(ServletContainerDispatcher.java:113)<br class="">
&nbsp; &nbsp; &nbsp; &nbsp; at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.init(HttpServletDispatcher.java:36)<br class="">
&nbsp; &nbsp; &nbsp; &nbsp; at io.undertow.servlet.core.LifecyleInterceptorInvocation.proceed(LifecyleInterceptorInvocation.java:117)<br class="">
&nbsp; &nbsp; &nbsp; &nbsp; at org.wildfly.extension.undertow.security.RunAsLifecycleInterceptor.init(RunAsLifecycleInterceptor.java:78)<br class="">
&nbsp; &nbsp; &nbsp; &nbsp; at io.undertow.servlet.core.LifecyleInterceptorInvocation.proceed(LifecyleInterceptorInvocation.java:103)<br class="">
&nbsp; &nbsp; &nbsp; &nbsp; at io.undertow.servlet.core.ManagedServlet$DefaultInstanceStrategy.start(ManagedServlet.java:231)<br class="">
&nbsp; &nbsp; &nbsp; &nbsp; at io.undertow.servlet.core.ManagedServlet.createServlet(ManagedServlet.java:132)<br class="">
&nbsp; &nbsp; &nbsp; &nbsp; at io.undertow.servlet.core.DeploymentManagerImpl.start(DeploymentManagerImpl.java:526)<br class="">
&nbsp; &nbsp; &nbsp; &nbsp; at org.wildfly.extension.undertow.deployment.UndertowDeploymentService.startContext(UndertowDeploymentService.java:101)<br class="">
&nbsp; &nbsp; &nbsp; &nbsp; at org.wildfly.extension.undertow.deployment.UndertowDeploymentService$1.run(UndertowDeploymentService.java:82)<br class="">
&nbsp; &nbsp; &nbsp; &nbsp; ... 6 more<br class="">
Caused by: java.lang.NullPointerException<br class="">
&nbsp; &nbsp; &nbsp; &nbsp; at org.keycloak.models.cache.infinispan.InfinispanCacheUserProviderFactory.lazyInit(InfinispanCacheUserProviderFactory.java:58)<br class="">
&nbsp; &nbsp; &nbsp; &nbsp; at org.keycloak.models.cache.infinispan.InfinispanCacheUserProviderFactory.create(InfinispanCacheUserProviderFactory.java:50)<br class="">
&nbsp; &nbsp; &nbsp; &nbsp; at org.keycloak.models.cache.infinispan.InfinispanCacheUserProviderFactory.create(InfinispanCacheUserProviderFactory.java:38)<br class="">
&nbsp; &nbsp; &nbsp; &nbsp; at org.keycloak.services.DefaultKeycloakSession.getProvider(DefaultKeycloakSession.java:101)<br class="">
&nbsp; &nbsp; &nbsp; &nbsp; at org.keycloak.services.DefaultKeycloakSession.getUserProvider(DefaultKeycloakSession.java:64)<br class="">
&nbsp; &nbsp; &nbsp; &nbsp; at org.keycloak.services.DefaultKeycloakSession.userStorage(DefaultKeycloakSession.java:90)<br class="">
&nbsp; &nbsp; &nbsp; &nbsp; at org.keycloak.models.UserFederationManager.getUsersCount(UserFederationManager.java:286)<br class="">
&nbsp; &nbsp; &nbsp; &nbsp; at org.keycloak.services.managers.ApplianceBootstrap.isNoMasterUser(ApplianceBootstrap.java:50)<br class="">
&nbsp; &nbsp; &nbsp; &nbsp; at org.keycloak.services.resources.KeycloakApplication.&lt;init&gt;(KeycloakApplication.java:134)<br class="">
&nbsp; &nbsp; &nbsp; &nbsp; at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)<br class="">
&nbsp; &nbsp; &nbsp; &nbsp; at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)<br class="">
&nbsp; &nbsp; &nbsp; &nbsp; at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)<br class="">
&nbsp; &nbsp; &nbsp; &nbsp; at java.lang.reflect.Constructor.newInstance(Constructor.java:422)<br class="">
&nbsp; &nbsp; &nbsp; &nbsp; at org.jboss.resteasy.core.ConstructorInjectorImpl.construct(ConstructorInjectorImpl.java:150)<br class="">
&nbsp; &nbsp; &nbsp; &nbsp; ... 19 more<br class="">
<br class="">
16:49:52,628 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) WFLYCTL0013: Operation (&quot;add&quot;) failed - address: ([(&quot;deployment&quot; =&gt; &quot;keycloak-server.war&quot;)]) - failure description: {&quot;WFLYCTL0080: Failed services&quot; =&gt; {&quot;jboss.undertow.deployment.default-server.default-host./auth&quot;
 =&gt; &quot;org.jboss.msc.service.StartException in service jboss.undertow.deployment.default-server.default-host./auth: java.lang.RuntimeException: RESTEASY003325: Failed to construct public org.keycloak.services.resources.KeycloakApplication(javax.servlet.ServletContext,org.jboss.resteasy.core.Dispatcher)<br class="">
&nbsp; &nbsp; Caused by: java.lang.RuntimeException: RESTEASY003325: Failed to construct public org.keycloak.services.resources.KeycloakApplication(javax.servlet.ServletContext,org.jboss.resteasy.core.Dispatcher)<br class="">
&nbsp; &nbsp; Caused by: java.lang.NullPointerException&quot;}}<br class="">
<br class="">
<br class="">
_______________________________________________<br class="">
keycloak-user mailing list<br class="">
<a moz-do-not-send="true" href="mailto:keycloak-user@lists.jboss.org" class="">keycloak-user@lists.jboss.org</a><br class="">
<a moz-do-not-send="true" href="https://lists.jboss.org/mailman/listinfo/keycloak-user" rel="noreferrer" target="_blank" class="">https://lists.jboss.org/mailman/listinfo/keycloak-user</a><br class="">
</blockquote>
</div>
<br class="">
</div>
<br class="">
<fieldset class="mimeAttachmentHeader"></fieldset> <br class="">
<pre wrap="" class="">_______________________________________________
keycloak-user mailing list
<a class="moz-txt-link-abbreviated" href="mailto:keycloak-user@lists.jboss.org">keycloak-user@lists.jboss.org</a>
<a class="moz-txt-link-freetext" href="https://lists.jboss.org/mailman/listinfo/keycloak-user">https://lists.jboss.org/mailman/listinfo/keycloak-user</a></pre>
</blockquote>
<br class="">
<pre class="moz-signature" cols="72">-- 
Bill Burke
JBoss, a division of Red Hat
<a class="moz-txt-link-freetext" href="http://bill.burkecentral.com/">http://bill.burkecentral.com</a></pre>
</div>
_______________________________________________<br class="">
keycloak-user mailing list<br class="">
<a href="mailto:keycloak-user@lists.jboss.org" class="">keycloak-user@lists.jboss.org</a><br class="">
<a href="https://lists.jboss.org/mailman/listinfo/keycloak-user" class="">https://lists.jboss.org/mailman/listinfo/keycloak-user</a></div>
</blockquote>
</div>
<br class="">
</div>
</div>
</div>
</blockquote>
</div>
<br class="">
</div>
</div>
</body>
</html>