Global collections not showing after a spectrum server reboot

book

Article ID: 143551

calendar_today

Updated On:

Products

CA eHealth CA Spectrum

Issue/Introduction

Global collections were not showing in OneClick after the spectrum server was rebooted.  The following Null Pointer Exception was seen in the OneClick tomcat log file in regards to Collection Data:

Jan 16, 2020 19:44:02.332 - Error adding update for client:
 UserName: spectrum, HostName: spectrum1_SS HostAddress: 1.1.2.2
java.lang.NullPointerException
 at com.aprisma.spectrum.app.topo.common.collections.CustomCollection.hashCode(CustomCollection.java:759)
 at java.util.HashMap.hash(HashMap.java:339)
 at java.util.HashMap.remove(HashMap.java:799)
 at java.util.HashSet.remove(HashSet.java:236)
 at java.util.Collections$SynchronizedCollection.remove(Collections.java:2038)
 at com.aprisma.spectrum.app.topo.web.collections.FrontEndCollectionDataModel.passesSecurity(FrontEndCollectionDataModel.java:379)
 at com.aprisma.spectrum.app.topo.web.collections.FrontEndCollectionDataModel.collectionCreated(FrontEndCollectionDataModel.java:485)
 at com.aprisma.spectrum.app.topo.web.collections.FrontEndCollectionDataModel.doInitialWork(FrontEndCollectionDataModel.java:259)
 at com.aprisma.spectrum.app.topo.web.collections.FrontEndCollectionDataModel.getUpdate(FrontEndCollectionDataModel.java:167)
 at com.aprisma.spectrum.app.web.servlet.ClientPollServlet.addClientUpdateImpl(ClientPollServlet.java:1504)
 at com.aprisma.spectrum.app.web.servlet.ClientPollServlet.addClientUpdate(ClientPollServlet.java:1481)
 at com.aprisma.spectrum.app.web.servlet.ClientPollServlet.processPollRequest(ClientPollServlet.java:2706)
 at com.aprisma.spectrum.app.web.servlet.ClientPollServlet.doGetImpl(ClientPollServlet.java:2587)
 at com.aprisma.spectrum.app.web.servlet.ClientPollServlet.doGet(ClientPollServlet.java:2513)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:634)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:741)
 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
 at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)
 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
 at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:199)
 at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)
 at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:607)
 at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:139)
 at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92)
 at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:668)
 at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:74)
 at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343)
 at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:408)
 at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
 at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:834)
 at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1417)
 at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
 at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
 at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
 at java.lang.Thread.run(Thread.java:748)

Environment

Release : 10.3

Component : Spectrum Core / SpectroSERVER

Resolution

The internal cache of Spectrum had a hierarchy build error on startup which is resolved by stopping and restarting the Spectrum processes:

On the SpectroSERVER, stop the SS and ArchMgr - from $SPECROOT/bin:  ./stopSS.pl

Stop Spectrum processd:  from $SPECROOT/lib/SDPM:  ./processd.pl stop

Restart the processd:  from $SPECROOT/lib/SDPM:  ./processd.pl start

Restart the SS:  from $SPECROOT/bin: ./startSS.pl