cancel
Showing results for 
Search instead for 
Did you mean: 

Creating JCO Connectivity from J2EE to SAP

Former Member
0 Kudos

Can somebody help me in explaining how a JCO connection is established. Also, if the connection is failed what could be the reason.

Below is the error message I got from the Trace file.

RFC_ERROR_COMMUNICATION: Connect to SAP gateway failed

Connect_PM TYPE=A ASHOST=lhdevsap SYSNR=00 GWHOST=lhdevsap GWSERV=sapgw00 PCS=1

LOCATION CPIC (TCP/IP) on local host

ERROR partner not reached (host 40.1.161.60, service sapgw00)

TIME Tue Mar 9 03:31:46 2010

RELEASE 640

COMPONENT NI (network interface)

VERSION 37

RC -10

MODULE nixxi_r_mt.cpp

LINE 8786

DETAIL NiPConnect2

SYSTEM CALL SiPeekPendConn

ERRNO 146

ERRNO TEXT Connection refused

Accepted Solutions (0)

Answers (2)

Answers (2)

p330068
Active Contributor
0 Kudos

Hi Annie,

As per ERROR partner not reached (host 40.1.161.60, service sapgw00)

>You need to test whether you are able to ping your server or not (RUN >> Ping <host name>)

if not, then you must

>Update your server IP address and host name in host file entry at (RUN > drivers > etc > host file)

Please have a look at below Troubleshooting for JCO Connections :

[Troubleshooting SAP Java Connector (JCo) |http://wiki.sdn.sap.com/wiki/display/EP/TroubleshootingSAPJavaConnector%28JCo%29]

[WDJ - Adaptive RFC (SLD and JCO)Troubleshooting Guide|http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/d0019b1a-775f-2910-beb8-d81f27d0d8d0?quicklink=index&overridelayout=true]

[System Landscape Directory Process and JCo Configuration|http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/c0c1d495-048e-2b10-babd-924a136f56b5?quicklink=index&overridelayout=true]

Hope it helps

Regards

Arun

Former Member
0 Kudos

See ..here is a link ..http://help.sap.com/saphelp_nw04/helpdata/EN/3a/3b1b40fcdd8f5ce10000000a155106/content.htm

but mostly these settings are once in alife time ...sometimes gets impacted when applying patches...would recommed to have a Java and Basis guy involved also...