Uploaded image for project: 'RESTEasy'
  1. RESTEasy
  2. RESTEASY-1006

Netty and Netty4 never respond in case of unhandled exception

    XMLWordPrintable

Details

    • Feature Request
    • Resolution: Done
    • Major
    • 3.0.11.Final
    • 3.0.5.Final, 3.0.6.Final
    • jaxrs
    • None

    Description

      Both Netty4 and Netty RequestHandler handle exceptions by resetting the response and setting a 500 status code, but then they return and never actually respond.

      See https://github.com/resteasy/Resteasy/blob/3.0.6.Final/jaxrs/server-adapters/resteasy-netty/src/main/java/org/jboss/resteasy/plugins/server/netty/RequestHandler.java#L58
      and https://github.com/resteasy/Resteasy/blob/3.0.6.Final/jaxrs/server-adapters/resteasy-netty4/src/main/java/org/jboss/resteasy/plugins/server/netty/RequestHandler.java#L56

      This only happens when there's no ExceptionMapper for the exception, so a workaround is to use a catch-all ExceptionMapper<Throwable>.

      Attachments

        Activity

          People

            patriot1burke@gmail.com Bill Burke (Inactive)
            t.broyer Thomas Broyer (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: