You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've met a dead loop
caused by this class ResponseWrapper.java @Override public ServletResponse getResponse() { return this; }
when run the application on tomcat, an error appeared by request the web.html in the application
see these codes from DefaultServlet.java:895 ServletResponse r = response; long contentWritten = 0; while (r instanceof ServletResponseWrapper) { r = ((ServletResponseWrapper) r).getResponse(); }
The ResponseWrapper.getResponse() method will return the Object itself forever. cause the dead loop.
suggest @Override public ServletResponse getResponse() { return super.getResponse(); }
The text was updated successfully, but these errors were encountered:
env:
java1.8
tomcat-apache-tomcat-8.0.29
ssm 4.1.4+-
I've met a dead loop
caused by this class
ResponseWrapper.java
@Override public ServletResponse getResponse() { return this; }
when run the application on tomcat, an error appeared by request the web.html in the application
see these codes from DefaultServlet.java:895
ServletResponse r = response; long contentWritten = 0; while (r instanceof ServletResponseWrapper) { r = ((ServletResponseWrapper) r).getResponse(); }
The
ResponseWrapper.getResponse()
method will return the Object itself forever. cause the dead loop.suggest
@Override public ServletResponse getResponse() { return super.getResponse(); }
The text was updated successfully, but these errors were encountered: