AppManage deployment fails with NullPointerException if there is monitoring in the application configuration file
book
Article ID: KB0073071
calendar_today
Updated On:
Products
Versions
TIBCO Runtime Agent (TRA)
5.x.x
Description
"ApppManage -deploy" sometimes fails with "NullPointerException" if there is monitoring configured in the application configuration file (sample file attached for reference). <------- in ApplicationManagement.log ---------- 2019 Nov 22 06:32:06:553 GMT -0800 Error [com.tibco.administrator.command.tool.ApplicationManagement] AESDKJ-0000 [main] java.lang.NullPointerException at com.tibco.administrator.command.data.monitor.AlertAction.int(AlertAction.java:102) at com.tibco.administrator.command.data.monitor.AlertAction.config(AlertAction.java:111) at com.tibco.administrator.command.data.monitor.Actions.config(Actions.java:90) at com.tibco.administrator.command.data.monitor.AbstractEvent.config(AbstractEvent.java:92) at com.tibco.administrator.command.data.monitor.FailureEvent.config(FailureEvent.java:67) at com.tibco.administrator.command.data.monitor.Events.config(Events.java:114) at com.tibco.administrator.command.data.monitor.Monitoring.config(Monitoring.java:106) at com.tibco.administrator.command.data.service.BaseService.config(BaseService.java:265) at com.tibco.administrator.command.data.service.FTBaseService.config(FTBaseService.java:85) at com.tibco.administrator.command.data.service.BW.config(BW.java:129) at com.tibco.administrator.command.data.service.Services.config(Services.java:214) at com.tibco.administrator.command.data.application.Application.config(Application.java:787) at com.tibco.administrator.command.tool.ApplicationManagement.a(ApplicationManagement.java:529) at com.tibco.administrator.command.tool.ApplicationManagement.if(ApplicationManagement.java:544) at com.tibco.administrator.command.tool.ApplicationManagement.action(ApplicationManagement.java:455) at com.tibco.administrator.command.tool.ApplicationManagement.task(ApplicationManagement.java:226) at com.tibco.administrator.command.tool.ApplicationManagement.main(ApplicationManagement.java:157) -------> And the deployment succeeds if the monitoring is removed from the application configuration file.
Issue/Introduction
AppManage deployment fails with NullPointerException if there is monitoring in the application configuration file
Environment
OS: All
Resolution
This is because the Alert Level is missing in the monitoring part in the application's configuration file. The valid value can be Low, Mediumor High. Modifying the application configuration file (.xml) by setting <level> under <alertAction> to something like below would resolve the NullPointerException. ========== ... <monitor> <events> <failureEvent> <restart>true</restart> <description>First Component Failure-BW-Restart: cronos-prd/agile/EnhancedPxes/DataLoader-Item-Xml-Gen-1</description> <actions> <alertAction> <performPolicy>Once</performPolicy> <enabled>false</enabled> <level>Low</level> </alertAction> ... ==========