Hi Folks,
I am having problems in getting the Jco connected to the SAP system. From the same system I'm able to logon to the respective SAP system using the SAP GUI. The below is the log.
- ap.conn.jco.support.JRfcServ
Syntax for start and run in registered mode or via fastrfc:
JRfcServ [options]
options = -a<program ID> e.g. <own host name>.srfcserv
= -g<SAP gateway host name> e.g. hs0311
= -x<SAP gateway service> e.g. sapgw53
= -c<connection count> e.g. 2
= -u only for unicode server
= -t<Level> RFC/JCo-Trace on e.g. 5
= -L<SNC library, optional>
= -S<SNC myname, optional>
= -Q<SNC quality of protection, optional>
Option L, S and Q can be set if working with SNC (Secure Network
Communication). In order to register a server at a gateway use
options a, g and x. For fastrfc apply the option profile_name.
Available server configurations:
SAPRPR
Enter server name....................... :SAPRPR
Loaded properties for the server SAPRPR
Server configuration data
Program id..............................:PROGRAM_ID
Gateway host............................:220.XXX.XX.XX2
Gateway service.........................:sapgw02
Repository destination..................:SAPRPR
- Connections.............................:2
RFC trace (1/0)0........................:0
use this parameters (Y/N) [Y] :Y
Loaded properties for the destination SAPRPR
Server type :...........................:A
Logon data
- Client..................................:800
- UserID..................................:user
- Password................................:password
- Language (EN)...........................:en
- Destination.............................:SAPRPR
RFC trace (1/0)0........................:1
use this parameters (Y/N) [Y] :Y
Exception
- com.sap.conn.jco.JCoException: (102) JCO_ERROR_COMMUNICATION: Unable to get repository
at com.sap.conn.jco.rt.DefaultServer.update(DefaultServer.java:219)
at com.sap.conn.jco.rt.DefaultServer.<init>(DefaultServer.java:118)
at com.sap.conn.jco.rt.DefaultServerManager$DefaultServerFactory.createServer(DefaultServerManager.java:328)
at com.sap.conn.jco.rt.DefaultServerManager.getServer(DefaultServerManager.java:108)
at com.sap.conn.jco.rt.StandaloneServerFactory.update(StandaloneServerFactory.java:363)
at com.sap.conn.jco.rt.StandaloneServerFactory.getServerInstance(StandaloneServerFactory.java:176)
at com.sap.conn.jco.server.JCoServerFactory.getServer(JCoServerFactory.java:74)
at com.sap.conn.jco.support.JRfcServ.startServer(JRfcServ.java:55)
at com.sap.conn.jco.support.JRfcServ.main(JRfcServ.java:215)
Caused by: com.sap.conn.jco.JCoException: (102) JCO_ERROR_COMMUNICATION: Connect from SAP gateway to RFC server failed
Connection parameters: TYPE=A DEST=SAPRPR ASHOST=220.XXX.XX.XX1 SYSNR=05 PCS=1
LOCATION SAP-Gateway on host TESTSAP / sapgw05
ERROR timeout during allocate
TIME Tue Mar 27 13:51:50 2012
RELEASE 700
COMPONENT SAP-Gateway
VERSION 2
RC 242
MODULE gwr3cpic.c
LINE 1973
DETAIL no connect of TP sapdp05 from host 220.XXX.XX.X1 after 20 sec
COUNTER 3
at com.sap.conn.jco.rt.MiddlewareJavaRfc.generateJCoException(MiddlewareJavaRfc.java:666)
at com.sap.conn.jco.rt.MiddlewareJavaRfc$JavaRfcClient.connect(MiddlewareJavaRfc.java:1364)
at com.sap.conn.jco.rt.ClientConnection.connect(ClientConnection.java:731)
at com.sap.conn.jco.rt.PoolingFactory.init(PoolingFactory.java:103)
at com.sap.conn.jco.rt.ConnectionManager.createFactory(ConnectionManager.java:293)
at com.sap.conn.jco.rt.DefaultConnectionManager.createFactory(DefaultConnectionManager.java:46)
at com.sap.conn.jco.rt.ConnectionManager.getFactory(ConnectionManager.java:262)
at com.sap.conn.jco.rt.RfcDestination.initialize(RfcDestination.java:509)
at com.sap.conn.jco.rt.RfcDestination.getSystemID(RfcDestination.java:533)
at com.sap.conn.jco.rt.RepositoryManager.getRepository(RepositoryManager.java:30)
at com.sap.conn.jco.rt.RfcDestination.getRepository(RfcDestination.java:603)
at com.sap.conn.jco.rt.RfcDestination.getRepository(RfcDestination.java:27)
at com.sap.conn.jco.rt.DefaultServer.update(DefaultServer.java:215)
... 8 more
Caused by: RfcException: [null]
message: Connect from SAP gateway to RFC server failed
Connection parameters: TYPE=A DEST=SAPRPR ASHOST=220.XXX.XX.XX1 SYSNR=05 PCS=1
LOCATION SAP-Gateway on host SONATASAP / sapgw05
ERROR timeout during allocate
TIME Tue Mar 27 13:51:50 2012
RELEASE 700
COMPONENT SAP-Gateway
VERSION 2
RC 242
MODULE gwr3cpic.c
LINE 1973
DETAIL no connect of TP sapdp05 from host 220.XXX.XX.XX1 after 20 sec
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_rfcopen(RfcIoControl.java:94)
at com.sap.conn.rfc.api.RfcApi.RfcOpen(RfcApi.java:86)
at com.sap.conn.jco.rt.MiddlewareJavaRfc$JavaRfcClient.connect(Middlewar
- eJavaRfc.java:1331)
... 19 more
Available server configurations:
SAPRPR
Enter server name....................... :