<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=jkuipers" rel="nofollow">Joris Kuipers</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-7706?redirect=false" rel="nofollow">SPR-7706</a></strong> and commented</p>
<p dir="auto">ServletWebRequest#checkNotModified will set a 304 response code, but doesn't set the Content-Length header to 0. This leads to exception on WebLogic, which gets all worked up about the fact that there's no response body even though the Content-Length headers claims there is:</p>
<p dir="auto">&lt;Error&gt; &lt;HTTP&gt; &lt;BEA-101104&gt; &lt;Servlet execution in servlet context "ServletContext@26118573[app:MP24MotorPrototype module:MP24 path:/MP24 spec-version:2.5]" failed, java.net.ProtocolException: Didn't meet stated Content-Length, wrote: '0' bytes instead of stated: '3291' bytes..<br>
java.net.ProtocolException: Didn't meet stated Content-Length, wrote: '0' bytes instead of stated: '3291' bytes.<br>
at weblogic.servlet.internal.ServletOutputStreamImpl.ensureContentLength(ServletOutputStreamImpl.java:425)<br>
at weblogic.servlet.internal.ServletResponseImpl.ensureContentLength(ServletResponseImpl.java:1451)<br>
at weblogic.servlet.internal.ServletResponseImpl.send(ServletResponseImpl.java:1494)<br>
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1441)<br>
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)</p>
<hr>
<p dir="auto"><strong>Affects:</strong> 3.0.5</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="398110538" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/12668" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/12668/hovercard" href="https://github.com/spring-projects/spring-framework/issues/12668">#12668</a> ResourceHttpRequestHandler status code 304 setting Content-Length header (<em><strong>"is duplicated by"</strong></em>)</li>
</ul>
<p dir="auto"><strong>Referenced from:</strong> commits <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/spring-projects/spring-framework/commit/db3634f8598fc34bab57092008d83336fcbae07c/hovercard" href="https://github.com/spring-projects/spring-framework/commit/db3634f8598fc34bab57092008d83336fcbae07c"><tt>db3634f</tt></a></p>
<p dir="auto">1 votes, 2 watchers</p>
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=youngm" rel="nofollow">Mike Youngstrom</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-3279?redirect=false" rel="nofollow">SPR-3279</a></strong> and commented</p>
<p dir="auto">Cglib appears to be a poorly maintained and dying project.  It would be nice to replace it with a more actively maintained project like javaassist for library dependency reasons.  Newer versions of asm are not compatibly with the asm included in cglib-nodep which can cause problems.</p>
<p dir="auto">Spring already provides all the abstraction needed to replace cglib with javaassist.  a system property can be used initially while the javaassist aop provider is tested and then perhaps later could replace cglib as the default.  Just a thought.</p>
<p dir="auto">Mike</p>
<hr>
<p dir="auto"><strong>Affects:</strong> 2.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="398111462" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/12840" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/12840/hovercard" href="https://github.com/spring-projects/spring-framework/issues/12840">#12840</a> Support for ByteBuddy as an alternative to CGLIB (<em><strong>"duplicates"</strong></em>)</li>
</ul>
<p dir="auto">9 votes, 8 watchers</p>