Skip to Content

Error connecting JCO.Client

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on May 19, 2005 at 02:26 PM

    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

    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.