cancel
Showing results for 
Search instead for 
Did you mean: 

RfcOpenConnection() fails with RFC_COMMUNICATION_FAILURE

Former Member
0 Kudos

Hi,

We are facing the below problem in our client's environment:

The RFC server program fails with the failure of RFC API RfcOpenConnection() with error message

RFC_COMMUNICATION_FAILURE and errorInfo.message as

LOCATION SAP-Gateway on host wbaurs12 / sapgw01

ERROR partner '204.140.2.210:sapgw01' not reached

TIME Tue Jun 30 12:11:44 2009

RELEASE 700

COMPONENT NI (network interface)

VERSION 38

RC -10

MODULE nixxi.cpp

LINE 2823

DETAIL NiPConnect2

SYSTEM CALL connect

ERRNO 78

ERRNO TEXT Connection timed out

COUNTER 2

Can someone point us what could be the problem here?

Thanks in advance

Poornima.K

Accepted Solutions (1)

Accepted Solutions (1)

anindya_bose
Active Contributor
0 Kudos

Hi Poornima

Check you services file in C:\WINDOWS\system32\drivers\etc for windows server.

You should have one entry like "sapgw01 3301/tcp"

For Unix also you need to have same kind of entry in the services file. If you do not have that add that entry , wait for 5 minutes and then try again.

Thanks and Regards

Anindya

Answers (3)

Answers (3)

tiago_scherer
Participant

Also, is it possible to 'niping' the service sapgw01?

Please try the niping:

niping -c -H 204.140.2.210 -S sapgw01

You can also try the following to see if the services file is correctly converting sapgw01 to 3301

niping -c -H 204.140.2.210 -S 3301

This looks a network issue

--

Tiago

Former Member
0 Kudos

Hi Poornima,

Have you checked the RFC destination (SAPOSS). Was the connection test successful ? If not can you post the error here ?

Regards,

Varadhu...

Former Member
0 Kudos

Hi Tiago,

Thanks for the reply.

I tried the commands you gave me and i am getting the following messages:

1) niping -c -H 204.140.2.210 -S 3301

Thu Jul 09 09:26:07 2009

***LOG Q0I=> NiPConnect2: connect (10060: WSAETIMEDOUT: Connection timed out) [nixxi.cpp 2823]

      • ERROR => NiPConnect2: SiPeekPendConn failed for hdl 0 / sock 1900

(SI_ECONN_REFUSE/10060; I4; ST; 204.140.2.210:3301) [nixxi.cpp 2823]

      • ERROR => NiTClientLoop: NiHandle (rc=-10) [nixxtst.cpp 2839]

*****************************************************************************

*

  • ERROR partner '204.140.2.210:3301' not reached

*

  • TIME Thu Jul 09 09:26:07 2009

  • RELEASE 700

  • COMPONENT NI (network interface)

  • VERSION 38

  • RC -10

  • MODULE nixxi.cpp

  • LINE 2823

  • DETAIL NiPConnect2

  • SYSTEM CALL connect

  • ERRNO 10060

  • ERRNO TEXT WSAETIMEDOUT: Connection timed out

  • COUNTER 1

*

*****************************************************************************

2) niping -c -H 204.140.2.210 -S sapgw01

Thu Jul 09 09:25:39 2009

***LOG Q0I=> NiPConnect2: connect (10060: WSAETIMEDOUT: Connection timed out) [nixxi.cpp 2823]

      • ERROR => NiPConnect2: SiPeekPendConn failed for hdl 0 / sock 1900

(SI_ECONN_REFUSE/10060; I4; ST; 204.140.2.210:3301) [nixxi.cpp 2823]

      • ERROR => NiTClientLoop: NiHandle (rc=-10) [nixxtst.cpp 2839]

*****************************************************************************

*

  • ERROR partner '204.140.2.210:sapgw01' not reached

*

  • TIME Thu Jul 09 09:25:39 2009

  • RELEASE 700

  • COMPONENT NI (network interface)

  • VERSION 38

  • RC -10

  • MODULE nixxi.cpp

  • LINE 2823

  • DETAIL NiPConnect2

  • SYSTEM CALL connect

  • ERRNO 10060

  • ERRNO TEXT WSAETIMEDOUT: Connection timed out

  • COUNTER 1

*

*****************************************************************************

Can you please let me know what is the cause of the above messages?

Thanks in advance,

Poornima.K

anindya_bose
Active Contributor
0 Kudos

Poornima

It seems that the problem is with gateway service. Please check the entry I mentioned in my last post for your system and the system you are communicating through RFC.

Check from SM59 which RFC connection is failing.

Thanks and Regards

Anindya