5 Replies Latest reply on Dec 7, 2018 4:51 AM by Peter Lang

    Wildfly 14 doesn't always call AsyncListener.onComplete()

    Peter Lang Newbie

      In WildFly 14 (undertow Version 2.0.13.Final) I observed a behavior change in asynchronous servlet processing.

       

      Since undertow 2.0.12.Final the `AsyncListener#onComplete()` method is no longer called in my sample.

      As my app tries to release allocated resources in the `onComplete()` callback as suggested by the servlet specification,

      I rely on this callback for resource cleanup.

       

      @Override
      protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
        req.startAsync(); 
        throw new NullPointerException();
      }
      
      

      GitHub - dynatrace-peterlang/undertow-async-snippet: A sample project used for a bugreport to undertow. AsyncErrorServlet

       

      Could you please check, if this is a bug in undertwo 2.0.12.Final / WildFly14? Could this be a duplicate to [UNDERTOW-556] Exception after startAsync results in error page with HTTP status code 200 - JBoss Issue Tracker ?

       

      Thank you very much for you help,

      Peter