Mantis Bugtracker
  

Viewing Issue Advanced Details Jump to Notes ] View Simple ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0005776 [Resin] minor always 07-15-14 10:11 08-07-14 14:25
Reporter alex View Status public  
Assigned To ferg
Priority normal Resolution open Platform
Status closed   OS
Projection none   OS Version
ETA none Fixed in Version 4.0.41 Product Version 4.0.40
  Product Build
Summary 0005776: servlet-async: java.lang.IllegalStateException: The servlet '/error1' at '/error1' does not support async
Description Exception with legal servlet.


I cleared resin-data and redeployed the app, but I'm still able to reproduce the issue.
I used the following steps to reproduce:

./bin/resin.sh stop
rm -rf resin-data/app-0
rm -rf webapps/servlet3-async*
./bin/resin.sh start
cp ~/servlet3-async.war webapps

curl -D - 'http://localhost:8080/servlet3-async/error2?fail=true' [^]
curl -D - http://localhost:8080/servlet3-async/error1 [^]

I'm using war deployment.
Steps To Reproduce
Additional Information java.lang.IllegalStateException: The servlet '/error1' at '/error1' does
not support async because the servlet or one of the filters does not support
asynchronous mode. The servlet should be annotated with a @WebServlet(asyncSupported=true)
annotation or have a <async-supported> tag in the web.xml.
    at com.caucho.server.http.HttpServletRequestImpl.startAsync(HttpServletRequestImpl.java:1503)
    at com.caucho.server.http.HttpServletRequestImpl.startAsync(HttpServletRequestImpl.java:1489)
    at fi.markoa.servlet3.AsyncErrorServlet1.doGet(AsyncErrorServlet1.java:19)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:120)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:97)
    at com.caucho.server.dispatch.ServletFilterChain.doFilter(ServletFilterChain.java:109)
    at com.caucho.server.webapp.WebAppFilterChain.doFilter(WebAppFilterChain.java:156)
    at com.caucho.server.webapp.AccessLogFilterChain.doFilter(AccessLogFilterChain.java:95)
    at com.caucho.server.dispatch.ServletInvocation.service(ServletInvocation.java:289)
    at com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:838)
    at com.caucho.network.listen.TcpSocketLink.dispatchRequest(TcpSocketLink.java:1346)
    at com.caucho.network.listen.TcpSocketLink.handleRequest(TcpSocketLink.java:1302)
    at com.caucho.network.listen.TcpSocketLink.handleRequestsImpl(TcpSocketLink.java:1286)
    at com.caucho.network.listen.TcpSocketLink.handleRequests(TcpSocketLink.java:1194)
    at com.caucho.network.listen.TcpSocketLink.handleAcceptTaskImpl(TcpSocketLink.java:993)
    at com.caucho.network.listen.ConnectionTask.runThread(ConnectionTask.java:117)
    at com.caucho.network.listen.ConnectionTask.run(ConnectionTask.java:93)
    at com.caucho.network.listen.SocketLinkThreadLauncher.handleTasks(SocketLinkThreadLauncher.java:169)
    at com.caucho.network.listen.TcpSocketAcceptThread.run(TcpSocketAcceptThread.java:61)
    at com.caucho.env.thread2.ResinThread2.runTasks(ResinThread2.java:173)
    at com.caucho.env.thread2.ResinThread2.run(ResinThread2.java:118)
Attached Files

- Relationships

- Notes
(0006462)
marko_asplund
07-15-14 11:50

source code for servlet3-async.war can be found here:
https://github.com/marko-asplund/servlet3-async [^]
 
(0006466)
ferg
08-07-14 14:25

server/1la9
 

- Issue History
Date Modified Username Field Change
07-15-14 10:11 alex New Issue
07-15-14 10:11 alex version  => 4.0.40
07-15-14 10:11 alex Description Updated
07-15-14 11:42 marko_asplund Issue Monitored: marko_asplund
07-15-14 11:50 marko_asplund Note Added: 0006462
08-07-14 14:25 ferg Note Added: 0006466
08-07-14 14:25 ferg Assigned To  => ferg
08-07-14 14:25 ferg Status new => closed
08-07-14 14:25 ferg Fixed in Version  => 4.0.41


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