Mantis Bugtracker

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0004697 [Resin] minor always 08-03-11 10:06 08-04-11 11:54
Reporter ferg View Status public  
Assigned To ferg
Priority normal Resolution fixed  
Status closed   Product Version
Summary 0004697: async onComplete is calling GET
Description (rep by Adrian Sutton)

We've been trying to track down an exception we see quite regularly in the resin logs:
java.lang.IllegalStateException: Comet cannot be requested after complete().
    at com.caucho.server.http.AsyncContextImpl.restart(
    at com.caucho.server.http.HttpServletRequestImpl.startAsync(
    at com.caucho.server.http.CauchoRequestWrapper.startAsync(
    at javax.servlet.http.HttpServlet.service(
    at javax.servlet.http.HttpServlet.service(
    at com.caucho.server.dispatch.ServletFilterChain.doFilter(
    at com.lmax.hcf.web.InvocationContextFilter.doFilter(
    at com.caucho.server.dispatch.FilterFilterChain.doFilter(
    at com.caucho.server.webapp.DispatchFilterChain.doFilter(
    at com.caucho.server.webapp.ResumeFilterChain.doFilter(
    at com.caucho.server.dispatch.ServletInvocation.service(
    at com.caucho.server.webapp.RequestDispatcherImpl.dispatchResume(
    at com.caucho.server.webapp.RequestDispatcherImpl.dispatchResume(
    at com.caucho.server.http.AbstractHttpRequest.handleResume(
    at com.caucho.env.thread.ResinThread.runTasks(

I believe this is occurring because when we call asyncContext.complete(), the request is passed back through doGet/doPost again, at the end of which we try to call request.startAsync again. As I understand it, asyncContext.complete() just cause the response to be committed "as-is" and not trigger a final processing by the servlet class.

Let me know if you need any further information etc.

Additional Information
Attached Files

- Relationships

- Notes
08-04-11 11:54


- Issue History
Date Modified Username Field Change
08-03-11 10:06 ferg New Issue
08-04-11 11:54 ferg Note Added: 0005426
08-04-11 11:54 ferg Assigned To  => ferg
08-04-11 11:54 ferg Status new => closed
08-04-11 11:54 ferg Resolution open => fixed
08-04-11 11:54 ferg Fixed in Version  => 4.0.21

Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
28 total queries executed.
25 unique queries executed.
Powered by Mantis Bugtracker