Problem solve Get help with specific problems with your technologies, process and projects.

Creating the repository object

When I create the repository object as repository = new Repository( ropositoryName, connectionPoolName ); and then call repository.getFunctionInterface(RFM_Name); sometimes I have this exception: com.sap.mw.jco.JCO$Exception: (102) JCO_ERROR_COMMUNICATION: JCO.Client not connected in repository call at com.sap.mw.jco.JCO$Repository.getVersion(JCO.java:18273)at com.sap.mw.jco.JCO$Repository.queryFunctionInterface(JCO.java:18601) at com.sap.mw.jco.JCO$Repository.queryFunctionInterface(JCO.java:18334) at com.sap.mw.jco.JCO$Repository.getFunctionInterface(JCO.java:18444)

This is no way to check if the connection is indeed active for this repository (no link to the client object)....

So, when I use the repository this way does it mean the connection will be taken automatically from the pool?

I have not seen this before. Make sure you use the latest version of JCo. And do not use connect/disconnect on pool connections. If that does not help, I would have to see the complete source code.
This was last published in November 2004

Dig Deeper on SAP ABAP

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Start the conversation

Send me notifications when other members comment.

By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Please create a username to comment.