<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=soleg" rel="nofollow">Oleg Soloviov</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-5541?redirect=false" rel="nofollow">SPR-5541</a></strong> and commented</p>
<ol dir="auto">
<li>do some entries into the HTML form</li>
<li>do submit the form</li>
<li>do some changes to the form's entries on the server side</li>
<li>the changes are not displayed to the user, old unchanged entries remind in the form</li>
</ol>
<p dir="auto">Probably the bug is here:</p>
<p dir="auto">in the Constructor of the org.springframework.web.servlet.support.BindStatus<br>
it is<br>
=&gt;<br>
...<br>
this.errors = requestContext.getErrors(beanName, false);<br>
if (this.errors != null) { ... } else { ... }<br>
}<br>
=&gt;<br>
the requestContext.getErrors returns errors Object that is not null but empty so (this.errors.hasErrors() is false)<br>
the else block is NEVER EXECUTED !!!</p>
<p dir="auto">The solution could be:<br>
=&gt;<br>
if (this.errors != null &amp;&amp; this.errors.hasErrors()) { ... } else { ... }<br>
}<br>
=&gt;</p>
<p dir="auto">SEE ALSO: <a href="http://jira.springframework.org/browse/SPR-5528" rel="nofollow">http://jira.springframework.org/browse/SPR-5528</a></p>
<hr>
<p dir="auto"><strong>Affects:</strong> 2.5.6, 3.0 M1, 3.0 M2, 3.0 M3</p>
<p dir="auto"><strong>Reference URL:</strong> <a href="http://forum.springsource.org/showthread.php?t=68273" rel="nofollow">http://forum.springsource.org/showthread.php?t=68273</a></p>
<p dir="auto"><strong>Issue Links:</strong></p>
<ul dir="auto">
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398093499" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/10199" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/10199/hovercard" href="https://github.com/spring-projects/spring-framework/issues/10199">#10199</a> BindStatus interprets the RequestContext.getErrors(String name, boolean htmlEscape) wrong (<em><strong>"is duplicated by"</strong></em>)</li>
</ul>
<p dir="auto">1 votes, 3 watchers</p>
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=mrpantsuit" rel="nofollow">Tag McGillicutty</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-2909?redirect=false" rel="nofollow">SPR-2909</a></strong> and commented</p>
<p dir="auto">org.springframework.orm.hibernate3.LocalSessionFactoryBean#schemaUpdate doesn't seem to work with Hibernate 3.2.1.  Exception is listed at the bottom.</p>
<p dir="auto">Forum topic detailing the problem is here: <a href="http://forum.springframework.org/showthread.php?t=31961&amp;highlight=local+datasource+found.%5C" rel="nofollow">http://forum.springframework.org/showthread.php?t=31961&amp;highlight=local+datasource+found.\</a></p>
<p dir="auto">org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transactionManager' defined in class path resource [deletetest/applicationContext.xml]: Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in class path resource [deletetest/applicationContext.xml]: Initialization of bean failed; nested exception is org.springframework.orm.hibernate3.HibernateSystemException: No local DataSource found for configuration - dataSource property must be set on LocalSessionFactoryBean; nested exception is org.hibernate.HibernateException: No local DataSource found for configuration - dataSource property must be set on LocalSessionFactoryBean<br>
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in class path resource [deletetest/applicationContext.xml]: Initialization of bean failed; nested exception is org.springframework.orm.hibernate3.HibernateSystemException: No local DataSource found for configuration - dataSource property must be set on LocalSessionFactoryBean; nested exception is org.hibernate.HibernateException: No local DataSource found for configuration - dataSource property must be set on LocalSessionFactoryBean<br>
org.springframework.orm.hibernate3.HibernateSystemException: No local DataSource found for configuration - dataSource property must be set on LocalSessionFactoryBean; nested exception is org.hibernate.HibernateException: No local DataSource found for configuration - dataSource property must be set on LocalSessionFactoryBean<br>
org.hibernate.HibernateException: No local DataSource found for configuration - dataSource property must be set on LocalSessionFactoryBean<br>
at org.springframework.orm.hibernate3.LocalDataSourceConnectionProvider.configure(LocalDataSourceConnectionProvider.java:49)<br>
at org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:124)<br>
at org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:56)<br>
at org.hibernate.cfg.SettingsFactory.createConnectionProvider(SettingsFactory.java:397)<br>
at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:62)<br>
at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2002)<br>
at org.hibernate.cfg.Configuration.generateSchemaUpdateScript(Configuration.java:947)<br>
at org.springframework.orm.hibernate3.LocalSessionFactoryBean$3.doInHibernate(LocalSessionFactoryBean.java:930)<br>
at org.springframework.orm.hibernate3.HibernateTemplate.execute(HibernateTemplate.java:366)<br>
at org.springframework.orm.hibernate3.HibernateTemplate.execute(HibernateTemplate.java:334)<br>
at org.springframework.orm.hibernate3.LocalSessionFactoryBean.updateDatabaseSchema(LocalSessionFactoryBean.java:924)<br>
at org.springframework.orm.hibernate3.LocalSessionFactoryBean.afterPropertiesSet(LocalSessionFactoryBean.java:781)<br>
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1091)<br>
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:396)<br>
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:233)<br>
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:145)<br>
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:186)<br>
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:106)<br>
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1046)<br>
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:857)<br>
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:378)<br>
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:233)<br>
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:145)<br>
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:283)<br>
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:313)<br>
at org.springframework.context.support.ClassPathXmlApplicationContext.&lt;init&gt;(ClassPathXmlApplicationContext.java:87)<br>
at org.springframework.context.support.ClassPathXmlApplicationContext.&lt;init&gt;(ClassPathXmlApplicationContext.java:72)<br>
at org.springframework.context.support.ClassPathXmlApplicationContext.&lt;init&gt;(ClassPathXmlApplicationContext.java:63)<br>
at deletetest.DeleteTest.setUp(DeleteTest.java:27)<br>
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)<br>
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)<br>
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)<br>
at java.lang.reflect.Method.invoke(Method.java:585)<br>
at org.junit.internal.runners.BeforeAndAfterRunner.invokeMethod(BeforeAndAfterRunner.java:74)<br>
at org.junit.internal.runners.BeforeAndAfterRunner.runBefores(BeforeAndAfterRunner.java:50)<br>
at org.junit.internal.runners.BeforeAndAfterRunner.runProtected(BeforeAndAfterRunner.java:33)<br>
at org.junit.internal.runners.TestMethodRunner.runMethod(TestMethodRunner.java:75)<br>
at org.junit.internal.runners.TestMethodRunner.run(TestMethodRunner.java:45)<br>
at org.junit.internal.runners.TestClassMethodsRunner.invokeTestMethod(TestClassMethodsRunner.java:71)<br>
at org.junit.internal.runners.TestClassMethodsRunner.run(TestClassMethodsRunner.java:35)<br>
at org.junit.internal.runners.TestClassRunner$1.runUnprotected(TestClassRunner.java:42)<br>
at org.junit.internal.runners.BeforeAndAfterRunner.runProtected(BeforeAndAfterRunner.java:34)<br>
at org.junit.internal.runners.TestClassRunner.run(TestClassRunner.java:52)<br>
at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:38)<br>
at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)<br>
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460)<br>
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)<br>
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)<br>
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)</p>
<hr>
<p dir="auto"><strong>Affects:</strong> 2.0.1</p>
<p dir="auto"><strong>Issue Links:</strong></p>
<ul dir="auto">
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398073619" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/7614" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/7614/hovercard" href="https://github.com/spring-projects/spring-framework/issues/7614">#7614</a> Problems with spring 2.0.2 and hibernate using schemaupdate=true (<em><strong>"is duplicated by"</strong></em>)</li>
</ul>
<p dir="auto">1 votes, 2 watchers</p>