<div dir="ltr">Marek helped me already - PR against UPS is pending :)</div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Dec 15, 2014 at 10:39 AM, Stian Thorgersen <span dir="ltr">&lt;<a href="mailto:stian@redhat.com" target="_blank">stian@redhat.com</a>&gt;</span> wrote:<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">We can sort out something for you guys. When do you need it?<br>
<span class=""><br>
----- Original Message -----<br>
&gt; From: &quot;Matthias Wessendorf&quot; &lt;<a href="mailto:matzew@apache.org">matzew@apache.org</a>&gt;<br>
&gt; To: &quot;Marek Posolda&quot; &lt;<a href="mailto:mposolda@redhat.com">mposolda@redhat.com</a>&gt;<br>
&gt; Cc: <a href="mailto:keycloak-dev@lists.jboss.org">keycloak-dev@lists.jboss.org</a><br>
&gt; Sent: Friday, 12 December, 2014 12:27:11 PM<br>
&gt; Subject: Re: [keycloak-dev] Database script for manual migration?<br>
&gt;<br>
&gt; I *think* I tracked it down to this commit:<br>
&gt;<br>
&gt; <a href="https://github.com/keycloak/keycloak/commit/3bfe3d256ed0c292fbb040fa2276c737c3798864" target="_blank">https://github.com/keycloak/keycloak/commit/3bfe3d256ed0c292fbb040fa2276c737c3798864</a><br>
&gt;<br>
</span>&gt; the &#39; org.keycloak.models.jpa. entities.RealmEntity. eventsEnabled&#39; field is<br>
<div class="HOEnZb"><div class="h5">&gt; present in KC 1.0.Final, but not in the 1.0-beta-4.<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; On Fri, Dec 12, 2014 at 11:50 AM, Matthias Wessendorf &lt; <a href="mailto:matzew@apache.org">matzew@apache.org</a> &gt;<br>
&gt; wrote:<br>
&gt;<br>
&gt;<br>
&gt; Hi Marek,<br>
&gt;<br>
&gt; any chance to get a script to get that kinda migration done manually? I think<br>
&gt; this is now blocking us from upgrading to 1.0.4.Final (from 1.0-beta-4,<br>
&gt; which we used in our 1.0.0.Final)<br>
&gt;<br>
&gt; thanks,<br>
&gt; Matthias<br>
&gt;<br>
&gt; On Fri, Dec 12, 2014 at 10:32 AM, Marek Posolda &lt; <a href="mailto:mposolda@redhat.com">mposolda@redhat.com</a> &gt;<br>
&gt; wrote:<br>
&gt;<br>
&gt;<br>
&gt; Unfortunately I don&#39;t think that we have this. We have automatic migration<br>
&gt; available with liquibase, but this is from 1.0.0.Final (or newer) to 1.1.0.X<br>
&gt; .<br>
&gt;<br>
&gt; Marek<br>
&gt;<br>
&gt;<br>
&gt; On 11.12.2014 16:50, Matthias Wessendorf wrote:<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; Hi,<br>
&gt;<br>
&gt; I am wondering do you guys have a .sql script for going from &#39;1.0-beta-4&#39; to<br>
&gt; &#39;1.0.4.Final&#39; ?<br>
&gt;<br>
&gt; My motivation is updating the an instance of UPS 1.0.0.Final (was using<br>
&gt; Keycloak-1.0-beta-4) to latest stable release candidate (1.0.3-SNAPSHOT,<br>
&gt; which is using Keycloak-1.0.4.Final)<br>
&gt;<br>
&gt; Deploying the new auth-server (that we build ourselfs), is giving me this<br>
&gt; (with Postgres and MySQL)<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; 13:32:29,191 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-15)<br>
&gt; MSC000001: Failed to start service<br>
&gt; jboss.undertow.deployment.default-server.default-host./auth:<br>
&gt; org.jboss.msc.service.StartException in service<br>
&gt; jboss.undertow.deployment.default-server.default-host./auth: Failed to start<br>
&gt; service<br>
&gt; at<br>
&gt; org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1904)<br>
&gt; [jboss-msc-1.2.2.Final.jar:1.2.2.Final]<br>
&gt; at<br>
&gt; java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)<br>
&gt; [rt.jar:1.7.0_65]<br>
&gt; at<br>
&gt; java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)<br>
&gt; [rt.jar:1.7.0_65]<br>
&gt; at java.lang.Thread.run(Thread.java:745) [rt.jar:1.7.0_65]<br>
&gt; Caused by: java.lang.RuntimeException: Failed to construct public<br>
&gt; org.jboss.aerogear.unifiedpush.keycloak.UpsKeycloakApplication(javax.servlet.ServletContext,org.jboss.resteasy.core.Dispatcher)<br>
&gt; at<br>
&gt; org.jboss.resteasy.core.ConstructorInjectorImpl.construct(ConstructorInjectorImpl.java:160)<br>
&gt; at<br>
&gt; org.jboss.resteasy.spi.ResteasyProviderFactory.createProviderInstance(ResteasyProviderFactory.java:2211)<br>
&gt; at<br>
&gt; org.jboss.resteasy.spi.ResteasyDeployment.createApplication(ResteasyDeployment.java:295)<br>
&gt; at<br>
&gt; org.jboss.resteasy.spi.ResteasyDeployment.start(ResteasyDeployment.java:236)<br>
&gt; at<br>
&gt; org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher.init(ServletContainerDispatcher.java:112)<br>
&gt; at<br>
&gt; org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.init(HttpServletDispatcher.java:36)<br>
&gt; at<br>
&gt; io.undertow.servlet.core.LifecyleInterceptorInvocation.proceed(LifecyleInterceptorInvocation.java:117)<br>
&gt; at<br>
&gt; org.wildfly.extension.undertow.security.RunAsLifecycleInterceptor.init(RunAsLifecycleInterceptor.java:79)<br>
&gt; at<br>
&gt; io.undertow.servlet.core.LifecyleInterceptorInvocation.proceed(LifecyleInterceptorInvocation.java:103)<br>
&gt; at<br>
&gt; io.undertow.servlet.core.ManagedServlet$DefaultInstanceStrategy.start(ManagedServlet.java:220)<br>
&gt; at<br>
&gt; io.undertow.servlet.core.ManagedServlet.createServlet(ManagedServlet.java:125)<br>
&gt; at<br>
&gt; io.undertow.servlet.core.DeploymentManagerImpl.start(DeploymentManagerImpl.java:508)<br>
&gt; at<br>
&gt; org.wildfly.extension.undertow.deployment.UndertowDeploymentService.startContext(UndertowDeploymentService.java:88)<br>
&gt; at<br>
&gt; org.wildfly.extension.undertow.deployment.UndertowDeploymentService.start(UndertowDeploymentService.java:72)<br>
&gt; at<br>
&gt; org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1948)<br>
&gt; [jboss-msc-1.2.2.Final.jar:1.2.2.Final]<br>
&gt; at<br>
&gt; org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1881)<br>
&gt; [jboss-msc-1.2.2.Final.jar:1.2.2.Final]<br>
&gt; ... 3 more<br>
&gt; Caused by: org.keycloak.models.ModelException:<br>
&gt; javax.persistence.PersistenceException:<br>
&gt; org.hibernate.PropertyAccessException: Null value was assigned to a property<br>
&gt; of primitive type setter of<br>
&gt; org.keycloak.models.jpa.entities.RealmEntity.eventsEnabled<br>
&gt; at<br>
&gt; org.keycloak.connections.jpa.PersistenceExceptionConverter.convert(PersistenceExceptionConverter.java:44)<br>
&gt; at<br>
&gt; org.keycloak.connections.jpa.PersistenceExceptionConverter.invoke(PersistenceExceptionConverter.java:34)<br>
&gt; at com.sun.proxy.$Proxy128.find(Unknown Source)<br>
&gt; at<br>
&gt; org.keycloak.models.jpa.JpaRealmProvider.getRealm(JpaRealmProvider.java:51)<br>
&gt; at<br>
&gt; org.keycloak.models.cache.DefaultCacheRealmProvider.getRealm(DefaultCacheRealmProvider.java:173)<br>
&gt; at<br>
&gt; org.keycloak.services.managers.ApplianceBootstrap.bootstrap(ApplianceBootstrap.java:42)<br>
&gt; at<br>
&gt; org.keycloak.services.managers.ApplianceBootstrap.bootstrap(ApplianceBootstrap.java:33)<br>
&gt; at<br>
&gt; org.keycloak.services.resources.KeycloakApplication.setupDefaultRealm(KeycloakApplication.java:137)<br>
&gt; at<br>
&gt; org.jboss.aerogear.unifiedpush.keycloak.UpsKeycloakApplication.setupDefaultRealm(UpsKeycloakApplication.java:40)<br>
&gt; at<br>
&gt; org.keycloak.services.resources.KeycloakApplication.&lt;init&gt;(KeycloakApplication.java:86)<br>
&gt; at<br>
&gt; org.jboss.aerogear.unifiedpush.keycloak.UpsKeycloakApplication.&lt;init&gt;(UpsKeycloakApplication.java:35)<br>
&gt; at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)<br>
&gt; [rt.jar:1.7.0_65]<br>
&gt; at<br>
&gt; sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)<br>
&gt; [rt.jar:1.7.0_65]<br>
&gt; at<br>
&gt; sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)<br>
&gt; [rt.jar:1.7.0_65]<br>
&gt; at java.lang.reflect.Constructor.newInstance(Constructor.java:526)<br>
&gt; [rt.jar:1.7.0_65]<br>
&gt; at<br>
&gt; org.jboss.resteasy.core.ConstructorInjectorImpl.construct(ConstructorInjectorImpl.java:148)<br>
&gt; ... 18 more<br>
&gt; Caused by: javax.persistence.PersistenceException:<br>
&gt; org.hibernate.PropertyAccessException: Null value was assigned to a property<br>
&gt; of primitive type setter of<br>
&gt; org.keycloak.models.jpa.entities.RealmEntity.eventsEnabled<br>
&gt; at<br>
&gt; org.hibernate.jpa.spi.AbstractEntityManagerImpl.convert(AbstractEntityManagerImpl.java:1763)<br>
&gt; at<br>
&gt; org.hibernate.jpa.spi.AbstractEntityManagerImpl.convert(AbstractEntityManagerImpl.java:<br>
&gt; 1694 )<br>
&gt; at<br>
&gt; org.hibernate.jpa.spi.AbstractEntityManagerImpl.find(AbstractEntityManagerImpl.java:1141)<br>
&gt; at<br>
&gt; org.hibernate.jpa.spi.AbstractEntityManagerImpl.find(AbstractEntityManagerImpl.java:1068)<br>
&gt; at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)<br>
&gt; [rt.jar:1.7.0_65]<br>
&gt; at<br>
&gt; sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)<br>
&gt; [rt.jar:1.7.0_65]<br>
&gt; at<br>
&gt; sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)<br>
&gt; [rt.jar:1.7.0_65]<br>
&gt; at java.lang.reflect.Method.invoke(Method.java:606) [rt.jar:1.7.0_65]<br>
&gt; at<br>
&gt; org.keycloak.connections.jpa.PersistenceExceptionConverter.invoke(PersistenceExceptionConverter.java:32)<br>
&gt; ... 32 more<br>
&gt; Caused by: org.hibernate.PropertyAccessException: Null value was assigned to<br>
&gt; a property of primitive type setter of<br>
&gt; org.keycloak.models.jpa.entities.RealmEntity.eventsEnabled<br>
&gt; at<br>
&gt; org.hibernate.property.DirectPropertyAccessor$DirectSetter.set(DirectPropertyAccessor.java:126)<br>
&gt; at<br>
&gt; org.hibernate.tuple.entity.AbstractEntityTuplizer.setPropertyValues(AbstractEntityTuplizer.java:713)<br>
&gt; at<br>
&gt; org.hibernate.tuple.entity.PojoEntityTuplizer.setPropertyValues(PojoEntityTuplizer.java:362)<br>
&gt; at<br>
&gt; org.hibernate.persister.entity.AbstractEntityPersister.setPropertyValues(AbstractEntityPersister.java:4718)<br>
&gt; at<br>
&gt; org.hibernate.engine.internal.TwoPhaseLoad.doInitializeEntity(TwoPhaseLoad.java:188)<br>
&gt; at<br>
&gt; org.hibernate.engine.internal.TwoPhaseLoad.initializeEntity(TwoPhaseLoad.java:144)<br>
&gt; at<br>
&gt; org.hibernate.loader.plan.exec.process.internal.AbstractRowReader.performTwoPhaseLoad(AbstractRowReader.java:244)<br>
&gt; at<br>
&gt; org.hibernate.loader.plan.exec.process.internal.AbstractRowReader.finishUp(AbstractRowReader.java:215)<br>
&gt; at<br>
&gt; org.hibernate.loader.plan.exec.process.internal.ResultSetProcessorImpl.extractResults(ResultSetProcessorImpl.java:140)<br>
&gt; at<br>
&gt; org.hibernate.loader.plan.exec.internal.AbstractLoadPlanBasedLoader.executeLoad(AbstractLoadPlanBasedLoader.java:138)<br>
&gt; at<br>
&gt; org.hibernate.loader.plan.exec.internal.AbstractLoadPlanBasedLoader.executeLoad(AbstractLoadPlanBasedLoader.java:102)<br>
&gt; at<br>
&gt; org.hibernate.loader.entity.plan.AbstractLoadPlanBasedEntityLoader.load(AbstractLoadPlanBasedEntityLoader.java:186)<br>
&gt; at<br>
&gt; org.hibernate.persister.entity.AbstractEntityPersister.load(AbstractEntityPersister.java:4126)<br>
&gt; at<br>
&gt; org.hibernate.event.internal.DefaultLoadEventListener.loadFromDatasource(DefaultLoadEventListener.java:503)<br>
&gt; at<br>
&gt; org.hibernate.event.internal.DefaultLoadEventListener.doLoad(DefaultLoadEventListener.java:468)<br>
&gt; at<br>
&gt; org.hibernate.event.internal.DefaultLoadEventListener.load(DefaultLoadEventListener.java:213)<br>
&gt; at<br>
&gt; org.hibernate.event.internal.DefaultLoadEventListener.proxyOrLoad(DefaultLoadEventListener.java:275)<br>
&gt; at<br>
&gt; org.hibernate.event.internal.DefaultLoadEventListener.onLoad(DefaultLoadEventListener.java:151)<br>
&gt; at org.hibernate.internal.SessionImpl.fireLoad(SessionImpl.java:1070)<br>
&gt; at org.hibernate.internal.SessionImpl.access$2000(SessionImpl.java:176)<br>
&gt; at<br>
&gt; org.hibernate.internal.SessionImpl$IdentifierLoadAccessImpl.load(SessionImpl.java:2551)<br>
&gt; at org.hibernate.internal.SessionImpl.get(SessionImpl.java:955)<br>
&gt; at<br>
&gt; org.hibernate.jpa.spi.AbstractEntityManagerImpl.find(AbstractEntityManagerImpl.java:1110)<br>
&gt; ... 38 more<br>
&gt; Caused by: java.lang.IllegalArgumentException: Can not set boolean field<br>
&gt; org.keycloak.models.jpa.entities.RealmEntity.eventsEnabled to null value<br>
&gt; at<br>
&gt; sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(UnsafeFieldAccessorImpl.java:164)<br>
&gt; [rt.jar:1.7.0_65]<br>
&gt; at<br>
&gt; sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(UnsafeFieldAccessorImpl.java:168)<br>
&gt; [rt.jar:1.7.0_65]<br>
&gt; at<br>
&gt; sun.reflect.UnsafeBooleanFieldAccessorImpl.set(UnsafeBooleanFieldAccessorImpl.java:80)<br>
&gt; [rt.jar:1.7.0_65]<br>
&gt; at java.lang.reflect.Field.set(Field.java:741) [rt.jar:1.7.0_65]<br>
&gt; at<br>
&gt; org.hibernate.property.DirectPropertyAccessor$DirectSetter.set(DirectPropertyAccessor.java:122)<br>
&gt; ... 60 more<br>
&gt;<br>
&gt; 13:32:29,205 ERROR [org.jboss.as.controller.management-operation] (Controller<br>
&gt; Boot Thread) JBAS014613: Operation (&quot;deploy&quot;) failed - address:<br>
&gt; ([(&quot;deployment&quot; =&gt; &quot;auth-server.war&quot;)]) - failure description: {&quot;JBAS014671:<br>
&gt; Failed services&quot; =&gt;<br>
&gt; {&quot;jboss.undertow.deployment.default-server.default-host./auth&quot; =&gt;<br>
&gt; &quot;org.jboss.msc.service.StartException in service<br>
&gt; jboss.undertow.deployment.default-server.default-host./auth: Failed to start<br>
&gt; service<br>
&gt; Caused by: java.lang.RuntimeException: Failed to construct public<br>
&gt; org.jboss.aerogear.unifiedpush.keycloak.UpsKeycloakApplication(javax.servlet.ServletContext,org.jboss.resteasy.core.Dispatcher)<br>
&gt; Caused by: org.keycloak.models.ModelException:<br>
&gt; javax.persistence.PersistenceException:<br>
&gt; org.hibernate.PropertyAccessException: Null value was assigned to a property<br>
&gt; of primitive type setter of<br>
&gt; org.keycloak.models.jpa.entities.RealmEntity.eventsEnabled<br>
&gt; Caused by: javax.persistence.PersistenceException:<br>
&gt; org.hibernate.PropertyAccessException: Null value was assigned to a property<br>
&gt; of primitive type setter of<br>
&gt; org.keycloak.models.jpa.entities.RealmEntity.eventsEnabled<br>
&gt; Caused by: org.hibernate.PropertyAccessException: Null value was assigned to<br>
&gt; a property of primitive type setter of<br>
&gt; org.keycloak.models.jpa.entities.RealmEntity.eventsEnabled<br>
&gt; Caused by: java.lang.IllegalArgumentException: Can not set boolean field<br>
&gt; org.keycloak.models.jpa.entities.RealmEntity.eventsEnabled to null value&quot;}}<br>
&gt;<br>
&gt;<br>
&gt; Thanks,<br>
&gt; Matthias<br>
&gt;<br>
&gt; --<br>
&gt; Matthias Wessendorf<br>
&gt;<br>
&gt; blog: <a href="http://matthiaswessendorf.wordpress.com/" target="_blank">http://matthiaswessendorf.wordpress.com/</a><br>
&gt; sessions: <a href="http://www.slideshare.net/mwessendorf" target="_blank">http://www.slideshare.net/mwessendorf</a><br>
&gt; twitter: <a href="http://twitter.com/mwessendorf" target="_blank">http://twitter.com/mwessendorf</a><br>
&gt;<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; keycloak-dev mailing list <a href="mailto:keycloak-dev@lists.jboss.org">keycloak-dev@lists.jboss.org</a><br>
&gt; <a href="https://lists.jboss.org/mailman/listinfo/keycloak-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/keycloak-dev</a><br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt; Matthias Wessendorf<br>
&gt;<br>
&gt; blog: <a href="http://matthiaswessendorf.wordpress.com/" target="_blank">http://matthiaswessendorf.wordpress.com/</a><br>
&gt; sessions: <a href="http://www.slideshare.net/mwessendorf" target="_blank">http://www.slideshare.net/mwessendorf</a><br>
&gt; twitter: <a href="http://twitter.com/mwessendorf" target="_blank">http://twitter.com/mwessendorf</a><br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt; Matthias Wessendorf<br>
&gt;<br>
&gt; blog: <a href="http://matthiaswessendorf.wordpress.com/" target="_blank">http://matthiaswessendorf.wordpress.com/</a><br>
&gt; sessions: <a href="http://www.slideshare.net/mwessendorf" target="_blank">http://www.slideshare.net/mwessendorf</a><br>
&gt; twitter: <a href="http://twitter.com/mwessendorf" target="_blank">http://twitter.com/mwessendorf</a><br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; keycloak-dev mailing list<br>
&gt; <a href="mailto:keycloak-dev@lists.jboss.org">keycloak-dev@lists.jboss.org</a><br>
&gt; <a href="https://lists.jboss.org/mailman/listinfo/keycloak-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/keycloak-dev</a><br>
</div></div></blockquote></div><br clear="all"><div><br></div>-- <br><div class="gmail_signature">Matthias Wessendorf <br><br>blog: <a href="http://matthiaswessendorf.wordpress.com/" target="_blank">http://matthiaswessendorf.wordpress.com/</a><br>sessions: <a href="http://www.slideshare.net/mwessendorf" target="_blank">http://www.slideshare.net/mwessendorf</a><br>twitter: <a href="http://twitter.com/mwessendorf" target="_blank">http://twitter.com/mwessendorf</a></div>
</div>