Project

General

Profile

Defect #788

Error on initialization on MacOSX/Java 7 when running from server

Added by Nicola Gervasi about 6 years ago. Updated over 5 years ago.

Status:
New
Priority:
High
Assignee:
-
Start date:
02/19/2014
Due date:
% Done:

0%

Estimated time:
Browser (if web client):

Description

In Windows everything is fine, in Mac Developer everything is fine but when running from Server (7.3/7.4rc2) using a MacOS client (java 1.7) I get the following error:

java.lang.ExceptionInInitializerError
at com.servoy.extensions.beans.treeview.TreeView.getBeanInstance(Unknown Source)
at com.servoy.j2db.component.ComponentFactory.createBean(ComponentFactory.java:2334)
at com.servoy.j2db.component.ComponentFactory.createComponentEx(ComponentFactory.java:372)
at com.servoy.j2db.component.ComponentFactory.createComponent(ComponentFactory.java:257)
at com.servoy.j2db.smart.dataui.DataRendererFactory.placeElements(DataRendererFactory.java:300)
at com.servoy.j2db.smart.dataui.DataRendererFactory.completeRenderers(DataRendererFactory.java:266)
at com.servoy.j2db.FormController.createDataRenderers(FormController.java:448)
at com.servoy.j2db.FormController.init(FormController.java:278)
at com.servoy.j2db.FormManager.leaseFormPanel(FormManager.java:920)
at com.servoy.j2db.FormManager.leaseFormPanel(FormManager.java:1)
at com.servoy.j2db.scripting.CreationalPrototype.get(CreationalPrototype.java:171)
at org.mozilla.javascript.ScriptableObject.getProperty(ScriptableObject.java:2141)
at org.mozilla.javascript.ScriptRuntime.getObjectProp(ScriptRuntime.java:1518)
at org.mozilla.javascript.ScriptRuntime.getObjectProp(ScriptRuntime.java:1505)
at org.mozilla.javascript.gen.SintProFramework_forms_nav_web2_navInit_8._c_navInit_0(Unknown Source)
at org.mozilla.javascript.gen.SintProFramework_forms_nav_web2_navInit_8.call(Unknown Source)
at org.mozilla.javascript.optimizer.OptRuntime.callName0(OptRuntime.java:97)
at org.mozilla.javascript.gen.SintProFramework_forms_nav_web2_init_7._c_init_0(Unknown Source)
at org.mozilla.javascript.gen.SintProFramework_forms_nav_web2_init_7.call(Unknown Source)
at org.mozilla.javascript.optimizer.OptRuntime.callProp0(OptRuntime.java:107)
at org.mozilla.javascript.gen.SintProFramework_scopes_globals_frameworkInit_4._c_frameworkInit_0(SintProFramework/scopes/globals/frameworkInit:243)
at org.mozilla.javascript.gen.SintProFramework_scopes_globals_frameworkInit_4.call(SintProFramework/scopes/globals/frameworkInit)
at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:406)
at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3204)
at org.mozilla.javascript.gen.SintProFramework_scopes_globals_frameworkInit_4.call(SintProFramework/scopes/globals/frameworkInit)
at com.servoy.j2db.scripting.ScriptEngine.executeFunction(ScriptEngine.java:626)
at com.servoy.j2db.scripting.ScopesScope.executeGlobalFunction(ScopesScope.java:164)
at com.servoy.j2db.FormManager.makeSolutionSettings(FormManager.java:360)
at com.servoy.j2db.smart.SwingFormManager.makeSolutionSettings(SwingFormManager.java:179)
at com.servoy.j2db.FormManager$1.run(FormManager.java:168)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:251)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:733)
at java.awt.EventQueue.access$200(EventQueue.java:103)
at java.awt.EventQueue$3.run(EventQueue.java:694)
at java.awt.EventQueue$3.run(EventQueue.java:692)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:703)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)
Caused by: java.lang.NullPointerException
at com.servoy.extensions.beans.treeview.SwingTreeView.<clinit>(Unknown Source)
... 44 more

feb 19, 2014 5:34:27 PM com.servoy.j2db.util.Debug error
SEVERE: Throwable, script stacktrace:
at SintProFramework/scopes/globals/frameworkInit:243 (frameworkInit)

Exception Object: org.mozilla.javascript.EcmaError: TypeError: Cannot call method "setDataSet" of undefined (SintProFramework/scopes/globals/frameworkInit#243)
MSG: TypeError: Cannot call method "setDataSet" of undefined (SintProFramework/scopes/globals/frameworkInit#243)
StackTrace: [org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3772),org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3756),org.mozilla.javascript.ScriptRuntime.typeError(ScriptRuntime.java:3777),org.mozilla.javascript.ScriptRuntime.typeError2(ScriptRuntime.java:3793),org.mozilla.javascript.ScriptRuntime.undefCallError(ScriptRuntime.java:3809),org.mozilla.javascript.ScriptRuntime.getPropFunctionAndThisHelper(ScriptRuntime.java:2289),org.mozilla.javascript.ScriptRuntime.getPropFunctionAndThis(ScriptRuntime.java:2283),org.mozilla.javascript.gen.SintProFramework_forms_nav_web2_navInit_8._c_navInit_0(Unknown Source),org.mozilla.javascript.gen.SintProFramework_forms_nav_web2_navInit_8.call(Unknown Source),org.mozilla.javascript.optimizer.OptRuntime.callName0(OptRuntime.java:97),org.mozilla.javascript.gen.SintProFramework_forms_nav_web2_init_7._c_init_0(Unknown Source),org.mozilla.javascript.gen.SintProFramework_forms_nav_web2_init_7.call(Unknown Source),org.mozilla.javascript.optimizer.OptRuntime.callProp0(OptRuntime.java:107),org.mozilla.javascript.gen.SintProFramework_scopes_globals_frameworkInit_4._c_frameworkInit_0(SintProFramework/scopes/globals/frameworkInit:243),org.mozilla.javascript.gen.SintProFramework_scopes_globals_frameworkInit_4.call(SintProFramework/scopes/globals/frameworkInit),org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:406),org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3204),org.mozilla.javascript.gen.SintProFramework_scopes_globals_frameworkInit_4.call(SintProFramework/scopes/globals/frameworkInit),com.servoy.j2db.scripting.ScriptEngine.executeFunction(ScriptEngine.java:626),com.servoy.j2db.scripting.ScopesScope.executeGlobalFunction(ScopesScope.java:164),com.servoy.j2db.FormManager.makeSolutionSettings(FormManager.java:360),com.servoy.j2db.smart.SwingFormManager.makeSolutionSettings(SwingFormManager.java:179),com.servoy.j2db.FormManager$1.run(FormManager.java:168),java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:251),java.awt.EventQueue.dispatchEventImpl(EventQueue.java:733),java.awt.EventQueue.access$200(EventQueue.java:103),java.awt.EventQueue$3.run(EventQueue.java:694),java.awt.EventQueue$3.run(EventQueue.java:692),java.security.AccessController.doPrivileged(Native Method),java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76),java.awt.EventQueue.dispatchEvent(EventQueue.java:703),java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242),java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161),java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150),java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146),java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138),java.awt.EventDispatchThread.run(EventDispatchThread.java:91)]
feb 19, 2014 5:34:28 PM com.servoy.j2db.util.Debug error
SEVERE: TypeError: Cannot read property "controller" from
org.mozilla.javascript.EcmaError: TypeError: Cannot read property "controller" from
at org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3772)
at org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3756)
at org.mozilla.javascript.ScriptRuntime.typeError(ScriptRuntime.java:3777)
at org.mozilla.javascript.ScriptRuntime.typeError2(ScriptRuntime.java:3793)
at org.mozilla.javascript.ScriptRuntime.undefReadError(ScriptRuntime.java:3804)
at org.mozilla.javascript.ScriptRuntime.getObjectProp(ScriptRuntime.java:1503)
at org.mozilla.javascript.gen.SintProFramework_scopes_nav_getActiveForm_10._c_getActiveForm_0(Unknown Source)
at org.mozilla.javascript.gen.SintProFramework_scopes_nav_getActiveForm_10.call(Unknown Source)
at org.mozilla.javascript.optimizer.OptRuntime.callProp0(OptRuntime.java:107)
at org.mozilla.javascript.gen.SintProFramework_scopes_globals_onErrorHandler_9._c_onErrorHandler_0(Unknown Source)
at org.mozilla.javascript.gen.SintProFramework_scopes_globals_onErrorHandler_9.call(Unknown Source)
at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:406)
at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3204)
at org.mozilla.javascript.gen.SintProFramework_scopes_globals_onErrorHandler_9.call(Unknown Source)
at com.servoy.j2db.scripting.ScriptEngine.executeFunction(ScriptEngine.java:626)
at com.servoy.j2db.scripting.ScopesScope.executeGlobalFunction(ScopesScope.java:164)
at com.servoy.j2db.ClientState.handleException(ClientState.java:1636)
at com.servoy.j2db.scripting.ScriptEngine.executeFunction(ScriptEngine.java:640)
at com.servoy.j2db.scripting.ScopesScope.executeGlobalFunction(ScopesScope.java:164)
at com.servoy.j2db.FormManager.makeSolutionSettings(FormManager.java:360)
at com.servoy.j2db.smart.SwingFormManager.makeSolutionSettings(SwingFormManager.java:179)
at com.servoy.j2db.FormManager$1.run(FormManager.java:168)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:251)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:733)
at java.awt.EventQueue.access$200(EventQueue.java:103)
at java.awt.EventQueue$3.run(EventQueue.java:694)
at java.awt.EventQueue$3.run(EventQueue.java:692)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:703)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)

History

#1

Updated by Marc Boegem over 5 years ago

This is not only on server, but also in developer.
Point here is that it just doesn't work in Java 7.

Since developer previous to 7.4 was based on an eclipse version that didn't install using Java 7, it seemed like this was only a server issue.
But the same error occurs in Servoy 7.4.x developer using Java 7

Also available in: Atom PDF