Repository: nifi
Updated Branches:
  refs/heads/0.x 768cdecb9 -> 359b3487d


NIFI-1863 extended caught exception in cleaning task for HTTPContextMap

Signed-off-by: Matt Burgess <mattyb...@apache.org>


Project: http://git-wip-us.apache.org/repos/asf/nifi/repo
Commit: http://git-wip-us.apache.org/repos/asf/nifi/commit/359b3487
Tree: http://git-wip-us.apache.org/repos/asf/nifi/tree/359b3487
Diff: http://git-wip-us.apache.org/repos/asf/nifi/diff/359b3487

Branch: refs/heads/0.x
Commit: 359b3487d38973290147eaaafefb66749cf7abb7
Parents: 768cdec
Author: Pierre Villard <pierre.villard...@gmail.com>
Authored: Mon May 9 23:04:19 2016 +0200
Committer: Matt Burgess <mattyb...@apache.org>
Committed: Tue May 10 13:48:29 2016 -0400

----------------------------------------------------------------------
 .../main/java/org/apache/nifi/http/StandardHttpContextMap.java  | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/nifi/blob/359b3487/nifi-nar-bundles/nifi-standard-services/nifi-http-context-map-bundle/nifi-http-context-map/src/main/java/org/apache/nifi/http/StandardHttpContextMap.java
----------------------------------------------------------------------
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 bd3e866..9da357d 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.
                     }
                 }

Reply via email to