Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-7116

AsyncResponse.resume() infinitely hangs up after first call

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.1.8
    • 3.1.9, 3.0.12, 3.2.0
    • JAX-RS
      • Java - 1.8.0_66 (build 1.8.0_66-b17)
      • CXF - 3.1.8
      • Jetty - 9.3.13.v20161014
      • OS - OS X El Capitan 10.11.6
    • Unknown

    Description

      Issue with AsyncResponse happened after upgrade from CXF 3.1.7 to 3.1.8.
      After the second call to REST method server stops to respond. Implementation of method uses AsyncResponse and call to resume() in a separate thread:
      @GET
      @Produces(MediaType.TEXT_PLAIN)
      @Path("/doesNotWork")
      public void doesNotWork(@Suspended AsyncResponse response) {
      executorService.submit(() ->

      { LOGGER.debug("Async task..."); response.resume("Success!"); }

      );
      }

      First call to method above works as it should but subsequent calls just hangs up forever. No thread deadlocks were detected.
      The example test (Maven project) is attached to this item.

      Attachments

        1. cxf-issue.zip
          4 kB
          Dmytro Khrystiuk

        Activity

          People

            sergey_beryozkin Sergey Beryozkin
            dmytro.khrystiuk Dmytro Khrystiuk
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: