<div dir="ltr">It seems related to <a href="https://issues.jboss.org/browse/KEYCLOAK-2431">https://issues.jboss.org/browse/KEYCLOAK-2431</a>. Do the same happens with 1.9.1.Final?</div><br><div class="gmail_quote"><div dir="ltr">On Thu, Apr 7, 2016 at 6:26 AM Gerard Laissard &lt;<a href="mailto:glaissard@axway.com">glaissard@axway.com</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">





<div lang="EN-US" link="blue" vlink="purple">
<div>
<p class="MsoNormal"><span lang="FR">Team,<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="FR"><u></u> <u></u></span></p>
<p class="MsoNormal">Keycloak server 1.9.0 fails to start.<u></u><u></u></p>
<p class="MsoNormal">Yesterday, I did try to play with client/role : Scope Param Required without any success.<u></u><u></u></p>
<p class="MsoNormal">I got server java.lang.StackOverflowError.<u></u><u></u></p>
<p class="MsoNormal">I stopped the server<u></u><u></u></p>
<p class="MsoNormal">Today when I start server, I have :<u></u><u></u></p>
<p class="MsoNormal">10:51:50,948 ERROR [org.keycloak.models.sessions.infinispan.initializer.InfinispanUserSessionInitializer] (ServerService Thread Pool -- 52) ExecutionException when computed future. Errors: 1: java.util.concurrent.ExecutionException: java.lang.StackOverflowError<u></u><u></u></p>
<p class="MsoNormal">               at java.util.concurrent.FutureTask.report(FutureTask.java:122)<u></u><u></u></p>
<p class="MsoNormal">               at java.util.concurrent.FutureTask.get(FutureTask.java:192)<u></u><u></u></p>
<p class="MsoNormal">               at org.keycloak.models.sessions.infinispan.initializer.InfinispanUserSessionInitializer.startLoading(InfinispanUserSessionInitializer.java:197)<u></u><u></u></p>
<p class="MsoNormal">               at org.keycloak.models.sessions.infinispan.initializer.InfinispanUserSessionInitializer.loadPersistentSessions(InfinispanUserSessionInitializer.java:88)<u></u><u></u></p>
<p class="MsoNormal">               at org.keycloak.models.sessions.infinispan.InfinispanUserSessionProviderFactory$2.run(InfinispanUserSessionProviderFactory.java:91)<u></u><u></u></p>
<p class="MsoNormal">               at org.keycloak.models.utils.KeycloakModelUtils.runJobInTransaction(KeycloakModelUtils.java:280)<u></u><u></u></p>
<p class="MsoNormal">               at org.keycloak.models.sessions.infinispan.InfinispanUserSessionProviderFactory.loadPersistentSessions(InfinispanUserSessionProviderFactory.java:82)<u></u><u></u></p>
<p class="MsoNormal">               at org.keycloak.models.sessions.infinispan.InfinispanUserSessionProviderFactory$1.onEvent(InfinispanUserSessionProviderFactory.java:71)<u></u><u></u></p>
<p class="MsoNormal">               at org.keycloak.services.DefaultKeycloakSessionFactory.publish(DefaultKeycloakSessionFactory.java:63)<u></u><u></u></p>
<p class="MsoNormal">               at org.keycloak.services.resources.KeycloakApplication.&lt;init&gt;(KeycloakApplication.java:141)<u></u><u></u></p>
<p class="MsoNormal">               at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)<u></u><u></u></p>
<p class="MsoNormal">               at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)<u></u><u></u></p>
<p class="MsoNormal">               at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)<u></u><u></u></p>
<p class="MsoNormal">               at java.lang.reflect.Constructor.newInstance(Constructor.java:423)<u></u><u></u></p>
<p class="MsoNormal">               at org.jboss.resteasy.core.ConstructorInjectorImpl.construct(ConstructorInjectorImpl.java:150)<u></u><u></u></p>
<p class="MsoNormal">               at org.jboss.resteasy.spi.ResteasyProviderFactory.createProviderInstance(ResteasyProviderFactory.java:2209)<u></u><u></u></p>
<p class="MsoNormal">               at org.jboss.resteasy.spi.ResteasyDeployment.createApplication(ResteasyDeployment.java:299)<u></u><u></u></p>
<p class="MsoNormal">               at org.jboss.resteasy.spi.ResteasyDeployment.start(ResteasyDeployment.java:240)<u></u><u></u></p>
<p class="MsoNormal">               at org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher.init(ServletContainerDispatcher.java:113)<u></u><u></u></p>
<p class="MsoNormal">               at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.init(HttpServletDispatcher.java:36)<u></u><u></u></p>
<p class="MsoNormal">               at io.undertow.servlet.core.LifecyleInterceptorInvocation.proceed(LifecyleInterceptorInvocation.java:117)<u></u><u></u></p>
<p class="MsoNormal">               at org.wildfly.extension.undertow.security.RunAsLifecycleInterceptor.init(RunAsLifecycleInterceptor.java:78)<u></u><u></u></p>
<p class="MsoNormal">               at io.undertow.servlet.core.LifecyleInterceptorInvocation.proceed(LifecyleInterceptorInvocation.java:103)<u></u><u></u></p>
<p class="MsoNormal">               at io.undertow.servlet.core.ManagedServlet$DefaultInstanceStrategy.start(ManagedServlet.java:231)<u></u><u></u></p>
<p class="MsoNormal">               at io.undertow.servlet.core.ManagedServlet.createServlet(ManagedServlet.java:132)<u></u><u></u></p>
<p class="MsoNormal">               at io.undertow.servlet.core.DeploymentManagerImpl.start(DeploymentManagerImpl.java:526)<u></u><u></u></p>
<p class="MsoNormal">               at org.wildfly.extension.undertow.deployment.UndertowDeploymentService.startContext(UndertowDeploymentService.java:101)<u></u><u></u></p>
<p class="MsoNormal">               at org.wildfly.extension.undertow.deployment.UndertowDeploymentService$1.run(UndertowDeploymentService.java:82)<u></u><u></u></p>
<p class="MsoNormal">               at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)<u></u><u></u></p>
<p class="MsoNormal">               at java.util.concurrent.FutureTask.run(FutureTask.java:266)<u></u><u></u></p>
<p class="MsoNormal">               at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)<u></u><u></u></p>
<p class="MsoNormal">               at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)<u></u><u></u></p>
<p class="MsoNormal">               at java.lang.Thread.run(Thread.java:745)<u></u><u></u></p>
<p class="MsoNormal">               at org.jboss.threads.JBossThread.run(JBossThread.java:320)<u></u><u></u></p>
<p class="MsoNormal">Caused by: java.lang.StackOverflowError<u></u><u></u></p>
<p class="MsoNormal">               at org.jboss.jca.adapters.jdbc.WrappedConnection.checkException(WrappedConnection.java:1958)<u></u><u></u></p>
<p class="MsoNormal">               at org.jboss.jca.adapters.jdbc.WrappedStatement.checkException(WrappedStatement.java:1446)<u></u><u></u></p>
<p class="MsoNormal">               at org.jboss.jca.adapters.jdbc.WrappedPreparedStatement.executeQuery(WrappedPreparedStatement.java:509)<u></u><u></u></p>
<p class="MsoNormal">               at org.hibernate.engine.jdbc.internal.ResultSetReturnImpl.extract(ResultSetReturnImpl.java:70)<u></u><u></u></p>
<p class="MsoNormal">               at org.hibernate.loader.Loader.getResultSet(Loader.java:2116)<u></u><u></u></p>
<p class="MsoNormal">               at org.hibernate.loader.Loader.executeQueryStatement(Loader.java:1899)<u></u><u></u></p>
<p class="MsoNormal">               at org.hibernate.loader.Loader.executeQueryStatement(Loader.java:1875)<u></u><u></u></p>
<p class="MsoNormal">               at org.hibernate.loader.Loader.doQuery(Loader.java:919)<u></u><u></u></p>
<p class="MsoNormal">               at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:336)<u></u><u></u></p>
<p class="MsoNormal">               at org.hibernate.loader.Loader.doList(Loader.java:2611)<u></u><u></u></p>
<p class="MsoNormal">               at org.hibernate.loader.Loader.doList(Loader.java:2594)<u></u><u></u></p>
<p class="MsoNormal">               at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2423)<u></u><u></u></p>
<p class="MsoNormal">               at org.hibernate.loader.Loader.list(Loader.java:2418)<u></u><u></u></p>
<p class="MsoNormal">               at org.hibernate.loader.hql.QueryLoader.list(QueryLoader.java:501)<u></u><u></u></p>
<p class="MsoNormal">               at org.hibernate.hql.internal.ast.QueryTranslatorImpl.list(QueryTranslatorImpl.java:371)<u></u><u></u></p>
<p class="MsoNormal">               at org.hibernate.engine.query.spi.HQLQueryPlan.performList(HQLQueryPlan.java:216)<u></u><u></u></p>
<p class="MsoNormal">               at org.hibernate.internal.SessionImpl.list(SessionImpl.java:1326)<u></u><u></u></p>
<p class="MsoNormal">               at org.hibernate.internal.QueryImpl.list(QueryImpl.java:87)<u></u><u></u></p>
<p class="MsoNormal">               at org.hibernate.jpa.internal.QueryImpl.list(QueryImpl.java:606)<u></u><u></u></p>
<p class="MsoNormal">               at org.hibernate.jpa.internal.QueryImpl.getResultList(QueryImpl.java:483)<u></u><u></u></p>
<p class="MsoNormal">               at org.keycloak.models.jpa.ClientAdapter.getScopeMappings(ClientAdapter.java:246)<u></u><u></u></p>
<p class="MsoNormal">               at org.keycloak.models.cache.entities.CachedClient.&lt;init&gt;(CachedClient.java:98)<u></u><u></u></p>
<p class="MsoNormal">               at org.keycloak.models.cache.infinispan.locking.entities.RevisionedCachedClient.&lt;init&gt;(RevisionedCachedClient.java:18)<u></u><u></u></p>
<p class="MsoNormal">               at org.keycloak.models.cache.infinispan.locking.LockingCacheRealmProvider.getClientById(LockingCacheRealmProvider.java:456)<u></u><u></u></p>
<p class="MsoNormal">               at org.keycloak.models.cache.infinispan.RealmAdapter.getClientById(RealmAdapter.java:631)<u></u><u></u></p>
<p class="MsoNormal">               at org.keycloak.models.jpa.RoleAdapter.getContainer(RoleAdapter.java:135)<u></u><u></u></p>
<p class="MsoNormal">               at org.keycloak.models.cache.infinispan.locking.LockingCacheRealmProvider.getRoleById(LockingCacheRealmProvider.java:397)<u></u><u></u></p>
<p class="MsoNormal">               at org.keycloak.models.cache.infinispan.RealmAdapter.getRoleById(RealmAdapter.java:543)<u></u><u></u></p>
<p class="MsoNormal">               at org.keycloak.models.jpa.ClientAdapter.getScopeMappings(ClientAdapter.java:249)<u></u><u></u></p>
<p class="MsoNormal">               at org.keycloak.models.cache.entities.CachedClient.&lt;init&gt;(CachedClient.java:98)<u></u><u></u></p>
<p class="MsoNormal">               at org.keycloak.models.cache.infinispan.locking.entities.RevisionedCachedClient.&lt;init&gt;(RevisionedCachedClient.java:18)<u></u><u></u></p>
<p class="MsoNormal">               at org.keycloak.models.cache.infinispan.locking.LockingCacheRealmProvider.getClientById(LockingCacheRealmProvider.java:456)<u></u><u></u></p>
<p class="MsoNormal">               at org.keycloak.models.cache.infinispan.RealmAdapter.getClientById(RealmAdapter.java:631)<u></u><u></u></p>
<p class="MsoNormal">               at org.keycloak.models.jpa.RoleAdapter.getContainer(RoleAdapter.java:135)<u></u><u></u></p>
<p class="MsoNormal">               at org.keycloak.models.cache.infinispan.locking.LockingCacheRealmProvider.getRoleById(LockingCacheRealmProvider.java:397)<u></u><u></u></p>
<p class="MsoNormal">               at org.keycloak.models.cache.infinispan.RealmAdapter.getRoleById(RealmAdapter.java:543)<u></u><u></u></p>
<p class="MsoNormal">               at org.keycloak.models.jpa.ClientAdapter.getScopeMappings(ClientAdapter.java:249)<u></u><u></u></p>
<p class="MsoNormal">               at org.keycloak.models.cache.entities.CachedClient.&lt;init&gt;(CachedClient.java:98)<u></u><u></u></p>
<p class="MsoNormal">               at org.keycloak.models.cache.infinispan.locking.entities.RevisionedCachedClient.&lt;init&gt;(RevisionedCachedClient.java:18)<u></u><u></u></p>
<p class="MsoNormal">               at org.keycloak.models.cache.infinispan.locking.LockingCacheRealmProvider.getClientById(LockingCacheRealmProvider.java:456)<u></u><u></u></p>
<p class="MsoNormal">               at org.keycloak.models.cache.infinispan.RealmAdapter.getClientById(RealmAdapter.java:631)<u></u><u></u></p>
<p class="MsoNormal">               at org.keycloak.models.jpa.RoleAdapter.getContainer(RoleAdapter.java:135)<u></u><u></u></p>
<p class="MsoNormal">               at org.keycloak.models.cache.infinispan.locking.LockingCacheRealmProvider.getRoleById(LockingCacheRealmProvider.java:397)<u></u><u></u></p>
<p class="MsoNormal">               at org.keycloak.models.cache.infinispan.RealmAdapter.getRoleById(RealmAdapter.java:543)<u></u><u></u></p>
<p class="MsoNormal">               at org.keycloak.models.jpa.ClientAdapter.getScopeMappings(ClientAdapter.java:249)<u></u><u></u></p>
<p class="MsoNormal">               at org.keycloak.models.cache.entities.CachedClient.&lt;init&gt;(CachedClient.java:98)<u></u><u></u></p>
<p class="MsoNormal">               at org.keycloak.models.cache.infinispan.locking.entities.RevisionedCachedClient.&lt;init&gt;(RevisionedCachedClient.java:18)<u></u><u></u></p>
<p class="MsoNormal">               at org.keycloak.models.cache.infinispan.locking.LockingCacheRealmProvider.getClientById(LockingCacheRealmProvider.java:456)<u></u><u></u></p>
<p class="MsoNormal">               at org.keycloak.models.cache.infinispan.RealmAdapter.getClientById(RealmAdapter.java:631)<u></u><u></u></p>
<p class="MsoNormal">               at org.keycloak.models.jpa.RoleAdapter.getContainer(RoleAdapter.java:135)<u></u><u></u></p>
<p class="MsoNormal">               at org.keycloak.models.cache.infinispan.locking.LockingCacheRealmProvider.getRoleById(LockingCacheRealmProvider.java:397)<u></u><u></u></p>
<p class="MsoNormal">               at org.keycloak.models.cache.infinispan.RealmAdapter.getRoleById(RealmAdapter.java:543)<u></u><u></u></p>
<p class="MsoNormal">               at org.keycloak.models.jpa.ClientAdapter.getScopeMappings(ClientAdapter.java:249)<u></u><u></u></p>
<p class="MsoNormal">               at org.keycloak.models.cache.entities.CachedClient.&lt;init&gt;(CachedClient.java:98)<u></u><u></u></p>
<p class="MsoNormal">…<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">What should I do ?<u></u><u></u></p>
<p class="MsoNormal">Thanks<u></u><u></u></p>
<p class="MsoNormal">Gerard<u></u><u></u></p>
</div>
</div>

_______________________________________________<br>
keycloak-user mailing list<br>
<a href="mailto:keycloak-user@lists.jboss.org" target="_blank">keycloak-user@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/keycloak-user" rel="noreferrer" target="_blank">https://lists.jboss.org/mailman/listinfo/keycloak-user</a></blockquote></div>