You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2010/07/22 05:58:13 UTC
DO NOT REPLY [Bug 49635] New:
org.apache.catalina.connector.RequestFacade has wrong implementation...
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: dev@tomcat.apache.org
ReportedBy: den04304@gmail.com
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: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
DO NOT REPLY [Bug 49635] org.apache.catalina.connector.RequestFacade
has wrong implementation...
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=49635
Mark Thomas <ma...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |DUPLICATE
OS/Version| |All
--- Comment #1 from Mark Thomas <ma...@apache.org> 2010-07-22 02:08:44 EDT ---
The analysis is wrong but there is an issue. The root cause is the same as the
duplicate where a fix is currently being worked on.
*** This bug has been marked as a duplicate of bug 49567 ***
--
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: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org