cancel
Showing results for 
Search instead for 
Did you mean: 

JCO Exception

Former Member
0 Kudos

Dear all,

I am connecting my java stand alone program with sap . I Am using netbean IDE , i have two programs in two different projects , there one program is working fine but other is throwing this error.every thing is configured same in both the projects , Kindly show some light on this.

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

Connect_PM GWHOST=122.166.7.226, GWSERV=sapgw04, SYSNR=04

LOCATION CPIC (TCP/IP) on local host

ERROR partner '122.166.7.226:3304' not reached

TIME Fri Sep 18 22:15:57 2009

RELEASE 710

COMPONENT NI (network interface)

VERSION 39

RC -10

MODULE nixxi.cpp

LINE 2985

DETAIL NiPConnect2

SYSTEM CALL connect

ERRNO 10022

ERRNO TEXT WSAEINVAL: Invalid argument

COUNTER 1

Thanks in advance

Sri

Accepted Solutions (0)

Answers (1)

Answers (1)

Diggeshhjoshi
Contributor
0 Kudos

Sri,

On your system, you need to update services file under /etc/services or windows/system32/drivers/etc with ip and message server information.

Thanks,

Digesh