Weird 'rendering' bug

Forum to discuss the new web client version of Servoy.

Weird 'rendering' bug

Postby rafig » Tue Mar 12, 2019 6:45 pm

Hi all,
I seem to have a weird bug in my NG solution in Servoy 8.4 (Version: 8.4.0.3402).
I have tried to configure my solution following best practices, and have a '_base' abstract form with lots of logic in it, including main form events code, like 'onRecordSelection'.
I then have most of my other forms extending this form [I would normally then have a 'base<dbtable>' form and then all other forms for that <dbtable> extending that, but until the fix is issued that allows referencing methods in parent forms, I can't do this]
I then have a 'baseForm' (extending '_base') that I put my UI on with a navbar component across top with a search box in it, and a sidenav component on left with menu items to choose from and taking up rest of form a tabless panel that I swap forms out in based on what is chosen in sidenav. Most of these forms consist of a one row, two column container, with a table component on left (3 units) showing list view of table records & a detail view (9 units) showing record chosen from table.
UI Structure.png

I am also using 'svyUtils' & 'svySearch' modules.
There is a 'search' box in my navbar that I do a search with using svySearch
When I do this it throws up these errors in console/log
Code: Select all
ERROR com.servoy.j2db.util.Debug - rendering is already: true
   at /Users/rafig/git/he/he/forms/_base.js:483 (update_UI)
   at /Users/rafig/git/he/he/forms/_base.js:498 (onRecordSelection)
   at /Users/rafig/git/he/he/forms/_base.js:483 (update_UI)
   at /Users/rafig/git/he/he/forms/_base.js:498 (onRecordSelection)
   at /Users/rafig/git/he/svySearch/svySearch.js:677
   at /Users/rafig/git/he/he/forms/base_form.js:722 (onSearch)
java.lang.IllegalArgumentException: rendering is already: true
   at com.servoy.j2db.server.ngclient.component.WebFormController.setRendering(WebFormController.java:224) ~[?:?]
   at com.servoy.j2db.server.ngclient.WebFormUI.writeAllComponentsChanges(WebFormUI.java:403) ~[?:?]
   at org.sablo.websocket.BaseWindow.writeAllComponentsChanges(BaseWindow.java:870) ~[sablo_8.4.0.3402.jar:?]
   at org.sablo.websocket.BaseWindow$4.writeJSONContent(BaseWindow.java:673) ~[sablo_8.4.0.3402.jar:?]
   at org.sablo.websocket.BaseWindow.sendMessageInternal(BaseWindow.java:508) ~[sablo_8.4.0.3402.jar:?]
   at org.sablo.websocket.BaseWindow.sendAsyncMessage(BaseWindow.java:482) ~[sablo_8.4.0.3402.jar:?]
   at org.sablo.websocket.BaseWindow.sendChanges(BaseWindow.java:663) ~[sablo_8.4.0.3402.jar:?]
   at com.servoy.j2db.server.ngclient.NGClientWindow.sendChanges(NGClientWindow.java:114) ~[servoy_ngclient_8.4.0.3402.jar:?]
   at com.servoy.j2db.server.ngclient.NGClient.updateUI(NGClient.java:1468) [servoy_ngclient_8.4.0.3402.jar:?]
   at com.servoy.j2db.scripting.JSApplication.js_updateUI(JSApplication.java:2997) [servoy_shared_8.4.0.3402.jar:?]
   at com.servoy.j2db.scripting.JSApplication.js_updateUI(JSApplication.java:2984) [servoy_shared_8.4.0.3402.jar:?]
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_131]
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_131]
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_131]
   at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_131]
   at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:138) [org.eclipse.dltk.javascript.rhino_8.4.0.3402.jar:?]
   at org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:292) [org.eclipse.dltk.javascript.rhino_8.4.0.3402.jar:?]
   at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:1487) [org.eclipse.dltk.javascript.rhino_8.4.0.3402.jar:?]
   at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:815) [org.eclipse.dltk.javascript.rhino_8.4.0.3402.jar:?]
   at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:109) [org.eclipse.dltk.javascript.rhino_8.4.0.3402.jar:?]
   at com.servoy.j2db.scripting.ScriptEngine.executeFunction(ScriptEngine.java:665) [servoy_shared_8.4.0.3402.jar:?]
   at com.servoy.j2db.debug.RemoteDebugScriptEngine.executeFunction(RemoteDebugScriptEngine.java:393) [servoy_debug_8.4.0.3402.jar:?]
   at com.servoy.j2db.BasicFormController.executeFunction(BasicFormController.java:1074) [servoy_shared_8.4.0.3402.jar:?]
   at com.servoy.j2db.BasicFormController.executeFormMethod(BasicFormController.java:790) [servoy_shared_8.4.0.3402.jar:?]
   at com.servoy.j2db.BasicFormController.executeOnRecordSelect(BasicFormController.java:688) [servoy_shared_8.4.0.3402.jar:?]
   at com.servoy.j2db.server.ngclient.component.WebFormController.refreshAllPartRenderers(WebFormController.java:270) [servoy_ngclient_8.4.0.3402.jar:?]
   at com.servoy.j2db.BasicFormController.setModel(BasicFormController.java:241) [servoy_shared_8.4.0.3402.jar:?]
   at com.servoy.j2db.BasicFormController.loadData(BasicFormController.java:1748) [servoy_shared_8.4.0.3402.jar:?]
   at com.servoy.j2db.BasicFormController.loadRecords(BasicFormController.java:1979) [servoy_shared_8.4.0.3402.jar:?]
   at com.servoy.j2db.server.ngclient.DataAdapterList.setRecord(DataAdapterList.java:549) [servoy_ngclient_8.4.0.3402.jar:?]
   at com.servoy.j2db.server.ngclient.component.WebFormController.refreshAllPartRenderers(WebFormController.java:263) [servoy_ngclient_8.4.0.3402.jar:?]
   at com.servoy.j2db.BasicFormController.valueChanged(BasicFormController.java:508) [servoy_shared_8.4.0.3402.jar:?]
   at com.servoy.j2db.BasicFormController.tableChanged(BasicFormController.java:459) [servoy_shared_8.4.0.3402.jar:?]
   at com.servoy.j2db.dataprocessing.TableAndListEventDelegate.fireTableModelEvent(TableAndListEventDelegate.java:76) [servoy_shared_8.4.0.3402.jar:?]
   at com.servoy.j2db.dataprocessing.TableAndListEventDelegate$1.run(TableAndListEventDelegate.java:169) [servoy_shared_8.4.0.3402.jar:?]
   at com.servoy.j2db.dataprocessing.TableAndListEventDelegate.fireTableAndListEvent(TableAndListEventDelegate.java:180) [servoy_shared_8.4.0.3402.jar:?]
   at com.servoy.j2db.dataprocessing.SwingFoundSet.fireFoundSetEvent(SwingFoundSet.java:161) [servoy_shared_8.4.0.3402.jar:?]
   at com.servoy.j2db.dataprocessing.FoundSet.fireFoundSetEvent(FoundSet.java:5558) [servoy_shared_8.4.0.3402.jar:?]
   at com.servoy.j2db.dataprocessing.FoundSet.completeFire(FoundSet.java:5667) [servoy_shared_8.4.0.3402.jar:?]
   at com.servoy.j2db.dataprocessing.FireCollector.done(FireCollector.java:70) [servoy_shared_8.4.0.3402.jar:?]
   at com.servoy.j2db.server.ngclient.DataAdapterList.setRecord(DataAdapterList.java:538) [servoy_ngclient_8.4.0.3402.jar:?]
   at com.servoy.j2db.server.ngclient.property.FoundsetDataAdapterList.setRecordQuietly(FoundsetDataAdapterList.java:62) [servoy_ngclient_8.4.0.3402.jar:?]
   at com.servoy.j2db.server.ngclient.property.FoundsetDataAdapterList.resetDALToSelectedIndexQuietly(FoundsetDataAdapterList.java:132) [servoy_ngclient_8.4.0.3402.jar:?]
   at com.servoy.j2db.server.ngclient.property.ViewportDataChangeMonitor.clearChanges(ViewportDataChangeMonitor.java:93) [servoy_ngclient_8.4.0.3402.jar:?]
   at com.servoy.j2db.server.ngclient.property.FoundsetLinkedTypeSabloValue.changesToJSON(FoundsetLinkedTypeSabloValue.java:596) [servoy_ngclient_8.4.0.3402.jar:?]
   at com.servoy.j2db.server.ngclient.property.FoundsetLinkedPropertyType.changesToJSON(FoundsetLinkedPropertyType.java:236) [servoy_ngclient_8.4.0.3402.jar:?]
   at com.servoy.j2db.server.ngclient.property.FoundsetLinkedPropertyType.changesToJSON(FoundsetLinkedPropertyType.java:1) [servoy_ngclient_8.4.0.3402.jar:?]
   at org.sablo.websocket.utils.JSONUtils$ChangesToJSONConverter.toJSONValue(JSONUtils.java:502) [sablo_8.4.0.3402.jar:?]
   at org.sablo.websocket.utils.JSONUtils.changesToBrowserJSONValue(JSONUtils.java:178) [sablo_8.4.0.3402.jar:?]
   at org.sablo.specification.property.CustomJSONObjectType.writeValueForChangedElements(CustomJSONObjectType.java:490) [sablo_8.4.0.3402.jar:?]
   at org.sablo.specification.property.CustomJSONObjectType.toJSON(CustomJSONObjectType.java:443) [sablo_8.4.0.3402.jar:?]
   at org.sablo.specification.property.CustomJSONObjectType.changesToJSON(CustomJSONObjectType.java:381) [sablo_8.4.0.3402.jar:?]
   at org.sablo.specification.property.CustomJSONObjectType.changesToJSON(CustomJSONObjectType.java:1) [sablo_8.4.0.3402.jar:?]
   at org.sablo.websocket.utils.JSONUtils$ChangesToJSONConverter.toJSONValue(JSONUtils.java:502) [sablo_8.4.0.3402.jar:?]
   at org.sablo.websocket.utils.JSONUtils.changesToBrowserJSONValue(JSONUtils.java:178) [sablo_8.4.0.3402.jar:?]
   at org.sablo.specification.property.CustomJSONArrayType.writeValues(CustomJSONArrayType.java:464) [sablo_8.4.0.3402.jar:?]
   at org.sablo.specification.property.CustomJSONArrayType.toJSON(CustomJSONArrayType.java:428) [sablo_8.4.0.3402.jar:?]
   at org.sablo.specification.property.CustomJSONArrayType.changesToJSON(CustomJSONArrayType.java:351) [sablo_8.4.0.3402.jar:?]
   at org.sablo.specification.property.CustomJSONArrayType.changesToJSON(CustomJSONArrayType.java:1) [sablo_8.4.0.3402.jar:?]
   at org.sablo.websocket.utils.JSONUtils$ChangesToJSONConverter.toJSONValue(JSONUtils.java:502) [sablo_8.4.0.3402.jar:?]
   at org.sablo.websocket.utils.JSONUtils$FullValueToJSONConverter.toJSONValue(JSONUtils.java:1) [sablo_8.4.0.3402.jar:?]
   at org.sablo.BaseWebObject.writeProperties(BaseWebObject.java:1046) [sablo_8.4.0.3402.jar:?]
   at org.sablo.BaseWebObject.writeOwnComponentChanges(BaseWebObject.java:1011) [sablo_8.4.0.3402.jar:?]
   at org.sablo.Container.writeAllComponentsChanges(Container.java:115) [sablo_8.4.0.3402.jar:?]
   at com.servoy.j2db.server.ngclient.WebFormUI.writeAllComponentsChanges(WebFormUI.java:405) [servoy_ngclient_8.4.0.3402.jar:?]
   at org.sablo.websocket.BaseWindow.writeAllComponentsChanges(BaseWindow.java:870) [sablo_8.4.0.3402.jar:?]
   at org.sablo.websocket.BaseWindow$4.writeJSONContent(BaseWindow.java:673) [sablo_8.4.0.3402.jar:?]
   at org.sablo.websocket.BaseWindow.sendMessageInternal(BaseWindow.java:508) [sablo_8.4.0.3402.jar:?]
   at org.sablo.websocket.BaseWindow.sendAsyncMessage(BaseWindow.java:482) [sablo_8.4.0.3402.jar:?]
   at org.sablo.websocket.BaseWindow.sendChanges(BaseWindow.java:663) [sablo_8.4.0.3402.jar:?]
   at com.servoy.j2db.server.ngclient.NGClientWindow.sendChanges(NGClientWindow.java:114) [servoy_ngclient_8.4.0.3402.jar:?]
   at com.servoy.j2db.server.ngclient.NGClient.updateUI(NGClient.java:1468) [servoy_ngclient_8.4.0.3402.jar:?]
   at com.servoy.j2db.scripting.JSApplication.js_updateUI(JSApplication.java:2997) [servoy_shared_8.4.0.3402.jar:?]
   at com.servoy.j2db.scripting.JSApplication.js_updateUI(JSApplication.java:2984) [servoy_shared_8.4.0.3402.jar:?]
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_131]
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_131]
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_131]
   at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_131]
   at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:138) [org.eclipse.dltk.javascript.rhino_8.4.0.3402.jar:?]
   at org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:292) [org.eclipse.dltk.javascript.rhino_8.4.0.3402.jar:?]
   at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:1487) [org.eclipse.dltk.javascript.rhino_8.4.0.3402.jar:?]
   at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:815) [org.eclipse.dltk.javascript.rhino_8.4.0.3402.jar:?]
   at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:109) [org.eclipse.dltk.javascript.rhino_8.4.0.3402.jar:?]
   at com.servoy.j2db.scripting.ScriptEngine.executeFunction(ScriptEngine.java:665) [servoy_shared_8.4.0.3402.jar:?]
   at com.servoy.j2db.debug.RemoteDebugScriptEngine.executeFunction(RemoteDebugScriptEngine.java:393) [servoy_debug_8.4.0.3402.jar:?]
   at com.servoy.j2db.BasicFormController.executeFunction(BasicFormController.java:1074) [servoy_shared_8.4.0.3402.jar:?]
   at com.servoy.j2db.BasicFormController.executeFormMethod(BasicFormController.java:790) [servoy_shared_8.4.0.3402.jar:?]
   at com.servoy.j2db.BasicFormController.executeOnRecordSelect(BasicFormController.java:688) [servoy_shared_8.4.0.3402.jar:?]
   at com.servoy.j2db.server.ngclient.component.WebFormController.refreshAllPartRenderers(WebFormController.java:270) [servoy_ngclient_8.4.0.3402.jar:?]
   at com.servoy.j2db.BasicFormController.valueChanged(BasicFormController.java:508) [servoy_shared_8.4.0.3402.jar:?]
   at com.servoy.j2db.BasicFormController.tableChanged(BasicFormController.java:459) [servoy_shared_8.4.0.3402.jar:?]
   at com.servoy.j2db.dataprocessing.TableAndListEventDelegate.fireTableModelEvent(TableAndListEventDelegate.java:76) [servoy_shared_8.4.0.3402.jar:?]
   at com.servoy.j2db.dataprocessing.TableAndListEventDelegate$1.run(TableAndListEventDelegate.java:159) [servoy_shared_8.4.0.3402.jar:?]
   at com.servoy.j2db.dataprocessing.TableAndListEventDelegate.fireTableAndListEvent(TableAndListEventDelegate.java:180) [servoy_shared_8.4.0.3402.jar:?]
   at com.servoy.j2db.dataprocessing.SwingFoundSet.fireFoundSetEvent(SwingFoundSet.java:152) [servoy_shared_8.4.0.3402.jar:?]
   at com.servoy.j2db.dataprocessing.FoundSet.fireFoundSetEvent(FoundSet.java:5553) [servoy_shared_8.4.0.3402.jar:?]
   at com.servoy.j2db.dataprocessing.FoundSet.fireDifference(FoundSet.java:5277) [servoy_shared_8.4.0.3402.jar:?]
   at com.servoy.j2db.dataprocessing.FoundSet.loadByQuery(FoundSet.java:2029) [servoy_shared_8.4.0.3402.jar:?]
   at com.servoy.j2db.dataprocessing.FoundSet.loadByQuery(FoundSet.java:1852) [servoy_shared_8.4.0.3402.jar:?]
   at com.servoy.j2db.dataprocessing.FoundSet.js_loadRecords(FoundSet.java:1495) [servoy_shared_8.4.0.3402.jar:?]
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_131]
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_131]
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_131]
   at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_131]
   at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:138) [org.eclipse.dltk.javascript.rhino_8.4.0.3402.jar:?]
   at org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:292) [org.eclipse.dltk.javascript.rhino_8.4.0.3402.jar:?]
   at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:1487) [org.eclipse.dltk.javascript.rhino_8.4.0.3402.jar:?]
   at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:815) [org.eclipse.dltk.javascript.rhino_8.4.0.3402.jar:?]
   at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:109) [org.eclipse.dltk.javascript.rhino_8.4.0.3402.jar:?]
   at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:399) [org.eclipse.dltk.javascript.rhino_8.4.0.3402.jar:?]
   at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3534) [org.eclipse.dltk.javascript.rhino_8.4.0.3402.jar:?]
   at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:107) [org.eclipse.dltk.javascript.rhino_8.4.0.3402.jar:?]
   at com.servoy.j2db.scripting.ScriptEngine.executeFunction(ScriptEngine.java:665) [servoy_shared_8.4.0.3402.jar:?]
   at com.servoy.j2db.debug.RemoteDebugScriptEngine.executeFunction(RemoteDebugScriptEngine.java:393) [servoy_debug_8.4.0.3402.jar:?]
   at com.servoy.j2db.server.ngclient.DataAdapterList.executeInlineScript(DataAdapterList.java:202) [servoy_ngclient_8.4.0.3402.jar:?]
   at com.servoy.j2db.server.ngclient.NGFormServiceHandler.executeMethod(NGFormServiceHandler.java:180) [servoy_ngclient_8.4.0.3402.jar:?]
   at org.sablo.websocket.WebsocketEndpoint$5.run(WebsocketEndpoint.java:371) [sablo_8.4.0.3402.jar:?]
   at org.sablo.eventthread.Event$1.run(Event.java:102) [sablo_8.4.0.3402.jar:?]
   at org.sablo.websocket.CurrentWindow.runForWindow(CurrentWindow.java:77) [sablo_8.4.0.3402.jar:?]
   at org.sablo.eventthread.Event.execute(Event.java:92) [sablo_8.4.0.3402.jar:?]
   at org.sablo.eventthread.EventDispatcher.dispatch(EventDispatcher.java:125) [sablo_8.4.0.3402.jar:?]
   at org.sablo.eventthread.EventDispatcher.run(EventDispatcher.java:89) [sablo_8.4.0.3402.jar:?]
   at com.servoy.j2db.server.ngclient.eventthread.NGEventDispatcher.run(NGEventDispatcher.java:55) [servoy_ngclient_8.4.0.3402.jar:?]
   at java.lang.Thread.run(Thread.java:748) [?:1.8.0_131]
ERROR com.servoy.j2db.util.Debug - rendering is already: false
   at /Users/rafig/git/he/he/forms/_base.js:483 (update_UI)
   at /Users/rafig/git/he/he/forms/_base.js:498 (onRecordSelection)
   at /Users/rafig/git/he/svySearch/svySearch.js:677
   at /Users/rafig/git/he/he/forms/base_form.js:722 (onSearch)
java.lang.IllegalArgumentException: rendering is already: false
   at com.servoy.j2db.server.ngclient.component.WebFormController.setRendering(WebFormController.java:224) ~[?:?]
   at com.servoy.j2db.server.ngclient.WebFormUI.writeAllComponentsChanges(WebFormUI.java:409) ~[?:?]
   at org.sablo.websocket.BaseWindow.writeAllComponentsChanges(BaseWindow.java:870) ~[sablo_8.4.0.3402.jar:?]
   at org.sablo.websocket.BaseWindow$4.writeJSONContent(BaseWindow.java:673) ~[sablo_8.4.0.3402.jar:?]
   at org.sablo.websocket.BaseWindow.sendMessageInternal(BaseWindow.java:508) ~[sablo_8.4.0.3402.jar:?]
   at org.sablo.websocket.BaseWindow.sendAsyncMessage(BaseWindow.java:482) ~[sablo_8.4.0.3402.jar:?]
   at org.sablo.websocket.BaseWindow.sendChanges(BaseWindow.java:663) ~[sablo_8.4.0.3402.jar:?]
   at com.servoy.j2db.server.ngclient.NGClientWindow.sendChanges(NGClientWindow.java:114) ~[servoy_ngclient_8.4.0.3402.jar:?]
   at com.servoy.j2db.server.ngclient.NGClient.updateUI(NGClient.java:1468) [servoy_ngclient_8.4.0.3402.jar:?]
   at com.servoy.j2db.scripting.JSApplication.js_updateUI(JSApplication.java:2997) [servoy_shared_8.4.0.3402.jar:?]
   at com.servoy.j2db.scripting.JSApplication.js_updateUI(JSApplication.java:2984) [servoy_shared_8.4.0.3402.jar:?]
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_131]
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_131]
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_131]
   at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_131]
   at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:138) [org.eclipse.dltk.javascript.rhino_8.4.0.3402.jar:?]
   at org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:292) [org.eclipse.dltk.javascript.rhino_8.4.0.3402.jar:?]
   at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:1487) [org.eclipse.dltk.javascript.rhino_8.4.0.3402.jar:?]
   at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:815) [org.eclipse.dltk.javascript.rhino_8.4.0.3402.jar:?]
   at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:109) [org.eclipse.dltk.javascript.rhino_8.4.0.3402.jar:?]
   at com.servoy.j2db.scripting.ScriptEngine.executeFunction(ScriptEngine.java:665) [servoy_shared_8.4.0.3402.jar:?]
   at com.servoy.j2db.debug.RemoteDebugScriptEngine.executeFunction(RemoteDebugScriptEngine.java:393) [servoy_debug_8.4.0.3402.jar:?]
   at com.servoy.j2db.BasicFormController.executeFunction(BasicFormController.java:1074) [servoy_shared_8.4.0.3402.jar:?]
   at com.servoy.j2db.BasicFormController.executeFormMethod(BasicFormController.java:790) [servoy_shared_8.4.0.3402.jar:?]
   at com.servoy.j2db.BasicFormController.executeOnRecordSelect(BasicFormController.java:688) [servoy_shared_8.4.0.3402.jar:?]
   at com.servoy.j2db.server.ngclient.component.WebFormController.refreshAllPartRenderers(WebFormController.java:270) [servoy_ngclient_8.4.0.3402.jar:?]
   at com.servoy.j2db.BasicFormController.valueChanged(BasicFormController.java:508) [servoy_shared_8.4.0.3402.jar:?]
   at com.servoy.j2db.BasicFormController.tableChanged(BasicFormController.java:459) [servoy_shared_8.4.0.3402.jar:?]
   at com.servoy.j2db.dataprocessing.TableAndListEventDelegate.fireTableModelEvent(TableAndListEventDelegate.java:76) [servoy_shared_8.4.0.3402.jar:?]
   at com.servoy.j2db.dataprocessing.TableAndListEventDelegate$1.run(TableAndListEventDelegate.java:159) [servoy_shared_8.4.0.3402.jar:?]
   at com.servoy.j2db.dataprocessing.TableAndListEventDelegate.fireTableAndListEvent(TableAndListEventDelegate.java:180) [servoy_shared_8.4.0.3402.jar:?]
   at com.servoy.j2db.dataprocessing.SwingFoundSet.fireFoundSetEvent(SwingFoundSet.java:152) [servoy_shared_8.4.0.3402.jar:?]
   at com.servoy.j2db.dataprocessing.FoundSet.fireFoundSetEvent(FoundSet.java:5553) [servoy_shared_8.4.0.3402.jar:?]
   at com.servoy.j2db.dataprocessing.FoundSet.fireDifference(FoundSet.java:5277) [servoy_shared_8.4.0.3402.jar:?]
   at com.servoy.j2db.dataprocessing.FoundSet.loadByQuery(FoundSet.java:2029) [servoy_shared_8.4.0.3402.jar:?]
   at com.servoy.j2db.dataprocessing.FoundSet.loadByQuery(FoundSet.java:1852) [servoy_shared_8.4.0.3402.jar:?]
   at com.servoy.j2db.dataprocessing.FoundSet.js_loadRecords(FoundSet.java:1495) [servoy_shared_8.4.0.3402.jar:?]
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_131]
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_131]
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_131]
   at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_131]
   at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:138) [org.eclipse.dltk.javascript.rhino_8.4.0.3402.jar:?]
   at org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:292) [org.eclipse.dltk.javascript.rhino_8.4.0.3402.jar:?]
   at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:1487) [org.eclipse.dltk.javascript.rhino_8.4.0.3402.jar:?]
   at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:815) [org.eclipse.dltk.javascript.rhino_8.4.0.3402.jar:?]
   at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:109) [org.eclipse.dltk.javascript.rhino_8.4.0.3402.jar:?]
   at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:399) [org.eclipse.dltk.javascript.rhino_8.4.0.3402.jar:?]
   at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3534) [org.eclipse.dltk.javascript.rhino_8.4.0.3402.jar:?]
   at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:107) [org.eclipse.dltk.javascript.rhino_8.4.0.3402.jar:?]
   at com.servoy.j2db.scripting.ScriptEngine.executeFunction(ScriptEngine.java:665) [servoy_shared_8.4.0.3402.jar:?]
   at com.servoy.j2db.debug.RemoteDebugScriptEngine.executeFunction(RemoteDebugScriptEngine.java:393) [servoy_debug_8.4.0.3402.jar:?]
   at com.servoy.j2db.server.ngclient.DataAdapterList.executeInlineScript(DataAdapterList.java:202) [servoy_ngclient_8.4.0.3402.jar:?]
   at com.servoy.j2db.server.ngclient.NGFormServiceHandler.executeMethod(NGFormServiceHandler.java:180) [servoy_ngclient_8.4.0.3402.jar:?]
   at org.sablo.websocket.WebsocketEndpoint$5.run(WebsocketEndpoint.java:371) [sablo_8.4.0.3402.jar:?]
   at org.sablo.eventthread.Event$1.run(Event.java:102) [sablo_8.4.0.3402.jar:?]
   at org.sablo.websocket.CurrentWindow.runForWindow(CurrentWindow.java:77) [sablo_8.4.0.3402.jar:?]
   at org.sablo.eventthread.Event.execute(Event.java:92) [sablo_8.4.0.3402.jar:?]
   at org.sablo.eventthread.EventDispatcher.dispatch(EventDispatcher.java:125) [sablo_8.4.0.3402.jar:?]
   at org.sablo.eventthread.EventDispatcher.run(EventDispatcher.java:89) [sablo_8.4.0.3402.jar:?]
   at com.servoy.j2db.server.ngclient.eventthread.NGEventDispatcher.run(NGEventDispatcher.java:55) [servoy_ngclient_8.4.0.3402.jar:?]
   at java.lang.Thread.run(Thread.java:748) [?:1.8.0_131]
WARN org.sablo.specification.property.CustomJSONPropertyType - Cannot set property 'displayValue' of custom JSON Object as it's type is undefined. Update JSON: {"vEr":2,"u":[{"v":"","k":"displayValue"}]}
ERROR com.servoy.j2db.util.Debug - Throwable java.io.EOFException: null
   at org.apache.tomcat.util.net.NioEndpoint$NioSocketWrapper.fillReadBuffer(NioEndpoint.java:1224) ~[tomcat-coyote.jar:8.5.9]
   at org.apache.tomcat.util.net.NioEndpoint$NioSocketWrapper.read(NioEndpoint.java:1164) ~[tomcat-coyote.jar:8.5.9]
   at org.apache.tomcat.websocket.server.WsFrameServer.onDataAvailable(WsFrameServer.java:62) ~[tomcat-websocket.jar:8.5.9]
   at org.apache.tomcat.websocket.server.WsHttpUpgradeHandler.upgradeDispatch(WsHttpUpgradeHandler.java:148) [tomcat-websocket.jar:8.5.9]
   at org.apache.coyote.http11.upgrade.UpgradeProcessorInternal.dispatch(UpgradeProcessorInternal.java:54) [tomcat-coyote.jar:8.5.9]
   at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:53) [tomcat-coyote.jar:8.5.9]
   at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:789) [tomcat-coyote.jar:8.5.9]
   at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1437) [tomcat-coyote.jar:8.5.9]
   at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49) [tomcat-coyote.jar:8.5.9]
   at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [?:1.8.0_131]
   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [?:1.8.0_131]
   at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) [tomcat-util.jar:8.5.9]
   at java.lang.Thread.run(Thread.java:748) [?:1.8.0_131]

This may be nothing to do with the svySearch, as something very similar also happens when I call some other code that displays a form in a 'dialog' (using a window).
It might be because 'onRecordSelection' is called multiple times, which itself just calls 'updateUI' which ends in a 'application.updateUI()' call. This happens multiple times, I think, because there is a record select that happens in the table form, the detail form & also the base form.
BUT, I'm sure this wasn't happening at some point earlier (I did update my macOS Java to Version 8 Update 201, but server in cloud it is running on is on java.version=1.8.0_191) [I also had to do the test for Johan of updated http plug-in, but think I rolled my developer back to normal install]
When I commented out the final 'application.UpdateUI()', I still got this weird error (that is in above dump)
Code: Select all
WARN org.sablo.specification.property.CustomJSONPropertyType - Cannot set property 'displayValue' of custom JSON Object as it's type is undefined. Update JSON: {"vEr":2,"u":[{"v":"","k":"displayValue"}]}

which I think is being thrown from a Servoy component (navbar??)
I was also wrapping the 'search' [
Code: Select all
search.loadRecords(scopes.he.he_formFoundset);
] in a plugins.svyBlockUI as some take a long time, but I commented them out as well to test.

Anyone else having this issue, or anyone from Servoy with an idea??
[A key issue with this 'error' is that NGClient doesn't then work correctly after, so when the user tries to do other things after this is thrown, they don't work & they have to quit & re-open solution :(

Thanks
Rafi
You do not have the required permissions to view the files attached to this post.
Servoy Certified Developer
Image
rafig
 
Posts: 529
Joined: Mon Dec 22, 2003 12:58 pm
Location: Watford, UK

Return to Servoy NGClient

Who is online

Users browsing this forum: No registered users and 2 guests