org.mozilla.javascript.EcmaError: TypeError: Cannot find function equals in object false. (numericMethodTest#14)

JIRA | Martin Boulanger | 7 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

    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)
  2. 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)
  3. 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.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 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)
  6. 0

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

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

  1. Juraji 5 times, last 11 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 equals in object false. (numericMethodTest#14)

    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
  3. org.mozilla.javascript
    c8.call
    1. org.mozilla.javascript.gen.c8._c0(numericMethodTest:14)
    2. org.mozilla.javascript.gen.c8.call(numericMethodTest)
    2 frames
  4. Rhino
    ScriptRuntime.doTopCall
    1. org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:398)
    2. org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3065)
    2 frames
  5. org.mozilla.javascript
    c8.exec
    1. org.mozilla.javascript.gen.c8.call(numericMethodTest)
    2. org.mozilla.javascript.gen.c8.exec(numericMethodTest)
    2 frames
  6. org.obiba.magma
    JavascriptValueSource$1.run
    1. org.obiba.magma.js.JavascriptValueSource$1.run(JavascriptValueSource.java:68)
    1 frame
  7. Rhino
    ContextFactory.call
    1. org.mozilla.javascript.Context.call(Context.java:515)
    2. org.mozilla.javascript.ContextFactory.call(ContextFactory.java:507)
    2 frames
  8. org.obiba.magma
    DatasourceCopier.copy
    1. org.obiba.magma.js.JavascriptValueSource.getValue(JavascriptValueSource.java:60)
    2. org.obiba.magma.views.View.getListValue(View.java:219)
    3. org.obiba.magma.views.View.getValue(View.java:198)
    4. org.obiba.magma.support.AbstractValueTableWrapper.getValue(AbstractValueTableWrapper.java:30)
    5. org.obiba.magma.views.View.getValue(View.java:205)
    6. org.obiba.magma.support.DatasourceCopier.copy(DatasourceCopier.java:186)
    7. org.obiba.magma.support.DatasourceCopier.copy(DatasourceCopier.java:164)
    8. org.obiba.magma.support.DatasourceCopier.copy(DatasourceCopier.java:144)
    9. org.obiba.magma.support.DatasourceCopier.copy(DatasourceCopier.java:130)
    9 frames
  9. org.obiba.opal
    DefaultExportServiceImpl.exportTablesToDatasource
    1. org.obiba.opal.core.service.impl.DefaultExportServiceImpl.exportTablesToDatasource(DefaultExportServiceImpl.java:71)
    1 frame
  10. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    4. java.lang.reflect.Method.invoke(Method.java:597)
    4 frames
  11. Spring AOP
    ReflectiveMethodInvocation.proceed
    1. org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)
    2. org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
    3. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
    3 frames
  12. Spring Tx
    TransactionInterceptor.invoke
    1. org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106)
    1 frame
  13. Spring AOP
    JdkDynamicAopProxy.invoke
    1. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
    2. org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
    2 frames
  14. Unknown
    $Proxy41.exportTablesToDatasource
    1. $Proxy41.exportTablesToDatasource(Unknown Source)
    1 frame
  15. org.obiba.opal
    AbstractOpalShell.run
    1. org.obiba.opal.shell.commands.CopyCommand.execute(CopyCommand.java:58)
    2. org.obiba.opal.shell.AbstractOpalShell.executeCommand(AbstractOpalShell.java:97)
    3. org.obiba.opal.shell.AbstractOpalShell.run(AbstractOpalShell.java:51)
    3 frames
  16. Java RT
    Thread.run
    1. java.lang.Thread.run(Thread.java:619)
    1 frame