Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

JCoIDoc IDocLibrary 3.0.2 Problems with IDocServerExample.java

Hello,

I´m facing a problem with IDocServerExample.java. I created a new project in eclipse, added the package com.sap.conn.idoc.examples and the class IDocServerExample.java. I configured the files "MYSERVER.jcoServer" and "BCE.jcoDestination" and started the application. Then I get the following error messages:

*********************************************************************************************************************************************************

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.sap.conn.idoc.examples.IDocServerExample.main(IDocServerExample.java:18)
Caused by: com.sap.conn.jco.JCoException: (102) RFC_ERROR_COMMUNICATION: Connect to message server host failed
Connection parameters: TYPE=B DEST=JCOSERVER01 MSHOST=arm115tx GROUP=PUBLIC R3NAME=T01 PCS=1

LOCATION    CPIC (TCP/IP) on local host rz1462 with Unicode
ERROR       service '?' unknown
TIME        Tue Jul 07 09:09:40 200
RELEASE     711
COMPONENT   NI (network interface)
VERSION     39
RC          -3
DETAIL      NiErrSet
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 message server host failed
Connection parameters: TYPE=B DEST=JCOSERVER01 MSHOST=arm115tx GROUP=PUBLIC R3NAME=T01 PCS=1

LOCATION    CPIC (TCP/IP) on local host rz1462 with Unicode
ERROR       service '?' unknown
TIME        Tue Jul 07 09:09:40 200
RELEASE     711
COMPONENT   NI (network interface)
VERSION     39
RC          -3
DETAIL      NiErrSet
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

*********************************************************************************************************************************************************

Does anyone know what I´m doing wrong?

With thanks,

Veit

Former Member
Not what you were looking for? View more on this topic or Ask a question