<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=chapman" rel="nofollow">Chapman</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-9454?redirect=false" rel="nofollow">SPR-9454</a></strong> and commented</p>
<p dir="auto">Spring version 3.1.0.RELEASE.</p>
<p dir="auto">A page display 2 dropdown boxes, each of them contained over 100 values. There are two problems:</p>
<ol dir="auto">
<li>Render JSP is slow, over 2 seconds to display a simple page.</li>
<li>After running for a few days, the response time is slower, over 5 seconds to display the same page.</li>
</ol>
<p dir="auto">Verify GC log in Tomcat, there is no memory leak.<br>
Is there any problem in OptionTag.renderOption method?</p>
<p dir="auto">From other forumn, it also mentioned form:select has performance issue.<br>
<a href="http://stackoverflow.com/questions/5246685/spring-web-mvc-huge-performance-issues-when-rendering-view" rel="nofollow">http://stackoverflow.com/questions/5246685/spring-web-mvc-huge-performance-issues-when-rendering-view</a></p>
<hr>
<p dir="auto"><strong>Affects:</strong> 3.1 GA</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="398174074" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/17078" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/17078/hovercard" href="https://github.com/spring-projects/spring-framework/issues/17078">#17078</a> SelectedValueComparator triggering a lot of database lookups with DomainClassConverter (<em><strong>"duplicates"</strong></em>)</li>
</ul>
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=dbeauregard" rel="nofollow">Derek Beauregard</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-9602?redirect=false" rel="nofollow">SPR-9602</a></strong> and commented</p>
<p dir="auto">The javadoc for BeanFactory.getType(&lt;bean_name&gt;) specifies that it will "Determine the type of the bean with the given name. More specifically, determine the type of object that getBean(java.lang.String) would return for the given name."</p>
<p dir="auto">However, when using AOP, there are cases where this will not hold true.  We have demonstrated two cases: 1) when using the lazy-init="true" attribute on a bean which will have an AOP proxy, and 2) when a bean using ApplicationContextAware calls getType(), for a bean which will have an AOP proxy, in it's init-method.</p>
<p dir="auto">In both cases getType(&lt;name&gt;) can return a different type than getBean(&lt;name&gt;).class().  More specifically getType() will return the base class of the bean and not the proxy, which getBean().class() will return.  After calling getBean(), future calls to getType() will return the correct type, the proxy.</p>
<p dir="auto">We have ran into issues with the second case when using Mule + Spring.</p>
<p dir="auto">I have attached a sample Maven project demonstrating the first case, with lazy-init.</p>
<p dir="auto">-Derek</p>
<hr>
<p dir="auto"><strong>Affects:</strong> 3.1 GA</p>
<p dir="auto"><strong>Attachments:</strong></p>
<ul dir="auto">
<li><a href="https://jira.spring.io/secure/attachment/20111/SpringLifecycle.zip" rel="nofollow">SpringLifecycle.zip</a> (<em>9.18 kB</em>)</li>
</ul>
<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="398152115" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/14272" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/14272/hovercard" href="https://github.com/spring-projects/spring-framework/issues/14272">#14272</a> BeanFactory.getType(String) may not return a Proxy class depending on the order of bean declarations (<em><strong>"duplicates"</strong></em>)</li>
</ul>