cancel
Showing results for 
Search instead for 
Did you mean: 

Could not create JCOClientConnection !!

Former Member
0 Kudos

Hi everyone,

I am making a RFC call from a Web Dynrpo Application developed in 04s Environement.

It appears to work fine on my development system.

But when tested on Staging Servers with large number of concurrent users, it gives me the following error

Could not create JCOClientConnection for logical System: 'JCO_CIP_RFC_MODELDATA' - Model: 'class com..cip.modeldc.model.orgtreemodel.' ... 

I am using the following code to disconnect after each and every R/3 calls:


try
{
//model calls made here
} catch (RuntimeException e) {
...
}finally{
wdContext.current<context>Element().
		modelObject().modelInstance().disconnectIfAlive();
}

Please help me fix this problem

Thanx,

Kunal

Accepted Solutions (0)

Answers (2)

Answers (2)

PradeepBondla
Active Contributor
0 Kudos

Hi,

Check the JCo Pool Configuration settings of your JCO Destination. This message normally comes when the maximum connections has been reached. Increase the "Maximum Connections" to some number depending on the usage. A good habit is to disconnect the jco connection after executing the same in your webdynpro code if you don't want it to be synchronous.

<ModelName>.modelInstance().disconnectIfAlive()

PradeeP

Former Member
0 Kudos

i donot want it to be synchronous and hence i had added the disconnectIfAlive code in the finally block (as indicated above). Could there be a better way of disconnecting or can you tell what else do i have to do after i am done with model node data.

-Kunal

Former Member
0 Kudos

Hi,

DisconnectIfAlive is the right way to do it.

You also have the "Maximum waiting time" and "connection timeout" settings

Check my previous post - I have edited it with the name of the settings.

Aviad

PradeepBondla
Active Contributor
0 Kudos

yes... that was the right way to do.

PradeeP

Former Member
0 Kudos

Hi,

This error means that either your test user is not defined/ locked in the backend or you have JCO configurations problem,

Have you tested the JCO connections?

Aviad

Former Member
0 Kudos

yes, the configurations looks fine. In fact, it does work for few users, but when the count of concurrent users reaches in range of 40-50, the above mentioned error surfaces/appears on the screen for the newly logged-in users.

-Kunal

Former Member
0 Kudos

Hi,

In the JCO configuration you have settings for max users/sessions.

please check those.

Aviad

EDIT: They are called "Maximum Pool Size" and "Maximum Connections"

Edited by: Aviad Levy on Nov 11, 2008 12:49 PM