https://bz.apache.org/bugzilla/show_bug.cgi?id=61719
Bug ID: 61719 Summary: http2(h2) AsyncContext setReadListener NullPointerException Product: Tomcat 9 Version: 9.0.1 Hardware: PC OS: Linux Status: NEW Severity: major Priority: P2 Component: Connectors Assignee: dev@tomcat.apache.org Reporter: 94544...@qq.com Target Milestone: ----- With http2 enabled(h2 with https), after AsyncContext started, ServletInputStream sis = request.getInputStream(); sis.setReadListener(this); //this line throw exception java.lang.NullPointerException at org.apache.coyote.http2.Stream$StreamInputBuffer.registerReadInterest(Stream.java:920) at org.apache.coyote.http2.StreamProcessor.registerReadInterest(StreamProcessor.java:176) at org.apache.coyote.AbstractProcessor.action(AbstractProcessor.java:453) at org.apache.coyote.Request.action(Request.java:430) at org.apache.catalina.connector.InputBuffer.isReady(InputBuffer.java:287) at org.apache.catalina.connector.InputBuffer.setReadListener(InputBuffer.java:243) at org.apache.catalina.connector.CoyoteInputStream.setReadListener(CoyoteInputStream.java:207) If the post data as query string, then no problem. but if the post data as http request body, then I got the above exception. -- You are receiving this mail because: You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org