SAP Knowledge Base Article - Preview

1839894 - 'Invalid Response Code: (401) Unauthorized': Diagnostics Agent is not able to contact the SAP Host Agent Webservices

Symptom

After perform the Managed System Configuration for a target system, the Diagnostics Agent logs shows error 'Invalid Response Code: (401) Unauthorized' to contact the SAP Host Agent Webserivces. In the the Agent Log Viewer in Agent Administration displays the following message:

SAPHostAgent webservice returned: Permission denied

Moreover, the Diagnostics Agent log file SMDAgentApplication.X.log the following error:

Caused by: java.rmi.RemoteException: Service call exception; nested exception is: 
 com.sap.engine.services.webservices.jaxrpc.exceptions.InvalidResponseCodeException: Invalid Response Code: (401) Unauthorized. The requested URL was:"http://solxyz.domain:1128/SAPHostControl"
 at com.sap.smd.agent.wsclients.saphostcontrol.SAPHostControlStub.getCIMObject(SAPHostControlStub.java:834)
 at com.sap.smd.agent.wsclients.saphostcontrol.SAPHostControlStub.getCIMObject(SAPHostControlStub.java:843)
 at sun.reflect.GeneratedMethodAccessor19200.invoke(Unknown Source)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:597)
 at com.sap.smd.agent.plugin.connectors.webservice.WebserviceInvocationHandler.invoke(WebserviceInvocationHandler.java:83)
 at $Proxy15.getCIMObject(Unknown Source)
 at com.sap.smd.wily.hostagent.action.wmi.AbstractWmiWsAction.callWs(AbstractWmiWsAction.java:261)
 ... 6 more

The SAP Host Agent Webservices are exposed in port 1128, if the error 'Invalid Response Code: (401) Unauthorized' occurs to contact a service on port 5<XX>13 then refer to KBA 1939330.


Read more...

Environment

  • SAP Solution Manager 7.1
  • SAP Solution Manager Diagnostics

Product

SAP Solution Manager 7.1

Keywords

401 unauthorized missing wily data cpu memory invalid response code SAPHostAgent webservice returned Permission denied , KBA , SV-SMG-DIA-SRV-AGT , Agent Framework , Problem

About this page

This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP for Me (Login required).

Search for additional results

Visit SAP Support Portal's SAP Notes and KBA Search.