Bug 59825

Summary: Better diagnostic needed for missing asyncSupported
Product: Tomcat 8 Reporter: Brett Kail <bjkail>
Component: CatalinaAssignee: Tomcat Developers Mailing List <dev>
Status: RESOLVED FIXED    
Severity: enhancement    
Priority: P2    
Version: 8.5.3   
Target Milestone: ----   
Hardware: PC   
OS: All   

Description Brett Kail 2016-07-07 20:10:56 UTC
It's difficult to determine why ServletRequest.startAsync has failed.  The stack trace of the exception can be checked, but it's not obvious which classes are relevant, particularly if you're trying to add asynchronous request processing to existing environments.

At a minimum, the message should be updated to indicate that valves need to explicitly declare support for asynchronous request processing, but ideally, the error message would explicitly list the valves, filters, and servlets that do not explicitly declare support: "Attempt to put servlet <name> into asynchronous mode has failed.  The following do not explicitly declare support for asynchronous request processing: valve <class>, ..., filter <name>, ..., servlet <name>, ..."
Comment 1 Mark Thomas 2017-04-07 18:44:08 UTC
Fixed in:
- trunk for 9.0.0.M20 onwards
- 8.5.x for 8.5.14 onwards