Connection error in arcotafm.log every time AFM app is restarted

Document ID : KB000009092
Last Modified Date : 14/02/2018
Show Technical Document Details
Issue:

Whenever the ArcotAFM application is started in Tomcat Application server, in arcotafm.log there is an error observed

2017-04-25 10:15:22,514 [localhost-startStop-1] INFO integrations.frontend.InitializeTokenSvrClientServlet(250) -> TokenServerTestConnAtStartup/ArcotSMTestConnAtStartup=true
2017-04-25 10:15:22,529 [localhost-startStop-1] INFO toksvr.client.SimpleTSClientImpl(91) -> SimpleTSClientImpl starting up...
2017-04-25 10:15:22,529 [localhost-startStop-1] DEBUG toksvr.client.SimpleTSClientImpl(179) -> URL: null
2017-04-25 10:15:22,529 [localhost-startStop-1] DEBUG integrations.frontend.InitializeTokenSvrClientServlet(263) -> TokenServerClientFactory getInstance() returned OK
2017-04-25 10:15:22,529 [localhost-startStop-1] DEBUG integrations.frontend.InitializeTokenSvrClientServlet(271) -> testing StateManager before completing init...
2017-04-25 10:15:22,529 [localhost-startStop-1] DEBUG integrations.frontend.InitializeTokenSvrClientServlet(282) -> calling TokenServerClient.createToken(art, null)
2017-04-25 10:15:22,529 [localhost-startStop-1] DEBUG toksvr.client.SimpleTSClientImpl(403) -> Sending creation request to http://10.194.124.25:80/arcotsm/servlet/creation/4297cff0515a6a605b9a180bf0ab45d7ef08ead6
2017-04-25 10:15:22,607 [localhost-startStop-1] DEBUG toksvr.client.SimpleTSClientImpl(406) -> Token data sending for creation is : {"TsToken":{"Issuer":"arcotafm testing connection"}}
2017-04-25 10:15:22,623 [localhost-startStop-1] DEBUG toksvr.client.SimpleTSClientImpl(317) -> Wrote the data: {TokenData={"TsToken":{"Issuer":"arcotafm testing connection"}}}
2017-04-25 10:15:52,613 [localhost-startStop-1] ERROR toksvr.client.SimpleTSClientImpl(382) -> Unable to read server response!
java.net.SocketTimeoutException: Read timed out
at java.net.SocketInputStream.socketRead0(Native Method)

Environment:
All
Cause:

When Tomcat service is started there is no way to deploy the applications in sequential order, ArcotAFM deployed on same application server tries to test the connection with ArcotSM at the startup and fails and we see the read time out error message. This is controlled through a setting in arcotafm.properties file which is ArcotSMTestConnAtStartup. OOTB this setting is true.

 

Resolution:

Resolution steps are described below --

1. Open arcotafm.properties file at ARCOT_HOME/conf/afm

2. Look for parameter ArcotSMTestConnAtStartup

3. Uncomment this and then set the value as false.

4. Restart the Tomcat application server.

Additional Information:

N/A