Issue 1:
Simon Rydberg opened SPR-2925 and commented

Using this Sessionfactory:

<!-- Hibernate SessionFactory -->

<bean id="sessionFactory" class="org.springframework.orm.hibernate3.LocalSessionFactoryBean">

<property name="dataSource" ref="dataSource"/>

<property name="mappingResources">

<value>library.hbm.xml</value>

</property>

<property name="hibernateProperties">

<props>

<prop key="hibernate.dialect">${hibernate.dialect}</prop>

<!--	<prop key="hibernate.show_sql">true</prop>-->

<!--	<prop key="hibernate.generate_statistics">true</prop>-->

<prop key="hibernate.query.substitutions">true 1, false 0, yes 'Y', no 'N'</prop>

<prop key="hibernate.cache.use_second_level_cache">false</prop>

<prop key="hibernate.cache.use_query_cache">false</prop>

</props>

</property>

<property name="eventListeners">

<map>

<entry key="merge">

<bean class="org.springframework.orm.hibernate3.support.IdTransferringMergeEventListener"/>

</entry>

</map>

</property>

<property name="schemaUpdate">

<value>true</value>

</property>

</bean>

and setting the property schemaUpdate=true, causes the error message below. This worked perfectly in Spring 1.2.8 but after the upgrade I can't set the property to true. It's no problem when schemaUpdate=false.

Exception in thread "main" org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in file [/home/simonrydberg/projects/trains/web/WEB-INF/applicationContext-hibernate.xml]: Invocation of init method failed; nested exception is java.lang.IllegalStateException: SessionFactory not initialized yet

Caused by: java.lang.IllegalStateException: SessionFactory not initialized yet

at org.springframework.orm.hibernate3.AbstractSessionFactoryBean.getSessionFactory(AbstractSessionFactoryBean.java:175)

at org.springframework.orm.hibernate3.LocalSessionFactoryBean.updateDatabaseSchema(LocalSessionFactoryBean.java:918)

at org.springframework.orm.hibernate3.LocalSessionFactoryBean.buildSessionFactory(LocalSessionFactoryBean.java:762)

at org.springframework.orm.hibernate3.AbstractSessionFactoryBean.afterPropertiesSet(AbstractSessionFactoryBean.java:131)

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1062)

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1029)

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:420)

at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:245)

at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:141)

at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:242)

at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:156)

at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:287)

at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:348)

at org.springframework.context.support.FileSystemXmlApplicationContext.<init>(FileSystemXmlApplicationContext.java:89)

at org.springframework.context.support.FileSystemXmlApplicationContext.<init>(FileSystemXmlApplicationContext.java:74)

at se.transrail.trains.domain.railway.RailwayImport2.createDatabaseFromFile(RailwayImport2.java:44)

at se.transrail.trains.domain.railway.RailwayImport2.main(RailwayImport2.java:36)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:585)

at com.intellij.rt.execution.application.AppMain.main(AppMain.java:90)

Affects: 2.0.1

Issue Links:

#7358 LocalSessionFactoryBean initialization fails with "java.lang.IllegalStateException: SessionFactory not initialized yet " when schemaUpdate is set to true ("duplicates")

Issue 2:
Keith Donald opened SPR-2569 and commented

This particularly complicates life for Web Flow users who like the convenience of putting BindException in flow scope with "alwaysRedirectOnPause" turned on... (validation errors are preserved beyond one request but property editors are lost).

Affects: 2.0 RC3

Issue Links:

#7363 Implementations of AbstractPropertyBindingResult do not preserve the custom property editors ("is duplicated by")