<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px;"><div style="font-family: Calibri, sans-serif;">Hello all,</div><div style="font-family: Calibri, sans-serif;"><br></div><div style="font-family: Calibri, sans-serif;">I want to upgrade several keycloak 1.2.0Final environments (running on MS SQL database) to keycloak 1.7.0Final</div><div style="font-family: Calibri, sans-serif;"><br></div><div style="font-family: Calibri, sans-serif;">The keycloak-server.json is configured with:</div><div style="font-family: Calibri, sans-serif;"><br></div><div><div><font face="Courier">"connectionsJpa": {</font></div><div><font face="Courier"> "default": {</font></div><div><font face="Courier"> "dataSource": "java:jboss/datasources/KeycloakDS",</font></div><div><font face="Courier"> "databaseSchema": "update",</font></div><div><font face="Courier"> "driverDialect": "org.hibernate.dialect.SQLServer2008Dialect"</font></div><div><font face="Courier"> }</font></div><div><font face="Courier"> },</font></div></div><div style="font-family: Calibri, sans-serif;"><br></div><div style="font-family: Calibri, sans-serif;">When trying to upgrade the upgrade fails, see the stacktrace below. When installing a 1.7.0Final with an empty db all works fine.</div><div style="font-family: Calibri, sans-serif;"><br></div><div style="font-family: Calibri, sans-serif;">Is an upgrade direct from 1.2.0Final to 1.7.0Final supported or how can I upgrade the existing environments to 1.7.0Final?</div><div style="font-family: Calibri, sans-serif;"><br></div><div style="font-family: Calibri, sans-serif;">Best Regards,</div><div style="font-family: Calibri, sans-serif;"><br></div><div style="font-family: Calibri, sans-serif;">Maurice Quaedackers.</div><div style="font-family: Calibri, sans-serif;"><br></div><div style="font-family: Calibri, sans-serif;"><br></div><div><div><font face="Courier">9:26:50,130 INFO [org.keycloak.connections.jpa.updater.liquibase.LiquibaseJpaUpdaterProvider] (ServerService Thread Pool -- 75) Updating database</font></div><div><font face="Courier">09:26:50,693 INFO [org.hibernate.jpa.internal.util.LogHelper] (ServerService Thread Pool -- 75) HHH000204: Processing PersistenceUnitInfo [</font></div><div><font face="Courier"><span class="Apple-tab-span" style="white-space:pre">        </span>name: keycloak-default</font></div><div><font face="Courier"><span class="Apple-tab-span" style="white-space:pre">        </span>...]</font></div><div><font face="Courier">09:26:50,753 INFO [org.hibernate.Version] (ServerService Thread Pool -- 75) HHH000412: Hibernate Core {4.3.10.Final}</font></div><div><font face="Courier">09:26:50,756 INFO [org.hibernate.cfg.Environment] (ServerService Thread Pool -- 75) HHH000206: hibernate.properties not found</font></div><div><font face="Courier">09:26:50,758 INFO [org.hibernate.cfg.Environment] (ServerService Thread Pool -- 75) HHH000021: Bytecode provider name : javassist</font></div><div><font face="Courier">09:26:50,926 INFO [org.hibernate.annotations.common.Version] (ServerService Thread Pool -- 75) HCANN000001: Hibernate Commons Annotations {4.0.5.Final}</font></div><div><font face="Courier">09:26:50,999 INFO [org.hibernate.dialect.Dialect] (ServerService Thread Pool -- 75) HHH000400: Using dialect: org.hibernate.dialect.SQLServer2008Dialect</font></div><div><font face="Courier">09:26:51,283 INFO [org.hibernate.hql.internal.ast.ASTQueryTranslatorFactory] (ServerService Thread Pool -- 75) HHH000397: Using ASTQueryTranslatorFactory</font></div><div><font face="Courier">09:26:51,321 INFO [org.hibernate.validator.internal.util.Version] (ServerService Thread Pool -- 75) HV000001: Hibernate Validator 5.1.3.Final</font></div><div><font face="Courier">09:26:52,490 INFO [org.hibernate.event.internal.DefaultLoadEventListener] (ServerService Thread Pool -- 75) HHH000327: Error performing load command : org.hibernate.PropertyAccessException: Null value was assigned to a property of primitive type setter of org.keycloak.models.jpa.entities.RealmEntity.accessTokenLifespanForImplicitFlow</font></div><div><font face="Courier">09:26:52,493 ERROR [org.jboss.msc.service.fail] (ServerService Thread Pool -- 75) 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: Failed to construct public org.keycloak.services.resources.KeycloakApplication(javax.servlet.ServletContext,org.jboss.resteasy.core.Dispatcher)</font></div><div><font face="Courier"><span class="Apple-tab-span" style="white-space:pre">        </span>at org.wildfly.extension.undertow.deployment.UndertowDeploymentService$1.run(UndertowDeploymentService.java:85)</font></div><div><font face="Courier"><span class="Apple-tab-span" style="white-space:pre">        </span>at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)</font></div><div><font face="Courier"><span class="Apple-tab-span" style="white-space:pre">        </span>at java.util.concurrent.FutureTask.run(FutureTask.java:266)</font></div><div><font face="Courier"><span class="Apple-tab-span" style="white-space:pre">        </span>at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)</font></div><div><font face="Courier"><span class="Apple-tab-span" style="white-space:pre">        </span>at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)</font></div><div><font face="Courier"><span class="Apple-tab-span" style="white-space:pre">        </span>at java.lang.Thread.run(Thread.java:745)</font></div><div><font face="Courier"><span class="Apple-tab-span" style="white-space:pre">        </span>at org.jboss.threads.JBossThread.run(JBossThread.java:320)</font></div><div><font face="Courier">Caused by: java.lang.RuntimeException: Failed to construct public org.keycloak.services.resources.KeycloakApplication(javax.servlet.ServletContext,org.jboss.resteasy.core.Dispatcher)</font></div><div><font face="Courier"><span class="Apple-tab-span" style="white-space:pre">        </span>at org.jboss.resteasy.core.ConstructorInjectorImpl.construct(ConstructorInjectorImpl.java:160)</font></div><div><font face="Courier"><span class="Apple-tab-span" style="white-space:pre">        </span>at org.jboss.resteasy.spi.ResteasyProviderFactory.createProviderInstance(ResteasyProviderFactory.java:2211)</font></div><div><font face="Courier"><span class="Apple-tab-span" style="white-space:pre">        </span>at org.jboss.resteasy.spi.ResteasyDeployment.createApplication(ResteasyDeployment.java:295)</font></div><div><font face="Courier"><span class="Apple-tab-span" style="white-space:pre">        </span>at org.jboss.resteasy.spi.ResteasyDeployment.start(ResteasyDeployment.java:236)</font></div><div><font face="Courier"><span class="Apple-tab-span" style="white-space:pre">        </span>at org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher.init(ServletContainerDispatcher.java:112)</font></div><div><font face="Courier"><span class="Apple-tab-span" style="white-space:pre">        </span>at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.init(HttpServletDispatcher.java:36)</font></div><div><font face="Courier"><span class="Apple-tab-span" style="white-space:pre">        </span>at io.undertow.servlet.core.LifecyleInterceptorInvocation.proceed(LifecyleInterceptorInvocation.java:117)</font></div><div><font face="Courier"><span class="Apple-tab-span" style="white-space:pre">        </span>at org.wildfly.extension.undertow.security.RunAsLifecycleInterceptor.init(RunAsLifecycleInterceptor.java:78)</font></div><div><font face="Courier"><span class="Apple-tab-span" style="white-space:pre">        </span>at io.undertow.servlet.core.LifecyleInterceptorInvocation.proceed(LifecyleInterceptorInvocation.java:103)</font></div><div><font face="Courier"><span class="Apple-tab-span" style="white-space:pre">        </span>at io.undertow.servlet.core.ManagedServlet$DefaultInstanceStrategy.start(ManagedServlet.java:230)</font></div><div><font face="Courier"><span class="Apple-tab-span" style="white-space:pre">        </span>at io.undertow.servlet.core.ManagedServlet.createServlet(ManagedServlet.java:131)</font></div><div><font face="Courier"><span class="Apple-tab-span" style="white-space:pre">        </span>at io.undertow.servlet.core.DeploymentManagerImpl.start(DeploymentManagerImpl.java:511)</font></div><div><font face="Courier"><span class="Apple-tab-span" style="white-space:pre">        </span>at org.wildfly.extension.undertow.deployment.UndertowDeploymentService.startContext(UndertowDeploymentService.java:101)</font></div><div><font face="Courier"><span class="Apple-tab-span" style="white-space:pre">        </span>at org.wildfly.extension.undertow.deployment.UndertowDeploymentService$1.run(UndertowDeploymentService.java:82)</font></div><div><font face="Courier"><span class="Apple-tab-span" style="white-space:pre">        </span>... 6 more</font></div><div><font face="Courier">Caused by: org.keycloak.models.ModelException: javax.persistence.PersistenceException: org.hibernate.PropertyAccessException: Null value was assigned to a property of primitive type setter of org.keycloak.models.jpa.entities.RealmEntity.accessTokenLifespanForImplicitFlow</font></div><div><font face="Courier"><span class="Apple-tab-span" style="white-space:pre">        </span>at org.keycloak.connections.jpa.PersistenceExceptionConverter.convert(PersistenceExceptionConverter.java:44)</font></div><div><font face="Courier"><span class="Apple-tab-span" style="white-space:pre">        </span>at org.keycloak.connections.jpa.PersistenceExceptionConverter.invoke(PersistenceExceptionConverter.java:34)</font></div><div><font face="Courier"><span class="Apple-tab-span" style="white-space:pre">        </span>at com.sun.proxy.$Proxy82.find(Unknown Source)</font></div><div><font face="Courier"><span class="Apple-tab-span" style="white-space:pre">        </span>at org.keycloak.models.jpa.JpaRealmProvider.getRealm(JpaRealmProvider.java:65)</font></div><div><font face="Courier"><span class="Apple-tab-span" style="white-space:pre">        </span>at org.keycloak.models.cache.infinispan.DefaultCacheRealmProvider.getRealm(DefaultCacheRealmProvider.java:161)</font></div><div><font face="Courier"><span class="Apple-tab-span" style="white-space:pre">        </span>at org.keycloak.services.managers.ApplianceBootstrap.setupDefaultRealm(ApplianceBootstrap.java:32)</font></div><div><font face="Courier"><span class="Apple-tab-span" style="white-space:pre">        </span>at org.keycloak.services.resources.KeycloakApplication.<init>(KeycloakApplication.java:81)</font></div><div><font face="Courier"><span class="Apple-tab-span" style="white-space:pre">        </span>at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)</font></div><div><font face="Courier"><span class="Apple-tab-span" style="white-space:pre">        </span>at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)</font></div><div><font face="Courier"><span class="Apple-tab-span" style="white-space:pre">        </span>at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)</font></div><div><font face="Courier"><span class="Apple-tab-span" style="white-space:pre">        </span>at java.lang.reflect.Constructor.newInstance(Constructor.java:422)</font></div><div><font face="Courier"><span class="Apple-tab-span" style="white-space:pre">        </span>at org.jboss.resteasy.core.ConstructorInjectorImpl.construct(ConstructorInjectorImpl.java:148)</font></div><div><font face="Courier"><span class="Apple-tab-span" style="white-space:pre">        </span>... 19 more</font></div><div><font face="Courier">Caused by: javax.persistence.PersistenceException: org.hibernate.PropertyAccessException: Null value was assigned to a property of primitive type setter of org.keycloak.models.jpa.entities.RealmEntity.accessTokenLifespanForImplicitFlow</font></div><div><font face="Courier"><span class="Apple-tab-span" style="white-space:pre">        </span>at org.hibernate.jpa.spi.AbstractEntityManagerImpl.convert(AbstractEntityManagerImpl.java:1763)</font></div><div><font face="Courier"><span class="Apple-tab-span" style="white-space:pre">        </span>at org.hibernate.jpa.spi.AbstractEntityManagerImpl.convert(AbstractEntityManagerImpl.java:1694)</font></div><div><font face="Courier"><span class="Apple-tab-span" style="white-space:pre">        </span>at org.hibernate.jpa.spi.AbstractEntityManagerImpl.find(AbstractEntityManagerImpl.java:1141)</font></div><div><font face="Courier"><span class="Apple-tab-span" style="white-space:pre">        </span>at org.hibernate.jpa.spi.AbstractEntityManagerImpl.find(AbstractEntityManagerImpl.java:1068)</font></div><div><font face="Courier"><span class="Apple-tab-span" style="white-space:pre">        </span>at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)</font></div><div><font face="Courier"><span class="Apple-tab-span" style="white-space:pre">        </span>at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)</font></div><div><font face="Courier"><span class="Apple-tab-span" style="white-space:pre">        </span>at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)</font></div><div><font face="Courier"><span class="Apple-tab-span" style="white-space:pre">        </span>at java.lang.reflect.Method.invoke(Method.java:497)</font></div><div><font face="Courier"><span class="Apple-tab-span" style="white-space:pre">        </span>at org.keycloak.connections.jpa.PersistenceExceptionConverter.invoke(PersistenceExceptionConverter.java:32)</font></div><div><font face="Courier"><span class="Apple-tab-span" style="white-space:pre">        </span>... 29 more</font></div><div><font face="Courier">Caused by: org.hibernate.PropertyAccessException: Null value was assigned to a property of primitive type setter of org.keycloak.models.jpa.entities.RealmEntity.accessTokenLifespanForImplicitFlow</font></div><div><font face="Courier"><span class="Apple-tab-span" style="white-space:pre">        </span>at org.hibernate.property.DirectPropertyAccessor$DirectSetter.set(DirectPropertyAccessor.java:126)</font></div><div><font face="Courier"><span class="Apple-tab-span" style="white-space:pre">        </span>at org.hibernate.tuple.entity.AbstractEntityTuplizer.setPropertyValues(AbstractEntityTuplizer.java:713)</font></div><div><font face="Courier"><span class="Apple-tab-span" style="white-space:pre">        </span>at org.hibernate.tuple.entity.PojoEntityTuplizer.setPropertyValues(PojoEntityTuplizer.java:362)</font></div><div><font face="Courier"><span class="Apple-tab-span" style="white-space:pre">        </span>at org.hibernate.persister.entity.AbstractEntityPersister.setPropertyValues(AbstractEntityPersister.java:4718)</font></div><div><font face="Courier"><span class="Apple-tab-span" style="white-space:pre">        </span>at org.hibernate.engine.internal.TwoPhaseLoad.doInitializeEntity(TwoPhaseLoad.java:188)</font></div><div><font face="Courier"><span class="Apple-tab-span" style="white-space:pre">        </span>at org.hibernate.engine.internal.TwoPhaseLoad.initializeEntity(TwoPhaseLoad.java:144)</font></div><div><font face="Courier"><span class="Apple-tab-span" style="white-space:pre">        </span>at org.hibernate.loader.plan.exec.process.internal.AbstractRowReader.performTwoPhaseLoad(AbstractRowReader.java:244)</font></div><div><font face="Courier"><span class="Apple-tab-span" style="white-space:pre">        </span>at org.hibernate.loader.plan.exec.process.internal.AbstractRowReader.finishUp(AbstractRowReader.java:215)</font></div><div><font face="Courier"><span class="Apple-tab-span" style="white-space:pre">        </span>at org.hibernate.loader.plan.exec.process.internal.ResultSetProcessorImpl.extractResults(ResultSetProcessorImpl.java:140)</font></div><div><font face="Courier"><span class="Apple-tab-span" style="white-space:pre">        </span>at org.hibernate.loader.plan.exec.internal.AbstractLoadPlanBasedLoader.executeLoad(AbstractLoadPlanBasedLoader.java:138)</font></div><div><font face="Courier"><span class="Apple-tab-span" style="white-space:pre">        </span>at org.hibernate.loader.plan.exec.internal.AbstractLoadPlanBasedLoader.executeLoad(AbstractLoadPlanBasedLoader.java:102)</font></div><div><font face="Courier"><span class="Apple-tab-span" style="white-space:pre">        </span>at org.hibernate.loader.entity.plan.AbstractLoadPlanBasedEntityLoader.load(AbstractLoadPlanBasedEntityLoader.java:186)</font></div><div><font face="Courier"><span class="Apple-tab-span" style="white-space:pre">        </span>at org.hibernate.persister.entity.AbstractEntityPersister.load(AbstractEntityPersister.java:4126)</font></div><div><font face="Courier"><span class="Apple-tab-span" style="white-space:pre">        </span>at org.hibernate.event.internal.DefaultLoadEventListener.loadFromDatasource(DefaultLoadEventListener.java:503)</font></div><div><font face="Courier"><span class="Apple-tab-span" style="white-space:pre">        </span>at org.hibernate.event.internal.DefaultLoadEventListener.doLoad(DefaultLoadEventListener.java:468)</font></div><div><font face="Courier"><span class="Apple-tab-span" style="white-space:pre">        </span>at org.hibernate.event.internal.DefaultLoadEventListener.load(DefaultLoadEventListener.java:213)</font></div><div><font face="Courier"><span class="Apple-tab-span" style="white-space:pre">        </span>at org.hibernate.event.internal.DefaultLoadEventListener.proxyOrLoad(DefaultLoadEventListener.java:275)</font></div><div><font face="Courier"><span class="Apple-tab-span" style="white-space:pre">        </span>at org.hibernate.event.internal.DefaultLoadEventListener.onLoad(DefaultLoadEventListener.java:151)</font></div><div><font face="Courier"><span class="Apple-tab-span" style="white-space:pre">        </span>at org.hibernate.internal.SessionImpl.fireLoad(SessionImpl.java:1106)</font></div><div><font face="Courier"><span class="Apple-tab-span" style="white-space:pre">        </span>at org.hibernate.internal.SessionImpl.access$2000(SessionImpl.java:176)</font></div><div><font face="Courier"><span class="Apple-tab-span" style="white-space:pre">        </span>at org.hibernate.internal.SessionImpl$IdentifierLoadAccessImpl.load(SessionImpl.java:2587)</font></div><div><font face="Courier"><span class="Apple-tab-span" style="white-space:pre">        </span>at org.hibernate.internal.SessionImpl.get(SessionImpl.java:991)</font></div><div><font face="Courier"><span class="Apple-tab-span" style="white-space:pre">        </span>at org.hibernate.jpa.spi.AbstractEntityManagerImpl.find(AbstractEntityManagerImpl.java:1110)</font></div><div><font face="Courier"><span class="Apple-tab-span" style="white-space:pre">        </span>... 35 more</font></div><div><font face="Courier">Caused by: java.lang.IllegalArgumentException: Can not set int field org.keycloak.models.jpa.entities.RealmEntity.accessTokenLifespanForImplicitFlow to null value</font></div><div><font face="Courier"><span class="Apple-tab-span" style="white-space:pre">        </span>at sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(UnsafeFieldAccessorImpl.java:167)</font></div><div><font face="Courier"><span class="Apple-tab-span" style="white-space:pre">        </span>at sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(UnsafeFieldAccessorImpl.java:171)</font></div><div><font face="Courier"><span class="Apple-tab-span" style="white-space:pre">        </span>at sun.reflect.UnsafeIntegerFieldAccessorImpl.set(UnsafeIntegerFieldAccessorImpl.java:80)</font></div><div><font face="Courier"><span class="Apple-tab-span" style="white-space:pre">        </span>at java.lang.reflect.Field.set(Field.java:764)</font></div><div><font face="Courier"><span class="Apple-tab-span" style="white-space:pre">        </span>at org.hibernate.property.DirectPropertyAccessor$DirectSetter.set(DirectPropertyAccessor.java:122)</font></div><div><font face="Courier"><span class="Apple-tab-span" style="white-space:pre">        </span>... 57 more</font></div><div><font face="Courier"><br></font></div><div><font face="Courier">09:26:52,500 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) WFLYCTL0013: Operation ("add") failed - address: ([("deployment" => "keycloak-server.war")]) - failure description: {"WFLYCTL0080: Failed services" => {"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: Failed to construct public org.keycloak.services.resources.KeycloakApplication(javax.servlet.ServletContext,org.jboss.resteasy.core.Dispatcher)</font></div><div><font face="Courier"> Caused by: java.lang.RuntimeException: Failed to construct public org.keycloak.services.resources.KeycloakApplication(javax.servlet.ServletContext,org.jboss.resteasy.core.Dispatcher)</font></div><div><font face="Courier"> Caused by: org.keycloak.models.ModelException: javax.persistence.PersistenceException: org.hibernate.PropertyAccessException: Null value was assigned to a property of primitive type setter of org.keycloak.models.jpa.entities.RealmEntity.accessTokenLifespanForImplicitFlow</font></div><div><font face="Courier"> Caused by: javax.persistence.PersistenceException: org.hibernate.PropertyAccessException: Null value was assigned to a property of primitive type setter of org.keycloak.models.jpa.entities.RealmEntity.accessTokenLifespanForImplicitFlow</font></div><div><font face="Courier"> Caused by: org.hibernate.PropertyAccessException: Null value was assigned to a property of primitive type setter of org.keycloak.models.jpa.entities.RealmEntity.accessTokenLifespanForImplicitFlow</font></div><div><font face="Courier"> Caused by: java.lang.IllegalArgumentException: Can not set int field org.keycloak.models.jpa.entities.RealmEntity.accessTokenLifespanForImplicitFlow to null value"}}</font></div><div><font face="Courier">09:26:52,534 INFO [org.jboss.as.server] (ServerService Thread Pool -- 67) WFLYSRV0010: Deployed "keycloak-server.war" (runtime-name : "keycloak-server.war")</font></div><div><font face="Courier">09:26:52,535 INFO [org.jboss.as.controller] (Controller Boot Thread) WFLYCTL0183: Service status report</font></div><div><font face="Courier">WFLYCTL0186: Services which 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: Failed to construct public org.keycloak.services.resources.KeycloakApplication(javax.servlet.ServletContext,org.jboss.resteasy.core.Dispatcher)</font></div><div><font face="Courier"><br></font></div><div><font face="Courier">09:26:52,674 INFO [org.jboss.as] (Controller Boot Thread) WFLYSRV0060: Http management interface listening on http://127.12.33.1:9990/management</font></div><div><font face="Courier">09:26:52,675 INFO [org.jboss.as] (Controller Boot Thread) WFLYSRV0051: Admin console listening on http://127.12.33.1:9990</font></div><div><font face="Courier">09:26:52,675 ERROR [org.jboss.as] (Controller Boot Thread) WFLYSRV0026: WildFly Full 9.0.1.Final (WildFly Core 1.0.1.Final) started (with errors) in 40832ms - Started 379 of 613 services (2 services failed or missing dependencies, 329 services are lazy, passive or on-demand)</font></div><div><font face="Courier">ed to a property of primitive type setter of org.keycloak.models.jpa.entities.RealmEntity.accessTokenLifespanForImplicitFlow</font></div><div><font face="Courier"><span class="Apple-tab-span" style="white-space:pre">        </span>at org.hibernate.jpa.spi.AbstractEntityManagerImpl.convert(AbstractEntityManagerImpl.java:1763)</font></div><div><font face="Courier"><span class="Apple-tab-span" style="white-space:pre">        </span>at org.hibernate.jpa.spi.AbstractEntityManagerImpl.convert(AbstractEntityManagerImpl.java:1694)</font></div><div><font face="Courier"><span class="Apple-tab-span" style="white-space:pre">        </span>at org.hibernate.jpa.spi.AbstractEntityManagerImpl.find(AbstractEntityManagerImpl.java:1141)</font></div><div><font face="Courier"><span class="Apple-tab-span" style="white-space:pre">        </span>at org.hibernate.jpa.spi.AbstractEntityManagerImpl.find(AbstractEntityManagerImpl.java:1068)</font></div><div><font face="Courier"><span class="Apple-tab-span" style="white-space:pre">        </span>at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)</font></div><div><font face="Courier"><span class="Apple-tab-span" style="white-space:pre">        </span>at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)</font></div><div><font face="Courier"><span class="Apple-tab-span" style="white-space:pre">        </span>at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)</font></div><div><font face="Courier"><span class="Apple-tab-span" style="white-space:pre">        </span>at java.lang.reflect.Method.invoke(Method.java:497)</font></div><div><font face="Courier"><span class="Apple-tab-span" style="white-space:pre">        </span>at org.keycloak.connections.jpa.PersistenceExceptionConverter.invoke(PersistenceExceptionConverter.java:32)</font></div><div><font face="Courier"><span class="Apple-tab-span" style="white-space:pre">        </span>... 29 more</font></div><div><font face="Courier">Caused by: org.hibernate.PropertyAccessException: Null value was assigned to a property of primitive type setter of org.keycloak.models.jpa.entities.RealmEntity.accessTokenLifespanForImplicitFlow</font></div><div><font face="Courier"><span class="Apple-tab-span" style="white-space:pre">        </span>at org.hibernate.property.DirectPropertyAccessor$DirectSetter.set(DirectPropertyAccessor.java:126)</font></div><div><font face="Courier"><span class="Apple-tab-span" style="white-space:pre">        </span>at org.hibernate.tuple.entity.AbstractEntityTuplizer.setPropertyValues(AbstractEntityTuplizer.java:713)</font></div><div><font face="Courier"><span class="Apple-tab-span" style="white-space:pre">        </span>at org.hibernate.tuple.entity.PojoEntityTuplizer.setPropertyValues(PojoEntityTuplizer.java:362)</font></div><div><font face="Courier"><span class="Apple-tab-span" style="white-space:pre">        </span>at org.hibernate.persister.entity.AbstractEntityPersister.setPropertyValues(AbstractEntityPersister.java:4718)</font></div><div><font face="Courier"><span class="Apple-tab-span" style="white-space:pre">        </span>at org.hibernate.engine.internal.TwoPhaseLoad.doInitializeEntity(TwoPhaseLoad.java:188)</font></div><div><font face="Courier"><span class="Apple-tab-span" style="white-space:pre">        </span>at org.hibernate.engine.internal.TwoPhaseLoad.initializeEntity(TwoPhaseLoad.java:144)</font></div><div><font face="Courier"><span class="Apple-tab-span" style="white-space:pre">        </span>at org.hibernate.loader.plan.exec.process.internal.AbstractRowReader.performTwoPhaseLoad(AbstractRowReader.java:244)</font></div><div><font face="Courier"><span class="Apple-tab-span" style="white-space:pre">        </span>at org.hibernate.loader.plan.exec.process.internal.AbstractRowReader.finishUp(AbstractRowReader.java:215)</font></div><div><font face="Courier"><span class="Apple-tab-span" style="white-space:pre">        </span>at org.hibernate.loader.plan.exec.process.internal.ResultSetProcessorImpl.extractResults(ResultSetProcessorImpl.java:140)</font></div><div><font face="Courier"><span class="Apple-tab-span" style="white-space:pre">        </span>at org.hibernate.loader.plan.exec.internal.AbstractLoadPlanBasedLoader.executeLoad(AbstractLoadPlanBasedLoader.java:138)</font></div><div><font face="Courier"><span class="Apple-tab-span" style="white-space:pre">        </span>at org.hibernate.loader.plan.exec.internal.AbstractLoadPlanBasedLoader.executeLoad(AbstractLoadPlanBasedLoader.java:102)</font></div><div><font face="Courier"><span class="Apple-tab-span" style="white-space:pre">        </span>at org.hibernate.loader.entity.plan.AbstractLoadPlanBasedEntityLoader.load(AbstractLoadPlanBasedEntityLoader.java:186)</font></div><div><font face="Courier"><span class="Apple-tab-span" style="white-space:pre">        </span>at org.hibernate.persister.entity.AbstractEntityPersister.load(AbstractEntityPersister.java:4126)</font></div><div><font face="Courier"><span class="Apple-tab-span" style="white-space:pre">        </span>at org.hibernate.event.internal.DefaultLoadEventListener.loadFromDatasource(DefaultLoadEventListener.java:503)</font></div><div><font face="Courier"><span class="Apple-tab-span" style="white-space:pre">        </span>at org.hibernate.event.internal.DefaultLoadEventListener.doLoad(DefaultLoadEventListener.java:468)</font></div><div><font face="Courier"><span class="Apple-tab-span" style="white-space:pre">        </span>at org.hibernate.event.internal.DefaultLoadEventListener.load(DefaultLoadEventListener.java:213)</font></div><div><font face="Courier"><span class="Apple-tab-span" style="white-space:pre">        </span>at org.hibernate.event.internal.DefaultLoadEventListener.proxyOrLoad(DefaultLoadEventListener.java:275)</font></div><div><font face="Courier"><span class="Apple-tab-span" style="white-space:pre">        </span>at org.hibernate.event.internal.DefaultLoadEventListener.onLoad(DefaultLoadEventListener.java:151)</font></div><div><font face="Courier"><span class="Apple-tab-span" style="white-space:pre">        </span>at org.hibernate.internal.SessionImpl.fireLoad(SessionImpl.java:1106)</font></div><div><font face="Courier"><span class="Apple-tab-span" style="white-space:pre">        </span>at org.hibernate.internal.SessionImpl.access$2000(SessionImpl.java:176)</font></div><div><font face="Courier"><span class="Apple-tab-span" style="white-space:pre">        </span>at org.hibernate.internal.SessionImpl$IdentifierLoadAccessImpl.load(SessionImpl.java:2587)</font></div><div><font face="Courier"><span class="Apple-tab-span" style="white-space:pre">        </span>at org.hibernate.internal.SessionImpl.get(SessionImpl.java:991)</font></div><div><font face="Courier"><span class="Apple-tab-span" style="white-space:pre">        </span>at org.hibernate.jpa.spi.AbstractEntityManagerImpl.find(AbstractEntityManagerImpl.java:1110)</font></div><div><font face="Courier"><span class="Apple-tab-span" style="white-space:pre">        </span>... 35 more</font></div><div><font face="Courier">Caused by: java.lang.IllegalArgumentException: Can not set int field org.keycloak.models.jpa.entities.RealmEntity.accessTokenLifespanForImplicitFlow to null value</font></div><div><font face="Courier"><span class="Apple-tab-span" style="white-space:pre">        </span>at sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(UnsafeFieldAccessorImpl.java:167)</font></div><div><font face="Courier"><span class="Apple-tab-span" style="white-space:pre">        </span>at sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(UnsafeFieldAccessorImpl.java:171)</font></div><div><font face="Courier"><span class="Apple-tab-span" style="white-space:pre">        </span>at sun.reflect.UnsafeIntegerFieldAccessorImpl.set(UnsafeIntegerFieldAccessorImpl.java:80)</font></div><div><font face="Courier"><span class="Apple-tab-span" style="white-space:pre">        </span>at java.lang.reflect.Field.set(Field.java:764)</font></div><div><font face="Courier"><span class="Apple-tab-span" style="white-space:pre">        </span>at org.hibernate.property.DirectPropertyAccessor$DirectSetter.set(DirectPropertyAccessor.java:122)</font></div><div><font face="Courier"><span class="Apple-tab-span" style="white-space:pre">        </span>... 57 more</font></div><div><font face="Courier"><br></font></div><div><font face="Courier">2016-01-20 09:26:52,500 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) WFLYCTL0013: Operation ("add") failed - address: ([("deployment" => "keycloak-server.war")]) - failure description: {"WFLYCTL0080: Failed services" => {"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: Failed to construct public org.keycloak.services.resources.KeycloakApplication(javax.servlet.ServletContext,org.jboss.resteasy.core.Dispatcher)</font></div><div><font face="Courier"> Caused by: java.lang.RuntimeException: Failed to construct public org.keycloak.services.resources.KeycloakApplication(javax.servlet.ServletContext,org.jboss.resteasy.core.Dispatcher)</font></div><div><font face="Courier"> Caused by: org.keycloak.models.ModelException: javax.persistence.PersistenceException: org.hibernate.PropertyAccessException: Null value was assigned to a property of primitive type setter of org.keycloak.models.jpa.entities.RealmEntity.accessTokenLifespanForImplicitFlow</font></div><div><font face="Courier"> Caused by: javax.persistence.PersistenceException: org.hibernate.PropertyAccessException: Null value was assigned to a property of primitive type setter of org.keycloak.models.jpa.entities.RealmEntity.accessTokenLifespanForImplicitFlow</font></div><div><font face="Courier"> Caused by: org.hibernate.PropertyAccessException: Null value was assigned to a property of primitive type setter of org.keycloak.models.jpa.entities.RealmEntity.accessTokenLifespanForImplicitFlow</font></div><div><font face="Courier"> Caused by: java.lang.IllegalArgumentException: Can not set int field org.keycloak.models.jpa.entities.RealmEntity.accessTokenLifespanForImplicitFlow to null value"}}</font></div><div><font face="Courier">2016-01-20 09:26:52,534 INFO [org.jboss.as.server] (ServerService Thread Pool -- 67) WFLYSRV0010: Deployed "keycloak-server.war" (runtime-name : "keycloak-server.war")</font></div><div><font face="Courier">2016-01-20 09:26:52,535 INFO [org.jboss.as.controller] (Controller Boot Thread) WFLYCTL0183: Service status report</font></div><div><font face="Courier">WFLYCTL0186: Services which 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: Failed to construct public org.keycloak.services.resources.KeycloakApplication(javax.servlet.ServletContext,org.jboss.resteasy.core.Dispatcher)</font></div><div><font face="Courier"><br></font></div><div><font face="Courier">2016-01-20 09:26:52,674 INFO [org.jboss.as] (Controller Boot Thread) WFLYSRV0060: Http management interface listening on http://127.12.33.1:9990/management</font></div><div><font face="Courier">2016-01-20 09:26:52,675 INFO [org.jboss.as] (Controller Boot Thread) WFLYSRV0051: Admin console listening on http://127.12.33.1:9990</font></div><div><font face="Courier">2016-01-20 09:26:52,675 ERROR [org.jboss.as] (Controller Boot Thread) WFLYSRV0026: WildFly Full 9.0.1.Final (WildFly Core 1.0.1.Final) started (with errors) in 40832ms - Started 379 of 613 services (2 services failed or missing dependencies, 329 services are lazy, passive or on-demand)</font></div></div></body></html>