[GLASSFISH-19320] javax.servlet.ReadListener#onDataAvailable is never called Created: 12/Nov/12  Updated: 08/Jan/13  Resolved: 08/Jan/13

Status: Resolved
Project: glassfish
Component/s: web_container
Affects Version/s: None
Fix Version/s: 4.0_b71

Type: Bug Priority: Critical
Reporter: Pavel Bucek Assignee: Amy Roh
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: Zip Archive read-listener.zip    

 Description   

I'm working on Websocket spec implementation and I need to integrate with servlet (3.1). I'm registering my own ProtocolHandler which registers new ReadListener to ServletInputStream and I would expect that onDataAvailable method will be called when entity arrives.

Testcase attached; deploy war file and run org.glassfish.bugs.Test (it creates Jersey client and sends POST request to created filter). I can see "##### data.read: 109|#]" in the log file, but "##### OnDataAvailable" is not there and onDataAvailable(), thus onDataAvailable is not called (verified in debugging session).



 Comments   
Comment by Amy Roh [ 12/Nov/12 ]

FYI, we have a testcase using a ReadListener where onDataAvailable is called in http://java.net/projects/glassfish/sources/svn/show/trunk/v2/appserv-tests/devtests/web/servlet-3.1/upgradeEcho. See upgradeEcho/servlet/test/EchoProtocolHandler.java. I will investigate why this isn't working for your testcase.

Generated at Sat Feb 13 00:37:21 UTC 2016 using JIRA 6.2.3#6260-sha1:63ef1d6dac3f4f4d7db4c1effd405ba38ccdc558.