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

Netty and Netty4 never respond in case of unhandled exception

    Details

    • Type: Feature Request
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 3.0.5.Final, 3.0.6.Final
    • Fix Version/s: 3.0.11.Final
    • Component/s: jaxrs
    • Labels:
      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>.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                bill.burke Bill Burke
                Reporter:
                t.broyer Thomas Broyer
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: