Details
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(() ->
);
}
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.