Problem solve Get help with specific problems with your technologies, process and projects.

Trouble connecting to SAP with JCo 2.0

Expert Thomas Schuessler offers troubleshooting advice for JCo error messages.

I have a problem with forming a connection with the SAP system. I am using JCo 2.0 to connect to the SAP system and I am getting the following exception. We are using the right login and password when we connect with the SAP client.

com.sap.mw.jco.JCO$Exception: (102) RFC_ERROR_COMMUNICATION: Connect from SAP gateway to RFC server failed Connect_PM GWHOST=, GWSERV=sapgw00, ASHOST=, SYSNR=00

LOCATION SAP-Gateway on host FA10 ERROR connection to host, service sapgw00 timed out

TIME Wed Apr 28 12:03:45 2004 RELEASE 46D COMPONENT NI (network interface) VERSION 34 RC -12 MODULE nixxi.c LINE 751 DETAIL NiPConnect COUNTER 3

I am new to JCo, is there a possible reason for this?

These kinds of problems are difficult to solve without all the information. It would help if I could see the actual source code with which you try to connect. Maybe the following does help nevertheless:

1. Make sure that you can connect to the SAP system using SAPGUI.
2. Take a look at my sample programs supplied with the JCo tutorial. Are you using the same kind of approach in specifying the connection parameters?

Dig Deeper on SAP UX

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.