Skip to Content
0
May 26, 2020 at 02:23 PM

Exception in thread "main" com.jacob.com.ComFailException: Invoke of: OpenConnection

247 Views

Hi All,

I am getting error as "Exception in thread "main" com.jacob.com.ComFailException: Invoke of: OpenConnection

Source: saplgpad Description: SAP Logon connection entry not found" while running my java code using jacob for sapgui automation.

am getting error at below line. can someone please suggest me what could be the reason and also on how to proceed further.

String sapConnectionName = "SAP ERP";
Connection = new ActiveXComponent(
GUIApp.invoke("OpenConnection",sapConnectionName).toDispatch());