diff --git a/core-server/src/main/java/org/glassfish/jersey/server/ServerRuntime.java b/core-server/src/main/java/org/glassfish/jersey/server/ServerRuntime.java index 06e0f94561..2e3a2635d1 100644 --- a/core-server/src/main/java/org/glassfish/jersey/server/ServerRuntime.java +++ b/core-server/src/main/java/org/glassfish/jersey/server/ServerRuntime.java @@ -449,9 +449,10 @@ public void process(final Throwable throwable) { request.getResponseWriter().failure(responseError); } finally { completionCallbackRunner.onComplete(responseError); + + defaultMapperResponse = processResponseWithDefaultExceptionMapper(responseError, request); } - defaultMapperResponse = processResponseWithDefaultExceptionMapper(responseError, request); } } finally {