Hi everyone,
I'm trying access Idoc for my Java application according with this example:
I'm setting this configuration and can't get success.
jco.server.gwhost=192.168....... (ip of the sap server)
jco.server.gwserv=sapgw01
jco.server.progid=SAPIDOC
jco.server.unicode=0
jco.server.repository_destination=BCE
so, when i run the program, i recive the msg:
>>> Error occured on SAPIDOC connection nullcom.sap.conn.jco.JCoException: (129) JCO_ERROR_SERVER_STARTUP: Server startup failed at Mon Dec 12 08:28:18 BRST 2011.
This is caused by either a) erroneous server settings, b) the backend system has been shutdown, c) network problems. Will try next startup in 1 seconds.
Could not start server: Connect to SAP gateway failed
Connect parameters: TPNAME=SAPIDOC GWHOST=192.168.4.44 GWSERV=sapgw01
ERROR service 'sapgw01' unknown
TIME Mon Dec 12 08:28:18 2011
RELEASE 720
COMPONENT NI (network interface)
VERSION 40
RC -3
MODULE niuxi.c
LINE 1825
DETAIL NiPGetServByName: 'sapgw01' not found
SYSTEM CALL getaddrinfo
COUNTER 1
at com.sap.conn.jco.rt.DefaultServer.openConnection(DefaultServer.java:1221)
at com.sap.conn.jco.rt.DefaultServer.openConnections(DefaultServer.java:1104)
at com.sap.conn.jco.rt.DefaultServer.adjustConnectionCount(DefaultServer.java:1051)
at com.sap.conn.jco.rt.DefaultServerManager$DispatcherWorker.run(DefaultServerManager.java:300)
at java.lang.Thread.run(Thread.java:722)
Caused by: com.sap.conn.jco.JCoException: (129) JCO_ERROR_SERVER_STARTUP: Could not start server: Connect to SAP gateway failed
Connect parameters: TPNAME=SAPIDOC GWHOST=192.168.4.44 GWSERV=sapgw01
ERROR service 'sapgw01' unknown
TIME Mon Dec 12 08:28:18 2011
RELEASE 720
COMPONENT NI (network interface)
VERSION 40
RC -3
MODULE niuxi.c
LINE 1825
DETAIL NiPGetServByName: 'sapgw01' not found
SYSTEM CALL getaddrinfo
COUNTER 1
at com.sap.conn.jco.rt.MiddlewareJavaRfc$JavaRfcServer.accept(MiddlewareJavaRfc.java:2186)
at com.sap.conn.jco.rt.ServerConnection.accept(ServerConnection.java:390)
at com.sap.conn.jco.rt.DefaultServer.openConnection(DefaultServer.java:1196)
... 4 more
Caused by: RfcException: [null]
message: Connect to SAP gateway failed
Connect parameters: TPNAME=SAPIDOC GWHOST=192.168.4.44 GWSERV=sapgw01
ERROR service 'sapgw01' unknown
TIME Mon Dec 12 08:28:18 2011
RELEASE 720
COMPONENT NI (network interface)
VERSION 40
RC -3
MODULE niuxi.c
LINE 1825
DETAIL NiPGetServByName: 'sapgw01' not found
SYSTEM CALL getaddrinfo
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:2172)
... 6 more
I check in sm59 the connections TCP-IP and my service gateway is sapgw01, but the ERROR said: DETAIL NiPGetServByName: 'sapgw01' not found
can someone help me?