cancel
Showing results for 
Search instead for 
Did you mean: 

Connect from SAP gateway to RFC server failed

Former Member
0 Kudos

Hello Experts,

I  have an issue with connecting a java application deployed on SAP portal with SAP backend.

I get a Jco Exception raised from the Java code which is captured in the default trace file:

com.sap.mw.jco.JCO$Exception: (102) RFC_ERROR_COMMUNICATION: CMALLC : rc=19 > Connect from SAP gateway to RFC server failed

Connect_PM  GWHOST=abc, GWSERV=sapgw00, ASHOST=abc, SYSNR=00

LOCATION    SAP-Gateway on host xyz.domain.com / sapgw00

ERROR       hostname 'abc' unknown

TIME        Thu May 28 14:25:46 201

RELEASE     721

COMPONENT   NI (network interface)

VERSION     40

RC          -2

MODULE      nixxhl.cpp

LINE        193

DETAIL      NiHLGetNodeAddr: hostname cached as unknown

COUNTER     6

#

#1.5 #0050568A639F001C0000002E000023680005172B00C8F37E#1432848347848#System.err#sap.com/irj#System.err#J2EE_GST_PD1#0##12C99386058011E5A145000000480CBA#12c99386058011e5a145000000480cba-0#12c99386058011e5a145000000480cba#SAPEngine_Application_Thread[impl:3]_13##0#0#Error##Plain###at com.sap.mw.jco.rfc.MiddlewareRFC$Client.nativeConnect(Native Method)#
#1.5 #0050568A639F001C0000002F000023680005172B00C8F410#1432848347848#System.err#sap.com/irj#System.err#J2EE_GST_PD1#0##12C99386058011E5A145000000480CBA#12c99386058011e5a145000000480cba-0#12c99386058011e5a145000000480cba#SAPEngine_Application_Thread[impl:3]_13##0#0#Error##Plain###at com.sap.mw.jco.rfc.MiddlewareRFC$Client.connect(MiddlewareRFC.java:1125)#
#1.5 #0050568A639F001C00000030000023680005172B00C8F4A1#1432848347849#System.err#sap.com/irj#System.err#J2EE_GST_PD1#0##12C99386058011E5A145000000480CBA#12c99386058011e5a145000000480cba-0#12c99386058011e5a145000000480cba#SAPEngine_Application_Thread[impl:3]_13##0#0#Error##Plain###at com.sap.mw.jco.JCO$Client.connect(JCO.java:3244)#

etc....messages

I checked the dev_rfc.trc file and here are its contents:

**** ERROR file opened at 20150528 130046 Pacific Daylight Time, SAP-REL 640,0,318 RFC-VER 3 1133649 MT-SL

T:2636 Error in program 'jlaunch': ======> CMALLC : rc=19 > Connect from SAP gateway to RFC server failed

Connect_PM  GWHOST=abc, GWSERV=sapgw00, ASHOST=abc, SYSNR=00

LOCATION    SAP-Gateway on host xyz.domain.com / sapgw00

ERROR       hostname 'abc' unknown

TIME        Thu May 28 13:00:45 201

RELEASE     721

COMPONENT   NI (network interface)

VERSION     40

RC          -2

MODULE      nixxhl.cpp

LINE        193

DETAIL      NiHLGetNodeAddr: hostname cached as unknown

COUNTER     2

T:2636 Error in program 'jlaunch': ======> CMALLC : rc=19 > Connect from SAP gateway to RFC server failed

Connect_PM  GWHOST=abc, GWSERV=sapgw00, ASHOST=abc, SYSNR=00

LOCATION    SAP-Gateway on host xyz.domain.com / sapgw00

ERROR       hostname 'abc' unknown

TIME        Thu May 28 13:00:45 201

RELEASE     721

COMPONENT   NI (network interface)

VERSION     40

RC          -2

MODULE      nixxhl.cpp

LINE        193

DETAIL      NiHLGetNodeAddr: hostname cached as unknown

COUNTER     4

T:2636 Error in program 'jlaunch': ======> CMALLC : rc=19 > Connect from SAP gateway to RFC server failed

Connect_PM  GWHOST=abc, GWSERV=sapgw00, ASHOST=abc, SYSNR=00

LOCATION    SAP-Gateway on host xyz.domain.com / sapgw00

ERROR       hostname 'abc' unknown

TIME        Thu May 28 13:00:45 201

RELEASE     721

COMPONENT   NI (network interface)

VERSION     40

RC          -2

MODULE      nixxhl.cpp

LINE        193

DETAIL      NiHLGetNodeAddr: hostname cached as unknown

COUNTER     6

I do not get why there are 3 entries in dev_rfc.trc file with counter 2,4 & 6 each time an error happens.

Here the hostname 'abc' is wrong and I do not know where it is coming from, I have checked all the parameters in Visual Administrator & configtool . Every where the hostname is correct- which is 'xyz'.

Is there a need to maintain host and service file on the backend ECC system too?

The host and service file are maintained and have correct values on the Portal server.

The problem seems to be common & reported many times in SDN, but there has been no concrete solution mentioned anywhere in any of the existing threads.

Any help is greatly appreciated.

Thanks,

Sonali.

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Thanks everyone for the pointers.

Finally we resolved the issue by correcting the system parameters. We donot know exactly which parameter was causing the issue, but Basis team copied this system as a copy of an existing one. Might be while copying they skipped certain parameters which were now causing the issue. They did a very exhaustive search on all the possible parameters on the Portal server and things are good since then. They also changed the JCo Destinations related to webdynpro apps . Though the error was coming from a an application which had nothing in relation to the webdynpro applications, but still when everything was updated, the system started behaving well.

Thanks,

Sonali.

Former Member
0 Kudos

Hi Hamendra,

Thanks for your response. Basis team confirmed that the file entries are good in both the systems.

We also restarted the systems and after that error messages changed and it is more confusing now.

**** ERROR file opened at 20150529 135439 Pacific Daylight Time, SAP-REL 640,0,318 RFC-VER 3 1133649 MT-SL

T:8848 Error in program 'jlaunch': ======> SAP_CMINIT3 : rc=20 > Connect to SAP gateway failed

Connect_PM  GWHOST=abc, GWSERV=sapgw00, ASHOST=abc, SYSNR=00

LOCATION    CPIC (TCP/IP) on local host

ERROR       hostname 'abc' unknown

TIME        Fri May 29 13:54:39 201

RELEASE     640

COMPONENT   NI (network interface)

VERSION     37

RC          -2

MODULE      ninti.c

LINE        336

DETAIL      NiPGetHostByName2: hostname 'abc' not found

SYSTEM CALL gethostbyname_r

COUNTER     1

T:8848 Error in program 'jlaunch': ======> SAP_CMINIT3 : rc=20 > Connect to SAP gateway failed

Connect_PM  GWHOST=abc, GWSERV=sapgw00, ASHOST=abc, SYSNR=00

LOCATION    CPIC (TCP/IP) on local host

ERROR       hostname '?' unknown

TIME        Fri May 29 13:54:39 201

RELEASE     640

COMPONENT   NI (network interface)

VERSION     37

RC          -2

COUNTER     2

T:8848 Error in program 'jlaunch': ======> SAP_CMINIT3 : rc=20 > Connect to SAP gateway failed

Connect_PM  GWHOST=abc, GWSERV=sapgw00, ASHOST=abc, SYSNR=00

LOCATION    CPIC (TCP/IP) on local host

ERROR       hostname '?' unknown

TIME        Fri May 29 13:54:39 201

RELEASE     640

COMPONENT   NI (network interface)

VERSION     37

RC          -2

COUNTER     3

TIME        Fri May 29 13:54:39 201

RELEASE     640

COMPONENT   NI (network interface)

VERSION     37

RC          -2

COUNTER     3

Why the message "hostname '?' unknown" is showing up with a '?' in the text.

Any help is much appreciated.

Thanks.

former_member193379
Active Contributor
0 Kudos

Hi Sonali,

Don't get confuse with JLaunch as it starts your java program and loads the JVM into its own address space and then represents the required cluster element and in your case when it hits to gateway then error occurs.

It means, this is your original problem.

Thanks,

Hamendra

Former Member
0 Kudos

Hello Hamendra,

Regarding your reply, when you say "this is your original problem"  I can't determine what statement "this" refers to.  Can you clarify?

Are you saying the gateway is somehow the problem?   (rather than JVM or JLaunch... )

Thank you in advance!

Bob

MarkusTolksdorf
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Robert,

the message clearly means that the configuration is containing jco.client.ashost with the value abc. As it's a JCo2 based application, it is difficult to tell, where the properties have been configured that need to be adjusted. It's probably in some Portal configuration UI or if it's a WebDynpro application in the content administrator.

In any case, hosts or services file on the ERP machine are irrelevant in this case.

Best regards,

Markus

former_member193379
Active Contributor
0 Kudos

Hi Sonali,

Please check the entry in the service file of both of the systems.

Thanks,

Hamendra

Former Member
0 Kudos

This message was moderated.