Remote Agent awapi timed out due to java.lang.NullPointerException

book

Article ID: 242013

calendar_today

Updated On:

Products

CA Automic Applications Manager (AM)

Issue/Introduction

After installing or upgrading an Applications Manager environment to version 9.4.0 or 9.4.1, the Remote Agent fails to start due to awapi timing out. 

A review of the logs show the follow error:

AgentService: .AgentSocketManager: sendRequest 123.456.78.9:60010  SeqNo 1 Agent rmiserver Master null service master Method getSharedProperties 
Timer-1: .AgentSocketManager: sendRequest 123.456.78.9:60010  SeqNo 2 Agent null Master null service master Method getMasterTime
ASM:read1-sawd.unm.edu: .SocketManager$1: got Response 1 null null null
ASM:read1-sawd.unm.edu: .SocketManager$1: got Response 2 null 1652821526807 null
ASM0: .AgentSocketManager$_A: doRun 0 1 null null null
ASM0: .AgentSocketManager$_A: doRun done 0 1 null null null
ASM2: .AgentSocketManager$_A: doRun 0 2 null 1652821526807 null
ASM2: .AgentSocketManager$_A: doRun done 0 2 null 1652821526807 null
AgentService$5: timeDelta 0
AgentService: AwE-9999
AgentService: .AxOptions: NoErrorMsgProperties=false
ErrorMsg: AwE-9999 Internal error (5/17/22 3:05 PM) 
Details: null
java.lang.NullPointerException
    at com.appworx.agent.AwEnvOptions.A(AwEnvOptions.java:476)
    at com.appworx.agent.AwEnvOptions.A(AwEnvOptions.java:456)
    at com.appworx.agent.AgentService.<init>(AgentService.java:365)
    at com.appworx.agent.AgentService.main(AgentService.java:1014)

 

Cause

This issue is due to the Agent expecting to find a number of "Shared" parameters in the Master's awenv.ini, but is not present.

This is related to:

https://knowledge.broadcom.com/external/article?articleId=242016

Environment

Release : 9.4, 9.4.1

Component : APPLICATIONS MANAGER

Resolution

Edit the $AW_HOME/site/awenv.ini or %AW_HOME%\site\awenv.ini (Windows) on both the Master and Remote Agent, and add the following lines to the bottom of the file.

[shared]
sshdserver_portrange=50000:50010
cmd_w_updatemaster=_AW_HOME_/exec/dr_agent.bat
cmd_u_updatemaster=_AW_HOME_/exec/dr_agent.sh

Save and restart both master and agent.