From 0e422f0ea363d109813e5bf8308492b309cd5a7f Mon Sep 17 00:00:00 2001 From: Bryan Bende Date: Mon, 22 Jul 2024 11:26:55 -0400 Subject: [PATCH] NIFI-13566 Catch Throwable during JettyServer start to ensure any issue during start will exit Signed-off-by: Matt Burgess This closes #9101 --- .../src/main/java/org/apache/nifi/web/server/JettyServer.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nifi-framework-bundle/nifi-framework/nifi-web/nifi-jetty/src/main/java/org/apache/nifi/web/server/JettyServer.java b/nifi-framework-bundle/nifi-framework/nifi-web/nifi-jetty/src/main/java/org/apache/nifi/web/server/JettyServer.java index 1e743c9883..0f577b76b5 100644 --- a/nifi-framework-bundle/nifi-framework/nifi-web/nifi-jetty/src/main/java/org/apache/nifi/web/server/JettyServer.java +++ b/nifi-framework-bundle/nifi-framework/nifi-web/nifi-jetty/src/main/java/org/apache/nifi/web/server/JettyServer.java @@ -969,8 +969,8 @@ public class JettyServer implements NiFiServer, ExtensionUiLoader { logger.info("Started Server on {}", applicationUrl); } } - } catch (Exception ex) { - startUpFailure(ex); + } catch (Throwable t) { + startUpFailure(t); } }