https://bz.apache.org/bugzilla/show_bug.cgi?id=64710

Arshiya <arshiya.shar...@ericsson.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|DUPLICATE                   |---
             Status|RESOLVED                    |REOPENED

--- Comment #7 from Arshiya <arshiya.shar...@ericsson.com> ---
Hi Mark , 

The Null Pointer Exception and BufferOverflowException is from the jars built
from the latest tomcat source code (9.0.x branch). It is not a duplicate of bug
64671.

1)I have attached the jmx file and jar to reproduce the
BufferOverflowException.
Steps to reproduce:
*Client side : JMeter (attached Reproduction.jmx file)
No of threads:200
Loop Count:10 (can be increased)
Port:1080
*Server side (Embedded tomcat application : attached
tomcat-9-embedded-1.0.4.jar)
This is based of the example project
https://github.com/jyeary/tomcat-9-embedded/ and modified to add HTTP2Upgrade
protocol.Servlet can be found at http://localhost:1090/hello.
java -cp <CLASSPATH> -jar tomcat-9-embedded-1.0.4.jar -Xmx1g
<CLASSPATH> - where the latest tomcat jars are placed.

2)The Null pointer Exception is due to Null check not being added in the
endRequestBodyFrame in Http2UpgradeHandler :

    public void endRequestBodyFrame(int streamId)
        throws Http2Exception
    {
        Stream stream = getStream(streamId, true);
        stream.getInputBuffer().onDataAvailable();
    }

Can you please check and help us with the fix.
Thank you !

-- 
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

Reply via email to