Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CPU 100% dead loop #8

Open
liur118 opened this issue Mar 14, 2019 · 0 comments
Open

CPU 100% dead loop #8

liur118 opened this issue Mar 14, 2019 · 0 comments

Comments

@liur118
Copy link

liur118 commented Mar 14, 2019

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(); }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant