Bug 59825 - Better diagnostic needed for missing asyncSupported
Summary: Better diagnostic needed for missing asyncSupported
Status: RESOLVED FIXED
Alias: None
Product: Tomcat 8
Classification: Unclassified
Component: Catalina (show other bugs)
Version: 8.5.3
Hardware: PC All
: P2 enhancement (vote)
Target Milestone: ----
Assignee: Tomcat Developers Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-07-07 20:10 UTC by Brett Kail
Modified: 2017-04-07 18:44 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
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