Electron error with plugins.ngdesktopfile

Discuss all problems you have with Servoy here. It might help to mention the Servoy version and Operating System version you are using

Electron error with plugins.ngdesktopfile

Postby briese-it » Wed Jun 30, 2021 3:40 pm

I have created an electron client and need to check wether the user is working with NGDesktop, NGWeb or Electron client.
When I start my solution with Electron Client and call a function like "plugins.ngdesktoputils.isNGDesktop()" I get the following error:

Code: Select all
ERROR com.servoy.j2db.util.Debug - Error while executing client side code. Please see browser console for more info. Error: Error: Cannot find module 'chokidar'


Ok, shouldn't be a problem installing it but after installing the node module I get the following result in servoy:

Code: Select all
Error: Could not call remote function 'get'. Check that the function signature is correct. Underlying error: Insufficient number of arguments.
    at callFunction (D:\Code4You-Dev\apache-ant-1.9.15\bin\ElectronClient\lib\electronsample-win32-x64\resources\electron.asar\browser\rpc-server.js:257:11)
    at EventEmitter.<anonymous> (D:\Code4You-Dev\apache-ant-1.9.15\bin\ElectronClient\lib\electronsample-win32-x64\resources\electron.asar\browser\rpc-server.js:357:5)
    at emitMany (events.js:147:13)
    at EventEmitter.emit (events.js:224:7)
    at WebContents.<anonymous> (D:\Code4You-Dev\apache-ant-1.9.15\bin\ElectronClient\lib\electronsample-win32-x64\resources\electron.asar\browser\api\web-contents.js:295:13)
    at emitTwo (events.js:126:13)
    at WebContents.emit (events.js:214:7)
   at org.sablo.websocket.WebsocketEndpoint.waitResponse(WebsocketEndpoint.java:589) ~[sablo_2021.3.0.3642.jar:?]
   at org.sablo.websocket.BaseWindow.sendSyncMessage(BaseWindow.java:490) ~[sablo_2021.3.0.3642.jar:?]
   at org.sablo.websocket.BaseWindow.executeCall(BaseWindow.java:820) ~[sablo_2021.3.0.3642.jar:?]
   at org.sablo.websocket.BaseWindow.executeServiceCall(BaseWindow.java:773) ~[sablo_2021.3.0.3642.jar:?]
   at com.servoy.j2db.server.ngclient.NGClientWindow.executeServiceCall(NGClientWindow.java:495) ~[?:?]
   at org.sablo.websocket.impl.ClientService.executeServiceCall(ClientService.java:73) ~[sablo_2021.3.0.3642.jar:?]
   at com.servoy.j2db.server.ngclient.scripting.WebServiceFunction.call(WebServiceFunction.java:84) ~[?:?]
   at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:1487) ~[org.eclipse.dltk.javascript.rhino_2021.3.0.3642.jar:?]
   at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:815) ~[org.eclipse.dltk.javascript.rhino_2021.3.0.3642.jar:?]
   at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:109) ~[org.eclipse.dltk.javascript.rhino_2021.3.0.3642.jar:?]
   at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:399) ~[org.eclipse.dltk.javascript.rhino_2021.3.0.3642.jar:?]
   at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3534) ~[org.eclipse.dltk.javascript.rhino_2021.3.0.3642.jar:?]
   at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:107) ~[org.eclipse.dltk.javascript.rhino_2021.3.0.3642.jar:?]
   at com.servoy.j2db.scripting.ScriptEngine.executeFunction(ScriptEngine.java:676) [servoy_shared_2021.3.0.3642.jar:?]
   at com.servoy.j2db.debug.RemoteDebugScriptEngine.executeFunction(RemoteDebugScriptEngine.java:393) [servoy_debug_2021.3.0.3642.jar:?]
   at com.servoy.j2db.server.ngclient.component.EventExecutor.executeEvent(EventExecutor.java:252) [servoy_ngclient_2021.3.0.3642.jar:?]
   at com.servoy.j2db.server.ngclient.DataAdapterList.executeEvent(DataAdapterList.java:128) [servoy_ngclient_2021.3.0.3642.jar:?]
   at com.servoy.j2db.server.ngclient.WebFormComponent$FormcomponentEventHandler.executeEvent(WebFormComponent.java:241) [servoy_ngclient_2021.3.0.3642.jar:?]
   at org.sablo.BaseWebObject.doExecuteEvent(BaseWebObject.java:335) [sablo_2021.3.0.3642.jar:?]
   at org.sablo.BaseWebObject.executeEvent(BaseWebObject.java:324) [sablo_2021.3.0.3642.jar:?]
   at org.sablo.services.server.FormServiceHandler.executeEvent(FormServiceHandler.java:137) [sablo_2021.3.0.3642.jar:?]
   at com.servoy.j2db.server.ngclient.NGFormServiceHandler.executeEvent(NGFormServiceHandler.java:569) [servoy_ngclient_2021.3.0.3642.jar:?]
   at org.sablo.services.server.FormServiceHandler.executeMethod(FormServiceHandler.java:84) [sablo_2021.3.0.3642.jar:?]
   at com.servoy.j2db.server.ngclient.NGFormServiceHandler.executeMethod(NGFormServiceHandler.java:548) [servoy_ngclient_2021.3.0.3642.jar:?]
   at org.sablo.websocket.WebsocketEndpoint$5.run(WebsocketEndpoint.java:418) [sablo_2021.3.0.3642.jar:?]
   at org.sablo.eventthread.Event$1.run(Event.java:96) [sablo_2021.3.0.3642.jar:?]
   at org.sablo.websocket.CurrentWindow.runForWindow(CurrentWindow.java:76) [sablo_2021.3.0.3642.jar:?]
   at org.sablo.eventthread.Event.execute(Event.java:86) [sablo_2021.3.0.3642.jar:?]
   at org.sablo.eventthread.EventDispatcher.dispatch(EventDispatcher.java:125) [sablo_2021.3.0.3642.jar:?]
   at org.sablo.eventthread.EventDispatcher.run(EventDispatcher.java:89) [sablo_2021.3.0.3642.jar:?]
   at com.servoy.j2db.server.ngclient.eventthread.NGEventDispatcher.run(NGEventDispatcher.java:57) [servoy_ngclient_2021.3.0.3642.jar:?]
   at java.lang.Thread.run(Unknown Source) [?:?]


Any ideas?
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

Return to Discuss possible Issues and Bugs

Who is online

Users browsing this forum: No registered users and 5 guests