cancel
Showing results for 
Search instead for 
Did you mean: 

error with JCO connection

Former Member
0 Kudos

Hi,

I have deployed a webdynpro application which uses RFC's.It was working perfectly but suddenly while running it today am getting this error:

Could not create JCOClientConnection for logical System: TDC_SSM_MODELDATA_DEST - Model: class com.sap.ltil.darpan.model.AddUserModel. Please assure that you have configured the RFC connections and/or logical system name properly for this model!

can anybody tellme why this is happening and what is its solution?

Thanks,

Parama.

Accepted Solutions (1)

Accepted Solutions (1)

former_member192434
Active Contributor
0 Kudos

Hi

Check this same problem got resolve using this thread

/message/5839021#5839021 [original link is broken]

Thanks

Answers (2)

Answers (2)

Former Member
0 Kudos

Parama,

when you are using adaptive rfc models you must be very careful in closing all the connections that are opened using JCOs.

check these threads for more details.

/thread/1083065 [original link is broken]

once you execute the RFC from java you have to write the following code

let's assume name of the model is ztest

try{

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

if(model!=null)model.disconnectIfAlive();

}catch(Exception e){}

Thanks

Bala Duvvuri

Former Member
0 Kudos

Thank you all so very much for assistance. It is very helpful.

One last question to ensure that I'm doing everything correctly.

Let's say I have the following code. Can I call disconnectIfAlive() immediately after invalidating the output node? or do I have to call it after I've finished looping through the output?

Z_RFC_XYZ input = new Z_RFC_XYZ();

wdContext.nodeZ_RFC_XYZ().bind(input);

try {

input.execute();

wdContext.nodeOutput_Z_RFC_XYZ().invalidate();

//do I call this here?

input.disconnectIfAlive();

//loop through output nodes...

//or here?

input.disconnectIfAlive();

}

catch(Exception ex) {

//do stuff with exception...

}

Thanks again.

Former Member
0 Kudos

hi,

Check the login id and password for the jco connection in SAP Gui.

Check connection pool size in the jco.

The above are the possible errors with the jco connection.

with regards

shanto aloor