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

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

    Details

      Description

      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.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                swd847 Stuart Douglas
                Reporter:
                markus.gaisbauer Markus Gaisbauer
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: