org.mozilla.javascript.EcmaError: TypeError: Cannot find function keys in object function Object() { [native code for Object.Object, arity=1] } . (<cmd>#11)

Stack Overflow | endrilian | 4 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Object.keys function in JS file that runs from Java

    Stack Overflow | 4 years ago | endrilian
    org.mozilla.javascript.EcmaError: TypeError: Cannot find function keys in object function Object() { [native code for Object.Object, arity=1] } . (<cmd>#11)
  2. 0

    Using Java objects in Javascript

    Google Groups | 8 years ago | Jonathan Scott
    org.mozilla.javascript.EcmaError: TypeError: Cannot find function print in object LiveSite@e70e30.
  3. 0

    TypeError: Cannot find function invoke in object Duplicate. (initialscript.js#45)

    YouTrack | 6 years ago
    org.mozilla.javascript.EcmaError: TypeError: Cannot find function invoke in object Duplicate. (initialscript.js#45)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Error while loading script for rule [jetbrains-youtrack-additionalNotifications->Notify on issue reassign]

    YouTrack | 5 years ago
    jetbrains.mps.webr.runtime.templateComponent.LogicException: Error while loading script for rule [jetbrains-youtrack-additionalNotifications->Notify on issue reassign]
  6. 0

    I have used the following expression to test derived variables: $('Admin.Participant.birthYear').lt($('Admin.Participant.appointmentDate').year().minus($('Admin.Participant.birthYear'))) .or($('Admin.Participant.birthYear').lt($('Admin.Participant.appointmentDate').year().minus($('Admin.Participant.birthYear')))) The result is : (false) or (false) = false When I replace the "or" operator by "equals" in the expression I would expect the following result: (false) equals (false) = true However, I get the following the following error : org.mozilla.javascript.EcmaError: TypeError: Cannot find function equals in object false. (numericMethodTest#14) at org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3654) at org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3632) at org.mozilla.javascript.ScriptRuntime.typeError(ScriptRuntime.java:3660) at org.mozilla.javascript.ScriptRuntime.typeError2(ScriptRuntime.java:3679) at org.mozilla.javascript.ScriptRuntime.notFunctionError(ScriptRuntime.java:3743) at org.mozilla.javascript.ScriptRuntime.getPropFunctionAndThisHelper(ScriptRuntime.java:2247) at org.mozilla.javascript.ScriptRuntime.getPropFunctionAndThis(ScriptRuntime.java:2214) at org.mozilla.javascript.gen.c8._c0(numericMethodTest:14) at org.mozilla.javascript.gen.c8.call(numericMethodTest) at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:398) at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3065) at org.mozilla.javascript.gen.c8.call(numericMethodTest) at org.mozilla.javascript.gen.c8.exec(numericMethodTest) at org.obiba.magma.js.JavascriptValueSource$1.run(JavascriptValueSource.java:68) at org.mozilla.javascript.Context.call(Context.java:515) at org.mozilla.javascript.ContextFactory.call(ContextFactory.java:507) at org.obiba.magma.js.JavascriptValueSource.getValue(JavascriptValueSource.java:60) at org.obiba.magma.views.View.getListValue(View.java:219) at org.obiba.magma.views.View.getValue(View.java:198) at org.obiba.magma.support.AbstractValueTableWrapper.getValue(AbstractValueTableWrapper.java:30) at org.obiba.magma.views.View.getValue(View.java:205) at org.obiba.magma.support.DatasourceCopier.copy(DatasourceCopier.java:186) at org.obiba.magma.support.DatasourceCopier.copy(DatasourceCopier.java:164) at org.obiba.magma.support.DatasourceCopier.copy(DatasourceCopier.java:144) at org.obiba.magma.support.DatasourceCopier.copy(DatasourceCopier.java:130) at org.obiba.opal.core.service.impl.DefaultExportServiceImpl.exportTablesToDatasource(DefaultExportServiceImpl.java:71) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204) at $Proxy41.exportTablesToDatasource(Unknown Source) at org.obiba.opal.shell.commands.CopyCommand.execute(CopyCommand.java:58) at org.obiba.opal.shell.AbstractOpalShell.executeCommand(AbstractOpalShell.java:97) at org.obiba.opal.shell.AbstractOpalShell.run(AbstractOpalShell.java:51) at java.lang.Thread.run(Thread.java:619)

    JIRA | 7 years ago | Martin Boulanger
    org.mozilla.javascript.EcmaError: TypeError: Cannot find function equals in object false. (numericMethodTest#14)

  1. Juraji 5 times, last 12 months ago
1 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. org.mozilla.javascript.EcmaError

    TypeError: Cannot find function keys in object function Object() { [native code for Object.Object, arity=1] } . (<cmd>#11)

    at org.mozilla.javascript.ScriptRuntime.constructError()
  2. Rhino
    ScriptRuntime.getPropFunctionAndThis
    1. org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3654)
    2. org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3632)
    3. org.mozilla.javascript.ScriptRuntime.typeError(ScriptRuntime.java:3660)
    4. org.mozilla.javascript.ScriptRuntime.typeError2(ScriptRuntime.java:3679)
    5. org.mozilla.javascript.ScriptRuntime.notFunctionError(ScriptRuntime.java:3743)
    6. org.mozilla.javascript.ScriptRuntime.getPropFunctionAndThisHelper(ScriptRuntime.java:2247)
    7. org.mozilla.javascript.ScriptRuntime.getPropFunctionAndThis(ScriptRuntime.java:2214)
    7 frames