Summary: | http2(h2) AsyncContext setReadListener NullPointerException | ||
---|---|---|---|
Product: | Tomcat 9 | Reporter: | Jack <94544458> |
Component: | Connectors | Assignee: | Tomcat Developers Mailing List <dev> |
Status: | RESOLVED FIXED | ||
Severity: | major | ||
Priority: | P2 | ||
Version: | 9.0.1 | ||
Target Milestone: | ----- | ||
Hardware: | PC | ||
OS: | Linux |
Description
Jack
2017-11-03 14:28:19 UTC
By the way, the code is in a AsyncContextHandler ServletInputStream sis = request.getInputStream(); sis.setReadListener(this); //this line throw exception, this is the ACHandler any way, this will never be null, it has nothing to do with this. And it is easy to see in Stream.java. Fixed in 9.0.2. I don't know if there's a root cause that needs to be fixed. By the way, If I remove <UpgradeProtocol className="org.apache.coyote.http2.Http2Protocol" /> from the https connector then I will not got this NullPointerException. Good to know, you people have already fixed it. Great. 9.0.1 is still in beta, where can I download the 9.0.2 in alpha or something? The fix will be included in 9.0.2 and 8.5.24. |