REST GET NullPointerException

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

when issuing a REST GET model request with one or more attr parameters, a NullPointerException is returned. On a Spectrum 10.1.1 and 9.4.2.1 machine, the REST GET request is successful. 

 

Tested with the following expression: 

 

http://spe4-vm:8080/spectrum/restful/model/0x1001611?attr=0x011564&attr=0x12d7f 

 

Note: when no attr parameters are given, the request is successful: 

 

http://spe4-vm:8080/spectrum/restful/model/0x1001611 

 

The test has been performed with a restclient, Firefox, Chrome and Internet Explorer.

Environment:
Spectrum 10.2
Cause:

 The problem is that, newly added functionality in WebClient to display the Names for the Attribute IDs disturbed the REST calls code.

Resolution:

This issue is addressed in the following two patches:

The Spectrum_10.02.00.PTF_10.2.018 only addresses this issue.

The Spectrum_10.02.00.PTF_10.2.041 addresses this issue along with several other issues with the Web Client. Reference Knowledge Document TEC1866435 - Alarm Filter is not working properly in the Spectrum Web Client for more information.

Please contact CA Spectrum Support if you are experiencing this issue. 

Additional Information:

To work around the issue without installing a patch, users will need to launch the WebClient (OC Admin page -> WebClient) for the first time, before making REST calls.

If tomcat is restarted, user will need to log out of the Web Client and log back in.