From 032c2b39a22ab99ac89b768d3ae8d275ac4cd931 Mon Sep 17 00:00:00 2001
From: Matthew Swift <matthew.swift@forgerock.com>
Date: Wed, 22 Jun 2016 17:31:07 +0000
Subject: [PATCH] Minor fix: trap run time exceptions and log them

---
 opendj-server-legacy/src/main/java/org/opends/server/protocols/http/HTTPConnectionHandler.java |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/opendj-server-legacy/src/main/java/org/opends/server/protocols/http/HTTPConnectionHandler.java b/opendj-server-legacy/src/main/java/org/opends/server/protocols/http/HTTPConnectionHandler.java
index 8ecf939..88ebe1a 100644
--- a/opendj-server-legacy/src/main/java/org/opends/server/protocols/http/HTTPConnectionHandler.java
+++ b/opendj-server-legacy/src/main/java/org/opends/server/protocols/http/HTTPConnectionHandler.java
@@ -953,7 +953,8 @@
               @Override
               public void run()
               {
-                next.handle(context, request).thenOnResultOrException(promise, promise);
+                // Trap and forward runtime exceptions.
+                next.handle(context, request).thenOnResult(promise).thenOnRuntimeException(promise);
               }
             }));
       }

--
Gitblit v1.10.0