cancel
Showing results for 
Search instead for 
Did you mean: 

JCo Error : RFC_ERROR_COMMUNICATION

Former Member
0 Kudos

Hi,

I am trying to call a BAPI from a Java application using Java Connector. But, I am getting the following error. Anyone can help me to rectify this ?

"com.sap.mw.jco.JCO$Exception: (102) RFC_ERROR_COMMUNICATION: Connect from SAP gateway to RFC server failed"

Thanks in advance,

Sameej T.K.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hello Sameej

Can u pls tell me won which OS ur running ur bapi?

Regards

Sriram

Former Member
0 Kudos

Hi,

The server to which I am not able to connect is running on SAP R/3 Enterprise edition and the one I am able to connect is running on SAP R/3 4.6C. I downloaded the latest version of JCo from SAP Service Marketplace. The server systems are running on UNIX OS. I am using Win NT workstation. The DLL librfc32.dll that came with JCo did n't work with my system so I have to download the latest version from SAP Service Marketplace. After using this, I was able to connect to one of the systems but not both.

Regards,

Sameej T.K.

SidBhattacharya
Product and Topic Expert
Product and Topic Expert
0 Kudos

Check the login profile (appserver,uname,pass etc). It looks like the JCO middleware is unable to connect to R/3.

I have seen that (sometimes) the 'sapgw' for gatway doesnt work and you need to actually give the port (ex '3300').

Hth

Sid

Former Member
0 Kudos

Hi,

I have done some analysis on this. I think it has to do something with the proxy server. Anyone can put some light on this ?

Regards,

Sameej T.K.

Former Member
0 Kudos

Hi Sameej,

U usually come across this error when using the wrong versions of the sapjco.jar, librfc32.dll & sapjcorfc.dll.

Try installing them from the same source.

Meesum.

Former Member
0 Kudos

Hi,

I tried to connect using VPN. It is working fine. But, we have one server in the network for which VPN connectivity is not required. I am getting the above error when I try to connect to this server.

Regards,

Sameej T.K.

Former Member
0 Kudos

Hi Sameej,

If this server is on an entirely different system chk once again the versions of the sapjco.jar, librfc32.dll & sapjcorfc.dll and if the environment variables etc are set for sapjco.jar etc.

Meesum.