REST GET NullPointerException

Document ID:  TEC1064896
Last Modified Date:  06/07/2017
{{active ? 'Hide' : 'Show'}} Technical Document Details

Products

  • CA Spectrum

Releases

  • CA Spectrum:Release:10.2

Components

  • ONECLICK:SPCOCK
Problem:

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.

Please help us improve!

Will this information enable you to resolve your issue?

Please tell us what we can do better.

{{feedbackText.length ? feedbackText.length : '0'}}/255

{{status}}

Not what you were looking for?

Search Again >

Product Information

Support by Product >

Communities

Join a Community >

Chat with CA

Just give us some brief information and we'll connect you to the right CA ExpertCA sales representative.

Our hours of availability are 8AM - 5PM CST.

All Fields Required

connecting

We're matching your request.

Unfortunately, we can't connect you to an agent. If you are not automatically redirected please click here.

  • {{message.agentProfile.name}} will be helping you today.

    View Profile


  • Transfered to {{message.agentProfile.name}}

    {{message.agentProfile.name}} joined the conversation

    {{message.agentProfile.name}} left the conversation

  • Your chat with {{$storage.chatSession.messages[$index - 1].agentProfile.name}} has ended.
    Thank you for your interest in CA.


    Rate Your Chat Experience.

    {{chat.statusMsg}}

agent is typing