SAP Knowledge Base Article - Preview

3542665 - Runtime Error "CX_REST_CLIENT_EXCEPTION" when using SAP BTP Mobile Services App Creator for SAP Service and Asset Manager App creation

Symptom

Following Runtime Error occurs when using App Creator to create SAP Service and Asset Manager application in SAP BTP Mobile Services. The error occurs specifically when opting for a direct connection to SAP BTP services from the back-end system.

  • Category               ABAP programming error
    Runtime Errors         UNCAUGHT_EXCEPTION
    Except.                CX_REST_CLIENT_EXCEPTION
    ABAP: Program          CL_REST_HTTP_CLIENT===========CP
    Application Component  BC-MID-RST
  • ----
    |Error analysis                                                                                    |
    |    An exception has occurred in class "CX_REST_CLIENT_EXCEPTION". As this                        |
    |     exception was not                                                                            |
    |    caught, a runtime error occurred. The reason for the exception                                |
    |    occurring was:                                                                                |
    |    HTTP client - communication error                                                             |
    |                                                                                                  |
    ----------------------------------------------------------------------------------------------------
In the SMICM trace log (ICM trace), you may encounter the following error:
  • "Direct connect to hostname:port failed: NIECONN_REFUSED(-10)"


Read more...

Environment

  • SAP Service and Asset Manager (SSAM)
  • Report /MERP/CORE_CPMS_APPCREATE_PROG
  • transaction /MERP/CPms_appcreate

Keywords

SAP Service and Asset Manager, Direct Connection, SAP BTP Services, Back-End System, Runtime Error, CX_REST_CLIENT_EXCEPTION, Network Communication, RFC Configuration, SAP Note 3320366, /MERP/CORE_CPMS_APPCREATE_PROG, /MERP/CPms_appcreate , KBA , MOB-APP-SAM , SAP Service and Asset Manager , MOB-APP-MAO , Mobile Application Integration 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.