on 07-20-2011 11:34 AM
Hi,
I have defined logical sytem by Tcode:SALE
LOGICAL SYSTEM:JAVAIDOC
I have defined 'Assign Logical system to client' by Tcode:SALE.
I have defined RFC Destination by using Tcode:sm59.
program ID:jcoserver
sap gateway host:
sap gateway service:sapgw96.
After testing the connection Iam getting the error.
ERROR: program JCOSERVER not registered
AND
After running the java program Iam getting the following Error.
com.sap.conn.jco.JCoException: (102) RFC_ERROR_COMMUNICATION: Unable to get repository
at com.sap.conn.jco.rt.DefaultServer.update(DefaultServer.java:136)
at com.sap.conn.jco.rt.DefaultServer.<init>(DefaultServer.java:105)
at com.sap.conn.idoc.jco.DefaultJCoIDocServer.<init>(DefaultJCoIDocServer.java:35)
at com.sap.conn.idoc.jco.DefaultJCoIDocServerFactory.createServer(DefaultJCoIDocServerFactory.java:17)
at com.sap.conn.idoc.jco.DefaultJCoIDocServerFactory.createServer(DefaultJCoIDocServerFactory.java:13)
at com.sap.conn.jco.rt.DefaultServerManager.getServer(DefaultServerManager.java:108)
at com.sap.conn.jco.rt.StandaloneServerFactory.getServerInstance(StandaloneServerFactory.java:170)
at com.sap.conn.idoc.jco.JCoIDoc.getServer(JCoIDoc.java:78)
at com.realvalue.server.IDocServer.main(IDocServer.java:48)
Caused by: com.sap.conn.jco.JCoException: (102) RFC_ERROR_COMMUNICATION: Connect to SAP gateway failed
Connection parameters: TYPE=A DEST=BCE ASHOST=5.80.16.19 SYSNR=10 PCS=1
LOCATION CPIC (TCP/IP) on local host with Unicode
ERROR partner '5.80.16.19:3310' not reached
TIME Wed Jul 20 15:45:20 2011
RELEASE 711
COMPONENT NI (network interface)
VERSION 39
RC -10
MODULE nixxi.cpp
LINE 3147
DETAIL NiPConnect2: 5.80.16.19:3310
SYSTEM CALL connect
ERRNO 10061
ERRNO TEXT WSAECONNREFUSED: Connection refused
COUNTER 2
at com.sap.conn.jco.rt.MiddlewareJavaRfc.generateJCoException(MiddlewareJavaRfc.java:615)
at com.sap.conn.jco.rt.MiddlewareJavaRfc$JavaRfcClient.connect(MiddlewareJavaRfc.java:1280)
at com.sap.conn.jco.rt.ClientConnection.connect(ClientConnection.java:661)
at com.sap.conn.jco.rt.PoolingFactory.init(PoolingFactory.java:103)
at com.sap.conn.jco.rt.ConnectionManager.createFactory(ConnectionManager.java:171)
at com.sap.conn.jco.rt.DefaultConnectionManager.createFactory(DefaultConnectionManager.java:44)
at com.sap.conn.jco.rt.ConnectionManager.getFactory(ConnectionManager.java:160)
at com.sap.conn.jco.rt.RfcDestination.initialize(RfcDestination.java:789)
at com.sap.conn.jco.rt.RfcDestination.getSystemID(RfcDestination.java:817)
at com.sap.conn.jco.rt.RepositoryManager.getRepository(RepositoryManager.java:32)
at com.sap.conn.jco.rt.RfcDestination.getRepository(RfcDestination.java:891)
at com.sap.conn.jco.rt.DefaultServer.update(DefaultServer.java:132)
... 8 more
Caused by:
RfcException: [null]
message: Connect to SAP gateway failed
Connection parameters: TYPE=A DEST=BCE ASHOST=5.80.16.19 SYSNR=10 PCS=1
LOCATION CPIC (TCP/IP) on local host with Unicode
ERROR partner '5.80.16.19:3310' not reached
TIME Wed Jul 20 15:45:20 2011
RELEASE 711
COMPONENT NI (network interface)
VERSION 39
RC -10
MODULE nixxi.cpp
LINE 3147
DETAIL NiPConnect2: 5.80.16.19:3310
SYSTEM CALL connect
ERRNO 10061
ERRNO TEXT WSAECONNREFUSED: 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_rfcopen(RfcIoControl.java:94)
at com.sap.conn.rfc.api.RfcApi.RfcOpen(RfcApi.java:83)
at com.sap.conn.jco.rt.MiddlewareJavaRfc$JavaRfcClient.connect(MiddlewareJavaRfc.java:1273)
... 18 more
PLEASE HELP ME TO SOLVE THIS ISSUE.
Thanks&Regards,
Sridevi.
If you are doing connection from ABAP to Java stack .create a Jco RFC in java and connect from ABAP using that program ID
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.
Hi,
Looks like the ABAP host and system is not reachable from the Java host.
Try to use the command 'ping' to check connectivity to the ABAP server IP.
Regards,
Srikishan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
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.