SAP Knowledge Base Article - Preview

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


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: Invalid Response Code: (401) Unauthorized. The requested URL was:"http://solxyz.domain:1128/SAPHostControl"
 at sun.reflect.GeneratedMethodAccessor19200.invoke(Unknown Source)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(
 at java.lang.reflect.Method.invoke(
 at $Proxy15.getCIMObject(Unknown Source)
 ... 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.



  • SAP Solution Manager 7.1
  • SAP Solution Manager Diagnostics


SAP Solution Manager 7.1


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.