on 2010 Apr 29 8:21 PM
Greetings - help is greatly appreciated.
I have an RFC server that uses JCo 3.0.5 to connect to the SAP Application server. When the RFC server is run from a Unix system the gateway service and port needs to be added to the unix systems /etc/services file. We have two (actually 21) sap systems, one has a gateway service id of sapgw00, the other sapgw01. We added both gateway services with port 3300 to the Unix /etc/systems file and are able to connect to the sapgw00 system but not the sapgw01 system. The sapgw01 system is returning the following error. Without sapgw01 in the /etc/services file we get a different error - so it's doing something.
Thanks in advance
Status: Server FLRFCSRV state changed from [STOPPED] to [STARTED]
>>> Exception error occurred on FLRFCSRV connection null
com.sap.conn.jco.JCoException: (129) JCO_ERROR_SERVER_STARTUP: Server startup failed at Thu Apr 29 09:16:10 CDT 2010.
This is caused by either a) erroneous server settings, b) the backend system has been shutdown, c) network problems.
Could not start server: Connect to SAP gateway failed
Connect parameters: TPNAME=FLRFCSRV GWHOST=sapd2srv GWSERV=sapgw01
ERROR partner '10.165.67.157:sapgw01' not reached
TIME Thu Apr 29 09:16:10 2010
RELEASE 720
COMPONENT NI (network interface)
VERSION 40
RC -10
MODULE nixxi.cpp
LINE 3253
DETAIL NiPConnect2: 10.165.67.157:3300
SYSTEM CALL connect
ERRNO 239
ERRNO TEXT Connection refused
COUNTER 1
at com.sap.conn.jco.rt.DefaultServer.openConnection(DefaultServer.java:1168)
at com.sap.conn.jco.rt.DefaultServer.openConnections(DefaultServer.java:1057)
at com.sap.conn.jco.rt.DefaultServer.adjustConnectionCount(DefaultServer.java:1004)
at com.sap.conn.jco.rt.DefaultServerManager$DispatcherWorker.run(DefaultServerManager.java:299)
at java.lang.Thread.run(Thread.java:619)
Caused by: com.sap.conn.jco.JCoException: (129) JCO_ERROR_SERVER_STARTUP: Could not start server: Connect to SAP gateway failed
Connect parameters: TPNAME=FLRFCSRV GWHOST=sapd2srv GWSERV=sapgw01
ERROR partner '10.165.67.157:sapgw01' not reached
TIME Thu Apr 29 09:16:10 2010
RELEASE 720
COMPONENT NI (network interface)
VERSION 40
RC -10
MODULE nixxi.cpp
LINE 3253
DETAIL NiPConnect2: 10.165.67.157:3300
SYSTEM CALL connect
ERRNO 239
ERRNO TEXT Connection refused
COUNTER 1
at com.sap.conn.jco.rt.MiddlewareJavaRfc$JavaRfcServer.accept(MiddlewareJavaRfc.java:2135)
at com.sap.conn.jco.rt.ServerConnection.accept(ServerConnection.java:380)
at com.sap.conn.jco.rt.DefaultServer.openConnection(DefaultServer.java:1149)
... 4 more
Caused by: RfcException: [null]
message: Connect to SAP gateway failed
Connect parameters: TPNAME=FLRFCSRV GWHOST=sapd2srv GWSERV=sapgw01
ERROR partner '10.165.67.157:sapgw01' not reached
TIME Thu Apr 29 09:16:10 2010
RELEASE 720
COMPONENT NI (network interface)
VERSION 40
RC -10
MODULE nixxi.cpp
LINE 3253
DETAIL NiPConnect2: 10.165.67.157:3300
SYSTEM CALL connect
ERRNO 239
ERRNO TEXT Connection refused
COUNTER 1
Return code: RFC_FAILURE(1)
error group: 102
key: RFC_ERROR_COMMUNICATION
at com.sap.conn.rfc.engine.RfcIoControl.error_end(RfcIoControl.java:255)
at com.sap.conn.rfc.engine.RfcIoControl.ab_rfcaccept(RfcIoControl.java:43)
at com.sap.conn.rfc.api.RfcApi.RfcAccept(RfcApi.java:41)
at com.sap.conn.jco.rt.MiddlewareJavaRfc$JavaRfcServer.accept(MiddlewareJavaRfc.java:2121)
... 6 more
Status: Server FLRFCSRV state changed from [STARTED] to [DEAD]
>>> Exception error occurred on FLRFCSRV connection null
com.sap.conn.jco.JCoException: (129) JCO_ERROR_SERVER_STARTUP: Server startup failed at Thu Apr 29 09:16:12 CDT 2010.
This is caused by either a) erroneous server settings, b) the backend system has been shutdown, c) network problems. Will try next .
Could not start server: Connect to SAP gateway failed
Connect parameters: TPNAME=FLRFCSRV GWHOST=sapd2srv GWSERV=sapgw01
ERROR partner '10.165.67.157:sapgw01' not reached
TIME Thu Apr 29 09:16:12 2010
RELEASE 720
COMPONENT NI (network interface)
VERSION 40
RC -10
MODULE nixxi.cpp
LINE 3253
DETAIL NiPConnect2: 10.165.67.157:3300
SYSTEM CALL connect
ERRNO 239
ERRNO TEXT Connection refused
COUNTER 2
at com.sap.conn.jco.rt.DefaultServer.openConnection(DefaultServer.java:1168)
at com.sap.conn.jco.rt.DefaultServer.openConnections(DefaultServer.java:1057)
at com.sap.conn.jco.rt.DefaultServer.adjustConnectionCount(DefaultServer.java:1004)
at com.sap.conn.jco.rt.DefaultServerManager$DispatcherWorker.run(DefaultServerManager.java:299)
at java.lang.Thread.run(Thread.java:619)
Caused by: com.sap.conn.jco.JCoException: (129) JCO_ERROR_SERVER_STARTUP: Could not start server: Connect to SAP gateway failed
Connect parameters: TPNAME=FLRFCSRV GWHOST=sapd2srv GWSERV=sapgw01
ERROR partner '10.165.67.157:sapgw01' not reached
TIME Thu Apr 29 09:16:12 2010
RELEASE 720
COMPONENT NI (network interface)
VERSION 40
RC -10
MODULE nixxi.cpp
LINE 3253
DETAIL NiPConnect2: 10.165.67.157:3300
SYSTEM CALL connect
ERRNO 239
ERRNO TEXT Connection refused
COUNTER 2
at com.sap.conn.jco.rt.MiddlewareJavaRfc$JavaRfcServer.accept(MiddlewareJavaRfc.java:2135)
at com.sap.conn.jco.rt.ServerConnection.accept(ServerConnection.java:380)
at com.sap.conn.jco.rt.DefaultServer.openConnection(DefaultServer.java:1149)
... 4 more
Caused by: RfcException: [null]
message: Connect to SAP gateway failed
Connect parameters: TPNAME=FLRFCSRV GWHOST=sapd2srv GWSERV=sapgw01
ERROR partner '10.165.67.157:sapgw01' not reached
TIME Thu Apr 29 09:16:12 2010
RELEASE 720
COMPONENT NI (network interface)
VERSION 40
RC -10
MODULE nixxi.cpp
LINE 3253
DETAIL NiPConnect2: 10.165.67.157:3300
SYSTEM CALL connect
ERRNO 239
ERRNO TEXT Connection refused
COUNTER 2
Return code: RFC_FAILURE(1)
error group: 102
key: RFC_ERROR_COMMUNICATION
at com.sap.conn.rfc.engine.RfcIoControl.error_end(RfcIoControl.java:255)
at com.sap.conn.rfc.engine.RfcIoControl.ab_rfcaccept(RfcIoControl.java:43)
at com.sap.conn.rfc.api.RfcApi.RfcAccept(RfcApi.java:41)
at com.sap.conn.jco.rt.MiddlewareJavaRfc$JavaRfcServer.accept(MiddlewareJavaRfc.java:2121)
... 6 more
A startup error occurred - please view the log file for additional information
>>> Exception error occurred on FLRFCSRV connection null
com.sap.conn.jco.JCoException: (129) JCO_ERROR_SERVER_STARTUP: Server startup failed at Thu Apr 29 09:16:18 CDT 2010.
This is caused by either a) erroneous server settings, b) the backend system has been shutdown, c) network problems. Will try next .
Could not start server: Connect to SAP gateway failed
Connect parameters: TPNAME=FLRFCSRV GWHOST=sapd2srv GWSERV=sapgw01
ERROR partner '10.165.67.157:sapgw01' not reached
TIME Thu Apr 29 09:16:18 2010
RELEASE 720
COMPONENT NI (network interface)
VERSION 40
RC -10
MODULE nixxi.cpp
LINE 3253
DETAIL NiPConnect2: 10.165.67.157:3300
SYSTEM CALL connect
ERRNO 239
ERRNO TEXT Connection refused
COUNTER 3
at com.sap.conn.jco.rt.DefaultServer.openConnection(DefaultServer.java:1168)
at com.sap.conn.jco.rt.DefaultServer.openConnections(DefaultServer.java:1057)
at com.sap.conn.jco.rt.DefaultServer.adjustConnectionCount(DefaultServer.java:1004)
at com.sap.conn.jco.rt.DefaultServerManager$DispatcherWorker.run(DefaultServerManager.java:299)
at java.lang.Thread.run(Thread.java:619)
Caused by: com.sap.conn.jco.JCoException: (129) JCO_ERROR_SERVER_STARTUP: Could not start server: Connect to SAP gateway failed
Connect parameters: TPNAME=FLRFCSRV GWHOST=sapd2srv GWSERV=sapgw01
ERROR partner '10.165.67.157:sapgw01' not reached
TIME Thu Apr 29 09:16:18 2010
RELEASE 720
COMPONENT NI (network interface)
VERSION 40
RC -10
MODULE nixxi.cpp
LINE 3253
DETAIL NiPConnect2: 10.165.67.157:3300
SYSTEM CALL connect
ERRNO 239
ERRNO TEXT Connection refused
COUNTER 3
at com.sap.conn.jco.rt.MiddlewareJavaRfc$JavaRfcServer.accept(MiddlewareJavaRfc.java:2135)
at com.sap.conn.jco.rt.ServerConnection.accept(ServerConnection.java:380)
at com.sap.conn.jco.rt.DefaultServer.openConnection(DefaultServer.java:1149)
... 4 more
Caused by: RfcException: [null]
message: Connect to SAP gateway failed
Connect parameters: TPNAME=FLRFCSRV GWHOST=sapd2srv GWSERV=sapgw01
ERROR partner '10.165.67.157:sapgw01' not reached
TIME Thu Apr 29 09:16:18 2010
RELEASE 720
COMPONENT NI (network interface)
VERSION 40
RC -10
MODULE nixxi.cpp
LINE 3253
DETAIL NiPConnect2: 10.165.67.157:3300
SYSTEM CALL connect
ERRNO 239
ERRNO TEXT Connection refused
COUNTER 3
Return code: RFC_FAILURE(1)
error group: 102
key: RFC_ERROR_COMMUNICATION
at com.sap.conn.rfc.engine.RfcIoControl.error_end(RfcIoControl.java:255)
at com.sap.conn.rfc.engine.RfcIoControl.ab_rfcaccept(RfcIoControl.java:43)
at com.sap.conn.rfc.api.RfcApi.RfcAccept(RfcApi.java:41)
at com.sap.conn.jco.rt.MiddlewareJavaRfc$JavaRfcServer.accept(MiddlewareJavaRfc.java:2121)
... 6 more
Request clarification before answering.
Hello Sir,
I am a student who is pursuing a project that deals with JCo 3.
I read your question on the forum and think that you have done the JCo stuff and can answer my questions.
Kindly, try to shed some light on following question:
Q1: I simply want to start with connecting my SAP system. I have a user ID and password for the same.
I saw some examples where they use "JCo.createClient(....)" and "JCo.client.connect()" to simply connect the client but
when I type in the code it shows me an error, because they are using package "com.sap.mw.jco" but since I am using JCo3,
I don't have that package instead I have "com.sap.conn.jco" which do not have createClient function.
Q2: By setting the classpath for "sapjco.jar" I was able to compile one of the sample programs but could not run it. Do you
know how to run the SAP JCo program.
Your guidance will be highly appreciated
-Thanks
-Dmukhi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
FYI - The issue is when using gateway service you need to specify port 3300, when using sapgw01 you need to specify port 3301 (regardless of the port 3300 error messages).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.