search cancel

Spectrum and PC integration - Data source test failed, Communication with the data source failed

book

Article ID: 202988

calendar_today

Updated On:

Products

CA Infrastructure Management CA Performance Management - Usage and Administration CA Spectrum

Issue/Introduction

I did an upgrade from the DX NetOps platform (Spectrum, NFA and CA PM) to the r20.2

The integration between NFA and PC it's working fine, but the Spectrum - PC it's showing problems.

The Oneclick it's using http and https ports (8080 and 8443)

When I tried to Add the Spectrum (because was deleted) as Data source, the Test button shows the Message: "Data source test failed, Communication with the data source failed"

I reviewed the Wrapper-20201109.log and find this messages several times:

2020/11/09 14:36:49 | ERROR | qtp19190116-28950        | 2020-11-09 14:36:49,758 | com.ca.im.portal.api.services.datasource.DataSourcePoll
INFO   | jvm 1    | 2020/11/09 14:36:49 |       | javax.xml.ws.soap.SOAPFaultException: Response was of unexpected text/html ContentType.  Incoming portion of HTML stream:
INFO   | jvm 1    | 2020/11/09 14:36:49 |
INFO   | jvm 1    | 2020/11/09 14:36:49 |
INFO   | jvm 1    | 2020/11/09 14:36:49 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
INFO   | jvm 1    | 2020/11/09 14:36:49 | <html>
INFO   | jvm 1    | 2020/11/09 14:36:49 |   <head>
INFO   | jvm 1    | 2020/11/09 14:36:49 |
INFO   | jvm 1    | 2020/11/09 14:36:49 |
INFO   | jvm 1    | 2020/11/09 14:36:49 |
INFO   | jvm 1    | 2020/11/09 14:36:49 |
INFO   | jvm 1    | 2020/11/09 14:36:49 |
INFO   | jvm 1    | 2020/11/09 14:36:49 |
INFO   | jvm 1    | 2020/11/09 14:36:49 |
INFO   | jvm 1    | 2020/11/09 14:36:49 |
INFO   | jvm 1    | 2020/11/09 14:36:49 |
INFO   | jvm 1    | 2020/11/09 14:36:49 | <base href="http://oneclickserver:8080/axis2/">
INFO   | jvm 1    | 2020/11/09 14:36:49 |     <title>Axis2 :: Internal server error</title>
INFO   | jvm 1    | 2020/11/09 14:36:49 |     <link href="axis2-web/css/axis-style.css" rel="stylesheet" type="text/css">
INFO   | jvm 1    | 2020/11/09 14:36:49 |     <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
INFO   | jvm 1    | 2020/11/09 14:36:49 |   </head>
INFO   | jvm 1    | 2020/11/09 14:36:49 |
INFO   | jvm 1    | 2020/11/09 14:36:49 |   <body>
INFO   | jvm 1    | 2020/11/09 14:36:49 |     <table summary="header table" style="width: 100%">
INFO   | jvm 1    | 2020/11/09 14:36:49 |       <tr>
INFO   | jvm 1    | 2020/11/09 14:36:49 |         <td align="left"><img src="axis2-web/images/asf-logo.gif" alt="Apache Software Foundation Logo"></td>
INFO   | jvm 1    | 2020/11/09 14:36:49 |         <td align="right"><img src="axis2-web/images/axis_l.jpg" alt="AXIS Logo"></td>
INFO   | jvm 1    | 2020/11/09 14:36:49 |       </tr>
INFO   | jvm 1    | 2020/11/09 14:36:49 |     </table>
INFO   | jvm 1    | 2020/11/09 14:36:49 |     <table summary="main content table" style="width: 100%">
INFO   | jvm 1    | 2020/11/09 14:36:49 |       <tr>
INFO   | jvm 1    | 2020/11/09 14:36:49 |         <td>
INFO   | jvm 1    | 2020/11/09 14:36:49 |           <h1>Internal server error</h1>
INFO   | jvm 1    | 2020/11/09 14:36:49 |           <br>
INFO   | jvm 1    | 2020/11/09 14:36:49 |           <br>
INFO   | jvm 1    | 2020/11/09 14:36:49 |           <br>
INFO   | jvm 1    | 2020/11/09 14:36:49 |           <br>
INFO   | jvm 1    | 2020/11/09 14:36:49 |         </td>
INFO   | jvm 1    | 2020/11/09 14:36:49 |       </tr>
INFO   | jvm 1    | 2020/11/09 14:36:49 |       <tr><td style="align: center"><a href="axis2-web/index.jsp">home</a></td></tr>
INFO   | jvm 1    | 2020/11/09 14:36:49 |     </table>
INFO   | jvm 1    | 2020/11/09 14:36:49 |     <hr>
INFO   | jvm 1    | 2020/11/09 14:36:49 |     <table summary="footer table" style="width: 100%">
INFO   | jvm 1    | 2020/11/09 14:36:49 |       <tr><td>
INFO   | jvm 1    | 2020/11/09 14:36:49 |         <table summary="embedded footer table">
INFO   | jvm 1    | 2020/11/09 14:36:49 |           <tr><td><hr></td></tr>
INFO   | jvm 1    | 2020/11/09 14:36:49 |           <tr>
INFO   | jvm 1    | 2020/11/09 14:36:49 |             <td style="align: center">Copyright &#169; 1999-2006, The Apache Software Foundation<br>Licensed under the <a
INFO   | jvm 1    | 2020/11/09 14:36:49 |               href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0</a>.</td>
INFO   | jvm 1    | 2020/11/09 14:36:49 |           </tr>
INFO   | jvm 1    | 2020/11/09 14:36:49 |         </table>
INFO   | jvm 1    | 2020/11/09 14:36:49 |       </td>
INFO   | jvm 1    | 2020/11/09 14:36:49 |         <td>&nbsp;</td>
INFO   | jvm 1    | 2020/11/09 14:36:49 |       </tr>
INFO   | jvm 1    | 2020/11/09 14:36:49 |     </table>
INFO   | jvm 1    | 2020/11/09 14:36:49 |   </body>
INFO   | jvm 1    | 2020/11/09 14:36:49 | </html>

This impact in the business because the customer don't see the alerts from PC in Spectrum

What could be the steps to fix this problem?

 

 

Environment

Release : 20.2

Component : IM Reporting / Admin / Configuration

Cause

Typo in the $SPECROOT/tomcat/webapps/axis2/WEB-INF/conf/axis2.xml file on the OneClick web server machine.  To resolve the issue you need to enable HTTPS in the axis2.xml file on the Spectrum OneClick server.  You need to add this to the axis2.xml file:

<transportReceiver name="https"
                       class="org.apache.axis2.transport.http.AxisServletListener">
        <parameter name="port">8443</parameter>
</transportReceiver>

However, in some copies, the /parameter has two dashes in it and looks like this:  </parameter-->

Resolution

Edit the $SPECROOT/tomcat/webapps/axis2/WEB-INF/conf/axis2.xml file on the OneClick web server machine.

Change from:

<transportReceiver name="https"
                       class="org.apache.axis2.transport.http.AxisServletListener">
        <parameter name="port">8443</parameter-->
</transportReceiver>

To:

<transportReceiver name="https"
                       class="org.apache.axis2.transport.http.AxisServletListener">
        <parameter name="port">8443</parameter>
</transportReceiver>

Then stop/start the Spectrum Tomcat service.

In Windows. you can use Windows Services to stop/start the Spectrum Tomcat service.

In Linux (or Windows), run the following scripts located in the $SPECROOT/tomcat/bin/ directory:

  • stopTomcat.sh
  • startTomcat.sh

Additional Information

https://knowledge.broadcom.com/external/article?articleId=202451

https://knowledge.broadcom.com/external/article?articleId=231952

https://techdocs.broadcom.com/us/en/ca-enterprise-software/it-operations-management/spectrum/10-4-2/administrating/oneclick-administration/oneclick-server-communications-and-network-configuration/configure-oneclick-for-secure-sockets-layer.html