https://issues.apache.org/bugzilla/show_bug.cgi?id=49635
Summary: org.apache.catalina.connector.RequestFacade has wrong
implementation...
Product: Tomcat 7
Version: 7.0.0
Platform: PC
Status: NEW
Severity: normal
Priority: P2
Component: Connectors
AssignedTo: [email protected]
ReportedBy: [email protected]
I can't run a below code.
@WebServlet(urlPatterns={"/async"}, asyncSupported=true)
public class AsyncServlet extends HttpServlet {
private static final long serialVersionUID = 1L;
protected void doGet(HttpServletRequest request, HttpServletResponse
response) throws ServletException, IOException {
AsyncContext context = request.startAsync(request, response);
context.start(new Runnable() {
@Override
public void run() {
System.out.println("async!!");
}
});
}
}
It occur java.lang.StackOverflowError.
java.lang.StackOverflowError
at
org.apache.catalina.connector.RequestFacade.startAsync(RequestFacade.java:963)
at
org.apache.catalina.connector.RequestFacade.startAsync(RequestFacade.java:963)
at
org.apache.catalina.connector.RequestFacade.startAsync(RequestFacade.java:963)
.
.
.
So, I think that org.apache.catalina.connector.RequestFacade has wrong
implementation.I show part of source code in RequestFacade line number is 961
to 964.
public AsyncContext startAsync(ServletRequest request, ServletResponse
response)
throws IllegalStateException {
return request.startAsync(request, response);
}
I think it should have "this." before "request" next "return".
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]