Service Discovery is restating every 10 minutes

Document ID : KB000116967
Last Modified Date : 10/10/2018
Show Technical Document Details
Issue:
After applying SO05073 to the SOI manager machine the Service Discovery connector is restarting every 10 minutes. You will get an email error if you configured errors to be emailed stating:
Connector is restarting due to critical error: com.ca.ucf.api.MDRUnavailableException: Connector is reporting problems interfacing with the domain manager. isSystemUp() returned false.

In the The service-discovery.log logs you will see the following error: 

ERROR [ServiceDiscoveryThread] ucf.SdUcfConnector - Error while initialize Spring. 
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'ARLoader': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.ca.ssa.servicediscovery.loader.SQLExecutor com.ca.ssa.servicediscovery.loader.ar.ARLoader.sqlExecutor; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'loaderImpl': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.ca.ssa.servicediscovery.utils.PropertiesReader com.ca.ssa.servicediscovery.loader.LoaderImpl.propertiesReader; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'propertiesReaderImpl': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.ca.ssa.servicediscovery.loader.DBSettings com.ca.ssa.servicediscovery.utils.PropertiesReaderImpl.dbSettings; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'ssaDB' defined in class path resource [connectivityContext.xml]: Error setting property values; nested exception is org.springframework.beans.PropertyBatchUpdateException; nested PropertyAccessExceptions (1) are: 
PropertyAccessException 1: org.springframework.beans.MethodInvocationException: Property 'password' threw exception; nested exception is java.lang.RuntimeException: com.ca.ssa.servicediscovery.utils.CryptoException: Cannot decrypt password 
Cause:
After applying SO05073 the \SOI\ServiceDiscovery\connectivityContext.xml file has bad entries in it. This file defines the connection to the database Service Discovery will use to connect. The entries show the following lines were missing the property name values: 

<property name="driverClassName" value="nr" /> 
<property name="url" " /> 
<property name="username" value="" /> 
<property name="password" value="0" /> 
Resolution:
Restore the from the connectivityContext.xml from the \SOI\Patches\Replaced\SO05073\ServiceDiscovery folder. Then restart the Service Discovery connector.