Q
Problem solve Get help with specific problems with your technologies, process and projects.

Problems establishing multiple RFC connections

A lengthy error message suggests problems in establishing RFC connections. Expert Austin Sincock offers advice.

I have successfully used JCo to connect to R/3 and make BAPI calls. However, I got errors when I establish more than 100 concurrent RFC connections. I have set the connection pooling to 200. The error:

com.sap.mw.jco.JCO$Exception: (102) RFC_ERROR_COMMUNICATION: Connect to SAP gateway failed
Connect_PM GWHOST=192.168.103.21, GWSERV=sapgw00, ASHOST=192.168.103.21, SYSNR=00

LOCATION CPIC (TCP/IP) on local host
ERROR max no of 100 conversations exceeded

TIME Thu May 08 11:16:04 2003
RELEASE 46D
COMPONENT CPIC (TCP/IP)
VERSION 3
RC 466
MODULE r3cpic.c
LINE 9937
COUNTER 1

at com.sap.mw.jco.rfc.MiddlewareRFC$Client.nativeConnect(Native Method)
at com.sap.mw.jco.rfc.MiddlewareRFC$Client.connect(MiddlewareRFC.java:755)
at com.sap.mw.jco.JCO$Client.connect(JCO.java:2605)
at com.sap.mw.jco.JCO$Pool.getClient(JCO.java:3806)
at com.sap.mw.jco.JCO$PoolManager.getClient(JCO.java:4353)
at com.sap.mw.jco.JCO$PoolManager.getClient(JCO.java:4311)
at com.sap.mw.jco.JCO.getClient(JCO.java:5998)
at com.sap.mw.jco.JCO$Repository.queryFunctionInterface(JCO.java:15503)
at com.sap.mw.jco.JCO$Repository.getFunctionInterface(JCO.java:15562)
at com.sap.mw.jco.JCO$BasicRepository.getFunctionTemplate(JCO.java:14720)
at ESSSurveyManager.<init>(ESSSurveyManager.java:23)
at ThreadGenerator.run(VolumeTest.java:49)
Just because the JCo connection pool is set to 200 does not mean that you can get 200 simultaneous dialog instances on the SAP application server. Check the value of the profile parameter rdisp/max_comm_entries to make sure the value to greater than or equal to 200.
This was last published in July 2003

Dig Deeper on SAP Java and J2EE

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.

-ADS BY GOOGLE

SearchERP

SearchOracle

SearchDataManagement

SearchAWS

SearchBusinessAnalytics

SearchCRM

SearchContentManagement

SearchHRSoftware

Close