Skip to Content
author's profile photo Former Member
Former Member

Java Application connect idoc - sapidoc3

Hi everyone,

I'm trying access Idoc for my Java application according with this example:

http://help.sap.com/saphelp_nw73/helpdata/en/48/5a29be412d58d8e10000000a421937/content.htm

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?

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Dec 12, 2011 at 02:03 PM

    Hi...

    i found the solution.

    I need to set 3300 instead of sapgw00.

    It's important, in the property jco.server.gwserv, is necessary convert sapgwXX of 33XX.

    thanks a lot.

    Emanuel Cordeiro

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.