Merge pull request #1625 from eugene7646/kws

Added baloon notification if KWS core creation fails
This commit is contained in:
Richard Cordovano 2015-10-16 10:59:25 -04:00
commit d79df41db9
2 changed files with 7 additions and 1 deletions

View File

@ -223,6 +223,7 @@ Server.connect.exception.msg=Failed to connect to Solr server\:
Server.openCore.exception.msg=Core open requested, but server not yet running Server.openCore.exception.msg=Core open requested, but server not yet running
Server.openCore.exception.cantOpen.msg=Could not open Core Server.openCore.exception.cantOpen.msg=Could not open Core
Server.openCore.exception.cantOpen.msg2=Could not open Core Server.openCore.exception.cantOpen.msg2=Could not open Core
Server.openCore.exception.cantOpenForCase.msg=Could not create keyword search index for case {0}
Server.request.exception.exception.msg=Could not issue Solr request Server.request.exception.exception.msg=Could not issue Solr request
Server.commit.exception.msg=Could not commit index Server.commit.exception.msg=Could not commit index
Server.addDoc.exception.msg=Could not add document to index via update handler\: {0} Server.addDoc.exception.msg=Could not add document to index via update handler\: {0}

View File

@ -626,7 +626,12 @@ public class Server {
Case currentCase = Case.getCurrentCase(); Case currentCase = Case.getCurrentCase();
currentCore = openCore(currentCase); try {
currentCore = openCore(currentCase);
} catch (KeywordSearchModuleException ex) {
MessageNotifyUtil.Notify.error(NbBundle.getMessage(Server.class, "Server.openCore.exception.cantOpenForCase.msg", currentCase.getName()), ex.getCause().getMessage());
throw ex;
}
serverAction.putValue(CORE_EVT, CORE_EVT_STATES.STARTED); serverAction.putValue(CORE_EVT, CORE_EVT_STATES.STARTED);
} }