triggeradd generating nullpointerexception error
search cancel

triggeradd generating nullpointerexception error

book

Article ID: 388047

calendar_today

Updated On:

Products

CA Workload Automation DE

Issue/Introduction

Running the following CLI generates a NullPointerException error:

triggeradd event("SCHEDMASTER.VERIFY") at("2025-01-31_18:45:00.000")
Exception in thread "main" java.lang.NullPointerException
    at com.ca.wa.core.library.cli.CliRepl.runCommandLoop(Unknown Source)
    at com.ca.wa.core.library.cli.CliRepl.process(Unknown Source)
    at com.ca.wa.core.library.cli.CliRepl.main(Unknown Source)

Environment

DSeries: 12.x

Cause

The problem is the date/time syntax. 

Resolution

Remove the underscore between the date and time. Example: triggeradd event("SCHEDMASTER.VERIFY") at("2025-01-31 18:45:00.000")