From 38d5908804358be5e1cf4ba384ba5b7849178bdf Mon Sep 17 00:00:00 2001 From: mlbiam Date: Sun, 19 Apr 2020 17:04:54 -0400 Subject: [PATCH] don't fail on queue failed lookup --- .../openunison/OpenUnisonServletFilter.java | 2 +- .../provisioning/core/ProvisioningEngineImpl.java | 8 ++++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/unison/open-unison-classes/src/main/java/com/tremolosecurity/openunison/OpenUnisonServletFilter.java b/unison/open-unison-classes/src/main/java/com/tremolosecurity/openunison/OpenUnisonServletFilter.java index 7ad0c677..1b003d7a 100644 --- a/unison/open-unison-classes/src/main/java/com/tremolosecurity/openunison/OpenUnisonServletFilter.java +++ b/unison/open-unison-classes/src/main/java/com/tremolosecurity/openunison/OpenUnisonServletFilter.java @@ -47,7 +47,7 @@ public class OpenUnisonServletFilter extends UnisonServletFilter { - public static final String version = "1.0.18-2020042001"; + public static final String version = "1.0.18-2020042002"; diff --git a/unison/unison-server-core/src/main/java/com/tremolosecurity/provisioning/core/ProvisioningEngineImpl.java b/unison/unison-server-core/src/main/java/com/tremolosecurity/provisioning/core/ProvisioningEngineImpl.java index e1e7484e..783919a5 100644 --- a/unison/unison-server-core/src/main/java/com/tremolosecurity/provisioning/core/ProvisioningEngineImpl.java +++ b/unison/unison-server-core/src/main/java/com/tremolosecurity/provisioning/core/ProvisioningEngineImpl.java @@ -1419,8 +1419,12 @@ private void initLocalBroker() throws ProvisioningException { taskQueueName = this.cfgMgr.getCfg().getProvisioning().getQueueConfig().getTaskQueueName(); } - JMSSessionHolder sessionHolder = JMSConnectionFactory.getConnectionFactory().getSession(taskQueueName); - this.mpPools.add(sessionHolder); + try { + JMSSessionHolder sessionHolder = JMSConnectionFactory.getConnectionFactory().getSession(taskQueueName); + this.mpPools.add(sessionHolder); + } catch (Exception e) { + logger.warn("Could not create internal queue",e); + } } else {