Unable to create events in with CA Spectrum REST API with custom Event ID 0xffffnnnn

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


Unable to create events in CA Spectrum with the REST API with custom Event ID 0xffffnnnn


If using any of the out of the box event id's, the event is created successfully.



The REST API converts the event codes from Hexadecimal to integer in Java. In Java, an integer can have a maximum value of 2,147,483,647 (signed int 32 bit). If a user wants to convert an event code in the custom event ID range like 0xffff0002, the conversion results into a decimal value of 4,294,901,762 which is greater than the MAX integer value in JAVA.

That means the REST API will not work for events whose event codes are greater than 0x7fffffff.



Custom event codes must be less than 0x7fffffff for use with the REST API.


NOTE: Please reference the following enhancement request posted to the Ideas portal: https://communities.ca.com/ideas/235718654