on 05-28-2015 11:10 PM
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.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
Hi Sonali,
Please check the entry in the service file of both of the systems.
Thanks,
Hamendra
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This message was moderated.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.