cancel
Showing results for 
Search instead for 
Did you mean: 

Server connection problem using java through IDoc

Former Member
0 Kudos

Hi experts,

I need to extract data from SAP using java code through IDoc. I have downloaded the IDocServerExample.java and created the client and server

connection files. But i am getting the following error.

com.sap.conn.jco.JCoException: (129) JCO_ERROR_SERVER_STARTUP: Server startup failed at Fri Jul 24 12:51:20 IST 2015.

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

Connection parameters: PROGID="EAW_01_900" GWHOST=172.168.60.24 GWSERV=sapgw00

ERROR       service '?' unknown

TIME        Fri Jul 24 12:51:20 2015

RELEASE     721

COMPONENT   NI (network interface)

VERSION     40

RC          -3

DETAIL      NiErrSet

COUNTER     2

For server connection, i have given the following connection parameters.

serverConnectionProperties.setProperty(ServerDataProvider.JCO_GWHOST, "172.168.60.24");

serverConnectionProperties.setProperty(ServerDataProvider.JCO_GWSERV, "sapgw00");    

serverConnectionProperties.setProperty(ServerDataProvider.JCO_PROGID, "EAW_01_900");       

serverConnectionProperties.setProperty(ServerDataProvider.JCO_REP_DEST, "ABAP_AS_WITH_POOL");

serverConnectionProperties.setProperty(ServerDataProvider.JCO_CONNECTION_COUNT, "2");

createServerDataFile("MYSERVER", serverConnectionProperties);

Please guide me if there is any problem with the server connection parameters.

Thanks in advance.

Accepted Solutions (1)

Accepted Solutions (1)

MarkusTolksdorf
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Rajakumari,

please check /etc/services. When using symbolic port names, it needs to contain an entry like mentioned below:

sapgw00   3300/tcp

Alternatively, you can specify the port directly as value "3300" for ServerDataProvider.JCO_GWSERV. 

Best regards,

Markus

Former Member
0 Kudos

Thanks for your reply Markus.

I have given the value 3300 for ServerDataProvider.JCO_GWSERV.

But still getting the same connection error.

Please guide me what other properties i need to check.

MarkusTolksdorf
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Rajakumari,

"ERROR       service '?' unknown" can no longer occur when using a concrete port, so you might still get an error, but definitely not the same one.

Best regards,

Markus

HAL9000
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Rajakumari,

if specifying the port number "3300" directly instead, I don't think that you are still getting the same error message with error detail "service unknown".

Please look carefully and tell us which error message it is now.

Best regards,

Stefan

@Markus:

You were were faster....

Former Member
0 Kudos

Yes. You are correct guys. The new error i am getting is given below.

com.sap.conn.jco.JCoException: (113) JCO_ERROR_REGISTRATION_DENIED: CPIC-CALL: SAP_CMACCPTP3 on convId:        

LOCATION    SAP-Gateway on host SAPECC / sapgw00

ERROR       registration of tp EAW_01_900 from host CSLE30067 not allowed

TIME        Tue Jul 28 15:24:54 2015

RELEASE     741

COMPONENT   SAP-Gateway

VERSION     2

RC          720

MODULE      D:/depot/bas/741_REL/src/krn/si/gw/gwxxrd.c

LINE        3498

COUNTER     10614

  at com.sap.conn.jco.rt.MiddlewareJavaRfc.generateJCoException(MiddlewareJavaRfc.java:686)

  at com.sap.conn.jco.rt.MiddlewareJavaRfc$JavaRfcServer.listen(MiddlewareJavaRfc.java:2551)

  at com.sap.conn.jco.rt.DefaultServerWorker.dispatch(DefaultServerWorker.java:275)

  at com.sap.conn.jco.rt.DefaultServerWorker.loop(DefaultServerWorker.java:356)

  at com.sap.conn.jco.rt.DefaultServerWorker.run(DefaultServerWorker.java:232)

  at java.lang.Thread.run(Thread.java:744)

Please help me. Thanks in advance.

HAL9000
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Rajakumari,

this is a SAP gateway security related issue.

Please follow the instructions of this KBA for solving it:

https://service.sap.com/sap/support/notes/1850230

Best regards,

Stefan

Answers (0)