glassfish
  1. glassfish
  2. GLASSFISH-19320

javax.servlet.ReadListener#onDataAvailable is never called

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Critical Critical
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.0_b71
    • Component/s: web_container
    • Labels:
      None

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

        Activity

        Hide
        Amy Roh added a comment -

        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.

        Show
        Amy Roh added a comment - 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.

          People

          • Assignee:
            Amy Roh
            Reporter:
            Pavel Bucek
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: