Symptom
- In scenarios, where an SAP ABAP system is acting as the client of a connection, for example:
The destination system is a PI system and in the SXI Monitor (transaction SXI_MONITOR) of the sender system, the following error message appears:
HTTP Error :Receiving message
"ClIENT_RECEIVE_FAILED Error while receiving by HTTP (error code: 411, error text : Connect to <destination hostname>:<port nr> failed: NIECONN_REFUSED (-10)"<SAP:Category>XIServer </SAP:Category>
<SAP:Code area="INTERNAL">CLIENT_RECEIVE_FAILED </SAP:Code>
<SAP:P1>411 </SAP:P1>
<SAP:P2>Connect to <destination hostname>:<port nr > failed: NIECONN_REFUSED (-10)</SAP:P2>
<SAP:P3 />>(See attachment HTMLError for details)</SAP:P3>
<SAP:P4 />
<SAP:AdditionalText />
<SAP:Stack>Error while receiving by HTTP (error code: 114 error text: Connect to <destination hostname>:<port nr > failed: NIECONN_REFUSED (-10)">
<SAP:Retry>N </SAP:Retry>
</SAP:Error>
OR
- An SAP Web dispatcher is trying to connect to a back-end system and the following error message appears in the dev_icm or dev_webdisp trace files:
[Thr <nr>] NiIConnect: state of hdl <nr> NI_CONN_WAIT
[Thr <nr>] *** ERROR => NiBufIConnect: non-buffered connect pending after 5000ms (hdl <IP address>:<port nr>) [nibuf.cpp 4524]
[Thr <nr>] NiICloseHandle: called for hdl <nr> while waiting for connection
[Thr <nr>] NiICloseHandle: shutdown and close hdl <nr>/sock <nr>
[Thr <nr>] IcmIConnConnect: Connect to host: <destination hostname>:<port nr>, NIECONN_REFUSED(-10)
[Thr <nr>] *** WARNING => Connect to <destination hostname>:<port nr> failed: NIECONN_REFUSED(-10) {00080aa9} [icxxconn.c 2356]
OR also
- "Connection refused by server (ICM_HTTP_CONNECTION_REFUSED)" message in transaction SM21
Read more...
Environment
- Operating System independent
- Database independent
- SAP NetWeaver
- SAP Web Application Server for SAP S/4HANA
- ABAP Platform
Product
Keywords
NIECONN_REFUSED, NI_CONN_WAIT, waiting for connection, non-buffered, 10035: WSAEWOULDBLOCK: Resource temporarily unavailable, SXI Monitor, SXI_MONITOR, SAP Web dispatcher, ICM, client host, remote host, TCP handshake, icm/conn_timeout, external partner, port nr, Wireshark, TCP dump, netstat, niping, telnet, connection failed, connect to server o.k, ICM_HTTP_CONNECTION_REFUSED, Direct connect to ... failed , KBA , BC-CST-IC , Internet Communication Manager , BC-CST-WDP , Web Dispatcher , 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.
SAP Knowledge Base Article - Preview