Connection error in arcotafm.log (java.net.SocketTimeoutException: Read timed out) every time AFM app is restarted
search cancel

Connection error in arcotafm.log (java.net.SocketTimeoutException: Read timed out) every time AFM app is restarted

book

Article ID: 9092

calendar_today

Updated On: 10-03-2023

Products

CA Advanced Authentication CA Strong Authentication CA Risk Authentication

Issue/Introduction

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] DEBUG toksvr.client.SimpleTSClientImpl(403) -> Sending creation request to http://<State-Manager Host>:<Port>/arcotsm/servlet/creation/<Token>
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

CA Strong Authentication: AuthMinder (Arcot WebFort)

Application Server : Tomcat

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