-
Bug
-
Resolution: Done
-
Medium
-
Montreal Release
-
None
NCMP fails to start if '/subscription-registry' already exists, due to incorrect exception being caught:
try { cpsDataService.saveData(dataspaceName, anchorName, nodeData, OffsetDateTime.now()); } catch (final AlreadyDefinedException exception) { log.info("Creating new data node '{}' failed as data node already exists", dataNodeName); } catch (final Exception exception) { log.debug("Creating data node for subscription model failed: {}", exception.getMessage()); throw new NcmpStartUpException("Creating data node failed", exception.getMessage()); }
But cpsDataService.saveData throws AlreadyDefinedExceptionBatch, not AlreadyDefinedException.
- relates to
-
CPS-1548 Add subscription-registry top level node
- Closed