nifi git commit: NIFI-1863 extended caught exception in cleaning task for HTTPContextMap

2016-05-10 Thread mattyb149
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 


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 
Authored: Mon May 9 23:04:19 2016 +0200
Committer: Matt Burgess 
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.
 }
 }



nifi git commit: NIFI-1863 extended caught exception in cleaning task for HTTPContextMap

2016-05-10 Thread mattyb149
Repository: nifi
Updated Branches:
  refs/heads/master cb6752012 -> 887648c86


NIFI-1863 extended caught exception in cleaning task for HTTPContextMap

Signed-off-by: Matt Burgess 

This closes #428


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

Branch: refs/heads/master
Commit: 887648c86f6dc52f6dd2d48b02a4993bdafb1bb7
Parents: cb67520
Author: Pierre Villard 
Authored: Mon May 9 23:04:19 2016 +0200
Committer: Matt Burgess 
Committed: Tue May 10 13:46:40 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/887648c8/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.
 }
 }