cancel
Showing results for 
Search instead for 
Did you mean: 

JCO Connection

Former Member
0 Kudos

Hi all,

we are using adapative RFC model to connect with database. It is working fine. But in some cases, we are getting the following error,

<b>Could not create JCOClientConnection for logical System: XXXX- Model: class com.XXX. Please assure that you have configured the RFC connections and/or logical system name properly for this model!</b>

I would like to know what is the reason for this error and also the maximum number of pool size and connection size to be set. Around 3000 users are using the application.

Thanks in advance.

Accepted Solutions (0)

Answers (2)

Answers (2)

abhijeet_mukkawar
Active Contributor
0 Kudos

hi,

Take a look at this link it may be of some help.

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/documents/a1-8-4/how%20to%...

I dont know the exact cause of this problem, bt see if by changing User Authentication for modeldata to User/Password solves the problem.

regards,

abhijeet

Former Member
0 Kudos

Thanks for your quick reply.

Based on this document only we have configured the connection. Now i checked it once again. Still we are facing the same issue.

Need inputs on the same.

abhijeet_mukkawar
Active Contributor
0 Kudos

hi,

Just give it a try ,

Change User Authentication for modeldata to User/Pass.

regards,

abhijeet

Former Member
0 Kudos

hi,

After open all ur connections u need to close them that might helps you.

modelObject.Modleinstance().disconnectAlive();

Thanks,

Lohi.

Former Member
0 Kudos

Thanks for all your inputs.

Can I write the below mentioned code, to close the connections? in my custom controller.

wdContext.currentnodeElement().modelObject().modelInstance().disConnectIfAlive();

If I am wrong just correct me I have to write this code after executing and invalidating the model node.

kind help will be appericiated.

Thanks..

abhijeet_mukkawar
Active Contributor
0 Kudos

hi,

yeah that is the code to close the connection.

write that at the end , ie when you are done with your session and about to exit application. Better it should be last line before terminating the application

regards,

abhijeet

Former Member
0 Kudos

hi,

In one application, I am calling 5 RFC's in one model and 2 RFC's in another model.

In separate functions i have written code to execute the RFC in custom control and according to the need in view by calling these functions i am executing the RFC. Now I want to clarify whether I have to write the code in every function are at one time in view itself is enough.

As per the previuos reply, we want to close the connection at the terminating of the application that is in doExit() of view.

And also I want to confirm from you that, this will be the only solution for this type of error or some other solutions are available?

It would be really helpful, if this issue will be clarified.

Thanks in advance.

Former Member
0 Kudos

Hi Parvathy,

Error seems to be because of overload in connections.

For configuring the JCo properly, please refer to the below link

<a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/3103eb90-0201-0010-71af-be6f4a6f61d1">How to Configure the JCo Destination Settings</a>

Mahesh