Spectrum gateway not connecting due to 500 error

book

Article ID: 128443

calendar_today

Updated On:

Products

NIMSOFT PROBES DX Infrastructure Management

Issue/Introduction

Installed spectrumgtw probe 8.6.7, and after installing the pre-requisites such as NAS, EMS, and maint mode probes we started the Spectrum gateway probe and get an error on the configuration when trying to validate the connection to Spectrum.
Feb 28 2019 08:46:19,473 [attach_socket] WARN Connection - Response : InboundJaxrsResponse{context=ClientResponse{method=POST, uri=http://spectrum:8080/spectrum/restful/heartbeat, status=500, reason=Internal Server Error}} Feb 28 2019 08:46:19,473 [attach_socket] ERROR Connection - Exception while processing the POST request Feb 28 2019 08:46:19,473 [attach_socket] ERROR SpectrumGtwUICallbackHandler - execute Connection Test response is:null

Environment

UIM spectrumgtw probe 8.67
Spectrum 10.31
UIM 8.51 sp1

Resolution

https://comm.support.ca.com/kb/restful-request-failed/kb000117363

Answer:
After upgrading to Spectrum 10.3 when using REST query such as:
http://xx.xx.xx.xx:8888/spectrum/restful/alarms
you may see the following error:
<ns1:XMLFault><ns1:faultstring>java.lang.NoClassDefFoundError: Could not initialize class com.sun.xml.bind.v2.model.impl.Utils</ns1:faultstring></ns1:XMLFault>
In Spectrum 10.3 the CXF version had been upgraded, which introduces some change in rest response format. Due to the changes it is not compatible to previous version.

During upgrade there is a possibility that either a file hasn't been replaced or a file has been added without removing the old version.

See the list of CXF files:

OOT/RestfulExamples/lib

and the following files if they exist only once and in this version:

jaxb-impl-2.2.11.jar
cxf-core-3.2.4.jarOn your OneClick Server please check the following folders:
$SPECROOT/tomcat/lib
$SPECR
cxf-rt-frontend-jaxrs-3.2.4.jar
cxf-rt-rs-extension-providers-3.2.4.jar
cxf-rt-transports-http-3.2.4.jar
cxf-tools-common-3.2.4.jar
cxf-rt-rs-client-3.2.4.jar
woodstox-core-5.0.3.jar
stax2-api-3.1.4.jar

In case of duplicates, please (re)move the old files.

That listing above is the current up to date list of files.

If you see duplicates or older files, delete then and that should resolve the issue.