diff options
author | vagrant <vv770d@att.com> | 2017-11-28 13:36:38 +0000 |
---|---|---|
committer | vagrant <vv770d@att.com> | 2017-11-28 13:37:32 +0000 |
commit | c4098a3af4794da9a1516760baa2318fb91ae258 (patch) | |
tree | cf42b53da99678e72fe71b66850c3ed7bad3eea8 /src/main/java/org/onap/dcae/commonFunction/CommonStartup.java | |
parent | 8a7c0d6da77b78995d37f7e5f8f08f2c9886b086 (diff) |
code syncup with ECOMP updates
Issue-ID: DCAEGEN2-212
Change-Id: Id388f26be57d2a12250a6845ed5678d0cebceed6
Signed-off-by: Vijay Venkatesh Kumar<vv770d@att.com>
Diffstat (limited to 'src/main/java/org/onap/dcae/commonFunction/CommonStartup.java')
-rw-r--r-- | src/main/java/org/onap/dcae/commonFunction/CommonStartup.java | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/main/java/org/onap/dcae/commonFunction/CommonStartup.java b/src/main/java/org/onap/dcae/commonFunction/CommonStartup.java index b974ed53..fe3ba325 100644 --- a/src/main/java/org/onap/dcae/commonFunction/CommonStartup.java +++ b/src/main/java/org/onap/dcae/commonFunction/CommonStartup.java @@ -194,11 +194,14 @@ public class CommonStartup extends NsaBaseEndpoint implements Runnable { executor = Executors.newFixedThreadPool(20); executor.execute(ep); - } catch (loadException | missingReqdSetting | IOException | invalidSettingValue | ServletException - | InterruptedException e) { + } catch (loadException | missingReqdSetting | IOException | invalidSettingValue | ServletException | InterruptedException e) { CommonStartup.eplog.error("FATAL_STARTUP_ERROR" + e.getMessage()); throw new RuntimeException(e); - } finally { + } catch (Throwable e) { + System.err.println("Uncaught exception - " + e.getMessage()); + CommonStartup.eplog.error("FATAL_ERROR" + e.getMessage() ); + e.printStackTrace(System.err); + } finally { // This will make the executor accept no new threads // and finish all existing threads in the queue if (executor != null) { |