cancel
Showing results for 
Search instead for 
Did you mean: 

Error connecting JCO.Client

CHKNELL
Participant
0 Kudos
428

Hello!

I've got a little problem with Adaptive RFC calls: After exactly 10 times executing my call I always get the following Exception:

com.sap.tc.webdynpro.modelimpl.dynamicrfc.WDDynamicRFCExecuteException: Error connecting using JCO.Client: null

Has anybody by any chance got an idea why or how to handle this problem?

Thank you very much in advance!

Best Regards

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi

Well its a simple problem of connection pooling. In your JCO connection settings change the maximum connections to 200. It will work.

well what i would advice is that After you execute the Model please release the connection. The reason you are getting this JCO Client null is because the connection is not getting released.

When you say the following code

wdContext.current<BAPI_INPUT>.modelObject().execute();

//Get the reference to the model and release the connection

If your Model name is say "MO_Mymodel"

then

MO_Mymodel model = (MO_Mymodel) WDModelFactory.getModelInstance(MO_Mymodel.class);

model.disconnectIfAlive();

This should release your connections. Also ensure you release the connections even if there is a exception :).

Hope that helps you.

regards

ravi

Answers (0)