<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=vguhesan" rel="nofollow">Venkatt Guhesan</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-692?redirect=false" rel="nofollow">SPR-692</a></strong> and commented</p>
<p dir="auto">I have a simple application where the following scenerio:</p>
<ul dir="auto">
<li>LoginController extends SimpleFormController</li>
<li>LoginValidator implements Validator</li>
</ul>
<p dir="auto">Within LoginController I override the following method:</p>
<p dir="auto">protected ModelAndView onSubmit(HttpServletRequest request,<br>
HttpServletResponse response,<br>
Object command,<br>
BindException errors)<br>
throws Exception</p>
<hr>
<p dir="auto">on proper validation with no errors, I would expect the app to call the "onSubmit" method with the defined signature but it does not. If on the other hand I override, the following method:</p>
<p dir="auto">protected ModelAndView onSubmit(Object command)<br>
throws Exception</p>
<hr>
<p dir="auto">it calls the "onSubmit" method properly but I need to access the request scope to set a variable in the session.</p>
<p dir="auto">Why does it not work when I implement the onSubmit(request,response,command,errors)? I have tried both Spring - 1.1.3 and 1.1.4 JARs.</p>
<p dir="auto">PS: There is only one onSubmit method in the class. I have verified to make sure there were nother onSubmit methods...</p>
<p dir="auto">Thanks</p>
<p dir="auto">Venkatt Guhesan</p>
<hr>
<p dir="auto"><strong>Affects:</strong> 1.1.3, 1.1.4</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="398055717" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/5521" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/5521/hovercard" href="https://github.com/spring-projects/spring-framework/issues/5521">#5521</a> invalid doSubmit method executed for SimpleFormController (<em><strong>"is duplicated by"</strong></em>)</li>
</ul>
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=kev.lee.wright" rel="nofollow">Kevin Wright</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-7562?redirect=false" rel="nofollow">SPR-7562</a></strong> and commented</p>
<p dir="auto">The start of forElementType() is defined as:</p>
<p dir="auto">if (getType().equals(elementType)) {<br>
return this;<br>
}</p>
<p dir="auto">Unfortunately, this fails when the TypeDescriptor represents a List&lt;List&lt;...&gt;&gt;<br>
When calling getElementType(), the call stack will be getElementType() -&gt; getElementTypeDescriptor() -&gt; forElementType()<br>
at which point, the elementType field will still be null.</p>
<p dir="auto">The equality check will therefore see that List&lt;null&gt; == List&lt;null&gt;, and so the TypeDescriptor will be returned as its own element descriptor.<br>
This leads to a recursive definition, where the descriptor now represents a List&lt;List&lt;List&lt;...&lt;List&lt;List&lt;... etc.</p>
<hr>
<p dir="auto"><strong>Affects:</strong> 3.0.3</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="398105728" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/11948" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/11948/hovercard" href="https://github.com/spring-projects/spring-framework/issues/11948">#11948</a> StackOverflowError when converting nested Lists (<em><strong>"duplicates"</strong></em>)</li>
</ul>