Uploaded image for project: 'Undertow'
  1. Undertow
  2. UNDERTOW-556

Exception after startAsync results in error page with HTTP status code 200

XMLWordPrintable

      I tested the behavior of the following servlet with different servlet containers.

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

      Tomcat, Jetty and Glassfish respond with status code 500.
      Wildfly 8 and 9 responds with status code 200 and a regular error page showing the stacktrace.

              sdouglas1@redhat.com Stuart Douglas (Inactive)
              markus.gaisbauer Markus Gaisbauer (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: