LMS

Welcome to the Lobeo Module Server project. Please feel free to submit bugs related to it.
   | Tasklist |   

FS#343 - typeof seems to not work with a java object

Attached to Project: LMS
Opened by Guillaume (Guillaume) - Tuesday, 27 March 2012, 13:25 GMT
Last edited by Guillaume (Guillaume) - Wednesday, 25 April 2012, 07:56 GMT
Task Type Bug Report
Category
Status Closed
Assigned To Ferdinand (PaGaisu)
Operating System All
Severity Medium
Priority Normal
Reported Version alpha4
Due in Version alpha5
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

hi,

javasccript typeof operator seems to not work with a java object

org.mozilla.javascript.EvaluatorException: Valeur JavaScript de type com.lobeo.lms.masterserver.dbo.Server incorrecte (Library [com.lobeo.lms.wtk.lib.component.SimpleListRenderer]#47)
at org.mozilla.javascript.DefaultErrorReporter.runtimeError(DefaultErrorReporter.java:109)
at org.mozilla.javascript.Context.reportRuntimeError(Context.java:945)
at org.mozilla.javascript.Context.reportRuntimeError(Context.java:1001)
at org.mozilla.javascript.Context.reportRuntimeError1(Context.java:964)
at org.mozilla.javascript.ScriptRuntime.errorWithClassName(ScriptRuntime.java:4057)
at org.mozilla.javascript.ScriptRuntime.typeof(ScriptRuntime.java:2621)
at org.mozilla.javascript.ScriptRuntime.typeofName(ScriptRuntime.java:2633)
at org.mozilla.javascript.gen.Library__com_lobeo_lms_wtk_lib_component_SimpleListRenderer__344._c_anonymous_3(Library [com.lobeo.lms.wtk.lib.component.SimpleListRenderer]:47)
at org.mozilla.javascript.gen.Library__com_lobeo_lms_wtk_lib_component_SimpleListRenderer__344.call(Library [com.lobeo.lms.wtk.lib.component.SimpleListRenderer])
at org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:66)
at org.mozilla.javascript.gen.Library__com_lobeo_lms_wtk_lib_component_SimpleList__343._c_anonymous_5(Library [com.lobeo.lms.wtk.lib.component.SimpleList]:73)
at org.mozilla.javascript.gen.Library__com_lobeo_lms_wtk_lib_component_SimpleList__343.call(Library [com.lobeo.lms.wtk.lib.component.SimpleList])
at org.mozilla.javascript.JavaAdapter.doCall(JavaAdapter.java:614)
at org.mozilla.javascript.JavaAdapter.callMethod(JavaAdapter.java:576)
at adapter1.addItem(<adapter>)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:161)
at org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:254)
at org.mozilla.javascript.optimizer.OptRuntime.call2(OptRuntime.java:76)
at org.mozilla.javascript.gen.Library__com_lobeo_lms_wtk_lib_component_SimpleList__343._c_anonymous_4(Library [com.lobeo.lms.wtk.lib.component.SimpleList]:63)
at org.mozilla.javascript.gen.Library__com_lobeo_lms_wtk_lib_component_SimpleList__343.call(Library [com.lobeo.lms.wtk.lib.component.SimpleList])
at org.mozilla.javascript.NativeArray.iterativeMethod(NativeArray.java:1563)
at org.mozilla.javascript.NativeArray.execIdCall(NativeArray.java:345)
at org.mozilla.javascript.IdFunctionObject.call(IdFunctionObject.java:129)
at org.mozilla.javascript.optimizer.OptRuntime.call2(OptRuntime.java:76)
at org.mozilla.javascript.gen.Library__com_google_structs_StructsUtil__346._c_anonymous_8(Library [com.google.structs.StructsUtil]:182)
at org.mozilla.javascript.gen.Library__com_google_structs_StructsUtil__346.call(Library [com.google.structs.StructsUtil])
at org.mozilla.javascript.optimizer.OptRuntime.callN(OptRuntime.java:86)
at org.mozilla.javascript.gen.Library__com_lobeo_lms_wtk_lib_component_SimpleList__343._c_anonymous_3(Library [com.lobeo.lms.wtk.lib.component.SimpleList]:62)
at org.mozilla.javascript.gen.Library__com_lobeo_lms_wtk_lib_component_SimpleList__343.call(Library [com.lobeo.lms.wtk.lib.component.SimpleList])
at org.mozilla.javascript.JavaAdapter.doCall(JavaAdapter.java:614)
at org.mozilla.javascript.JavaAdapter.callMethod(JavaAdapter.java:576)
at adapter1.addItems(<adapter>)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:161)
at org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:254)
at org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:66)
at org.mozilla.javascript.gen._G__LMS_bin____repo_modules_cloud_cloud_js_332._c_anonymous_3(/G:/LMS/bin/../repo-modules/cloud/cloud.js:71)
at org.mozilla.javascript.gen._G__LMS_bin____repo_modules_cloud_cloud_js_332.call(/G:/LMS/bin/../repo-modules/cloud/cloud.js)
at org.mozilla.javascript.JavaAdapter.doCall(JavaAdapter.java:614)
at org.mozilla.javascript.JavaAdapter.callMethod(JavaAdapter.java:576)
at adapter1.onClientConnect(<adapter>)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:161)
at org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:254)
at org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:66)
at org.mozilla.javascript.gen._G__LMS_bin____repo_modules_cloud_cloud_js_332._c_anonymous_2(/G:/LMS/bin/../repo-modules/cloud/cloud.js:45)
at org.mozilla.javascript.gen._G__LMS_bin____repo_modules_cloud_cloud_js_332.call(/G:/LMS/bin/../repo-modules/cloud/cloud.js)
at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:426)
at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3178)
at org.mozilla.javascript.gen._G__LMS_bin____repo_modules_cloud_cloud_js_332.call(/G:/LMS/bin/../repo-modules/cloud/cloud.js)
at com.lobeo.lms.script.handler.ScriptWrapper.handleJSCallBlocking(ScriptWrapper.java:554)
at com.lobeo.lms.script.handler.ScriptWrapper.run(ScriptWrapper.java:491)
at java.lang.Thread.run(Unknown Source)
This task depends upon

Closed by  Guillaume (Guillaume)
Wednesday, 25 April 2012, 07:56 GMT
Reason for closing:  Fixed
Comment by Ferdinand (PaGaisu) - Wednesday, 28 March 2012, 18:49 GMT
Needs a code sample
Comment by Ferdinand (PaGaisu) - Wednesday, 28 March 2012, 20:16 GMT
all good, i reproduced the issue

Loading...