ServoyCom Jacob library - remote procedure call failed

Questions and answers on developing, deploying and using plugins and JavaBeans

ServoyCom Jacob library - remote procedure call failed

Postby briese-it » Mon May 31, 2021 12:03 pm

For years I have been using the jacob library with the smart client to open a new mail with parameters (mail system: Mark5). Now I have created a new solution which runs in the NG-Desktop Client and get the following error message:
Code: Select all
com.servoy.j2db.util.Debug - Last JSCom error: com.jacob.com.ComFailException: A COM exception has been encountered:
At Invoke of: DocumentTransmitUI2
Description: 800706be / Der Remoteprozeduraufruf ist fehlgeschlagen.


It seems that the jacob library cannot call Mark5, right? What could be the reason? is it not possible to call it on the client side via ng-desktop client?
Michael Harms
Briese Schiffahrts GmbH & Co.KG, Germany
- Servoy 2021.3.0.3642 Running on Windows 2019 DataCenter - MSSQL2017 & PostGreSQL
User avatar
briese-it
 
Posts: 155
Joined: Mon Jun 20, 2011 1:50 pm
Location: Leer, Germany

Re: ServoyCom Jacob library - remote procedure call failed

Postby sbutler » Tue Jun 01, 2021 4:03 pm

NG Desktop Client and Smart Client are completely different technologies. The Smart Client runs all your code in Java, client-side automatically. NG Desktop is just a electron wrapper for the NG Client. The NG Client runs all your code in Java, server-side (except some of specialty UI Stuff for components). The NG Desktop's electron wrapper requires you to make special node/electron JavaScript wrappers to call something client side. So existing Servoy plugins don't work for this. See Servoy documentation on how to build your own electron wrappers.

PS. We do have some ideas about building a universal wrapper to handle all the Servoy plugins in NG Desktop but haven't dedicated much time to it.
Scott Butler
iTech Professionals, Inc.
SAN Partner

Servoy Consulting & Development
Servoy University- Training Videos
Servoy Components- Plugins, Beans, and Web Components
Servoy Guy- Tips & Resources
ServoyForge- Open Source Components
User avatar
sbutler
Servoy Expert
 
Posts: 726
Joined: Sun Jan 08, 2006 7:15 am
Location: Cincinnati, OH

Re: ServoyCom Jacob library - remote procedure call failed

Postby briese-it » Tue Jun 01, 2021 4:45 pm

Hi Scott,
thanks for the info. It's a pity that there is still no ready-made solution for this, although the ng desktop client has been around for a long time.
Then let's see how we can get it resolved. Thanks for now.
Michael Harms
Briese Schiffahrts GmbH & Co.KG, Germany
- Servoy 2021.3.0.3642 Running on Windows 2019 DataCenter - MSSQL2017 & PostGreSQL
User avatar
briese-it
 
Posts: 155
Joined: Mon Jun 20, 2011 1:50 pm
Location: Leer, Germany

Re: ServoyCom Jacob library - remote procedure call failed

Postby nam.le » Thu Jun 03, 2021 7:01 am

Hi Scott,
many thanks for your clarification.

as you mention, a universal wrapper to handle all the Servoy plugins in NG Desktop would be a great idea. This would allow the NG (Desktop) Client to have many of the capability the Smart Client has now and make it really a attractive approach. What should be done to have you idea about this universal wrapper going ?

Besides of this, you mentioned "See Servoy documentation on how to build your own electron wrappers." Do you mean the documentation at this link
https://github.com/DionDavid/electron/w ... f-features
or do you have any other resource or hints of how to do it ?

Many thanks again for your support and it would be fantastic if you can give some hints on how to solve this problem.
Nam
nam.le
 
Posts: 8
Joined: Thu Jan 21, 2021 1:32 pm


Return to Plugins and Beans

Who is online

Users browsing this forum: No registered users and 5 guests