From 887648c86f6dc52f6dd2d48b02a4993bdafb1bb7 Mon Sep 17 00:00:00 2001 From: Pierre Villard Date: Mon, 9 May 2016 23:04:19 +0200 Subject: [PATCH] NIFI-1863 extended caught exception in cleaning task for HTTPContextMap Signed-off-by: Matt Burgess This closes #428 --- .../java/org/apache/nifi/http/StandardHttpContextMap.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/nifi-nar-bundles/nifi-standard-services/nifi-http-context-map-bundle/nifi-http-context-map/src/main/java/org/apache/nifi/http/StandardHttpContextMap.java b/nifi-nar-bundles/nifi-standard-services/nifi-http-context-map-bundle/nifi-http-context-map/src/main/java/org/apache/nifi/http/StandardHttpContextMap.java index bd3e86696a..9da357d019 100644 --- a/nifi-nar-bundles/nifi-standard-services/nifi-http-context-map-bundle/nifi-http-context-map/src/main/java/org/apache/nifi/http/StandardHttpContextMap.java +++ b/nifi-nar-bundles/nifi-standard-services/nifi-http-context-map-bundle/nifi-http-context-map/src/main/java/org/apache/nifi/http/StandardHttpContextMap.java @@ -16,7 +16,6 @@ */ package org.apache.nifi.http; -import java.io.IOException; import java.util.ArrayList; import java.util.Iterator; import java.util.List; @@ -177,8 +176,8 @@ public class StandardHttpContextMap extends AbstractControllerService implements final AsyncContext async = entry.getValue().getAsync(); ((HttpServletResponse) async.getResponse()).sendError(HttpServletResponse.SC_SERVICE_UNAVAILABLE); async.complete(); - } catch (final IOException ioe) { - // we are trying to indicate that we are unavailable. If we have an IOException and cannot respond, + } catch (final Exception e) { + // we are trying to indicate that we are unavailable. If we have an exception and cannot respond, // then so be it. Nothing to really do here. } }