Restapi error "http 500" during model subscription

book

Article ID: 7150

calendar_today

Updated On:

Products

CA Spectrum

Issue/Introduction

Web Services (Restful) API error "http 500" during model subscription calls

Cause

During a Web Services API (Restful) call the customer is getting “HTTP 500 error - java.util.ConcurrentModificationException” on model subscriptions.

Once Spectrum debugging is enabled [OneClick web page -> Administration -> Debugging -> Web Server Debug Page (Runtime) -> "RESTful Web Services"] , the following is seen in the Spectrum tomcat log:

java.util.ConcurrentModificationException

at java.util.ArrayList$Itr.checkForComodification(ArrayList.java:901)

at java.util.ArrayList$Itr.next(ArrayList.java:851)

at com.ca.spectrum.restful.subscription.ModelSubscriber.watchModelAttrs(ModelSubscriber.java:222)

at com.ca.spectrum.restful.subscription.ModelSubscriber.(ModelSubscriber.java:190)

at com.ca.spectrum.restful.subscription.SubscriptionManager.subscribe(SubscriptionManager.java:394)

at com.ca.spectrum.restful.servlet.SubscriptionServlet.subscribe(SubscriptionServlet.java:127)

at com.ca.spectrum.restful.servlet.SubscriptionServlet.POST_subscriptionByXML(SubscriptionServlet.java:75)

 

Environment

Release:
Component: SPCAPP

Resolution

The Spectrum SE team has provided Spectrum 10.2.1_PTF_10.2.130 and this has fixed the above issue at customer site.

 

If you are facing the same issue, please open a case with CA Support, requesting the patch for Spectrum 10.2.1.