Please note, this is a STATIC archive of website www.tutorialspoint.com from 11 May 2019, cach3.com does not collect or store any user information, there is no "phishing" involved.
Tutorialspoint

Handling Exception using JCo 3.0 on JcoContext.end()

I have a JAVA application that interacts with SAP system using JCo 3.0. Problem occurs with JCoContext.end() as It could potentially raise a JCoException.

Also I have noticed if JCoContext.end() method is not invoked then BAPI calls doesn’t complete. I want some help in handling exception, any suggestions?


1 Answer
SAP Expert

As per my understanding, JCoContext.end() method will raise an exception if passed parameter is NULL or you have a bug in JCo. You need to ensure that destination is not null.

This method should only be called, if destination is not null i.e.

SAP Thread

Advertisements

We use cookies to provide and improve our services. By using our site, you consent to our Cookies Policy.