org.mozilla.javascript.WrappedException: Wrapped org.obiba.magma.NoSuchVariableException: No such variable 'Participant.Interview.status' in collection 'Participants' (JAVASCRIPT_FILTER_SCRIPT#1)

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

    Trying to export data by clicking "data" button under "Administration", this leads to internal error. The error information: ERROR - apache.wicket.RequestCycle - Wrapped org.obiba.magma.NoSuchVariableException: No such variable 'Participant.Interview.status' in collection 'Participants' (JAVASCRIPT_FILTER_SCRIPT#1) org.mozilla.javascript.WrappedException: Wrapped org.obiba.magma.NoSuchVariableException: No such variable 'Participant.Interview.status' in collection 'Participants' (JAVASCRIPT_FILTER_SCRIPT#1) at org.mozilla.javascript.Context.throwAsScriptRuntimeEx(Context.java:1773) at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:183) at org.mozilla.javascript.FunctionObject.call(FunctionObject.java:413) at org.mozilla.javascript.optimizer.OptRuntime.callName(OptRuntime.java:97) at org.mozilla.javascript.gen.c787._c0(JAVASCRIPT_FILTER_SCRIPT:1) at org.mozilla.javascript.gen.c787.call(JAVASCRIPT_FILTER_SCRIPT) at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:398) at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3065) at org.mozilla.javascript.gen.c787.call(JAVASCRIPT_FILTER_SCRIPT) at org.mozilla.javascript.gen.c787.exec(JAVASCRIPT_FILTER_SCRIPT) 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.filter.JavaScriptFilter.runFilter(JavaScriptFilter.java:49) at org.obiba.magma.filter.JavaScriptFilter.runFilter(JavaScriptFilter.java:12) at org.obiba.magma.filter.AbstractFilter.updateStateEnvelope(AbstractFilter.java:33) at org.obiba.magma.filter.AbstractFilter.doIt(AbstractFilter.java:27) at org.obiba.magma.filter.CollectionFilterChain.filter(CollectionFilterChain.java:32) at org.obiba.magma.filter.FilteredValueTable$1.apply(FilteredValueTable.java:44) at org.obiba.magma.filter.FilteredValueTable$1.apply(FilteredValueTable.java:41) at com.google.common.collect.Iterators$7.computeNext(Iterators.java:603) at com.google.common.collect.AbstractIterator.tryToComputeNext(AbstractIterator.java:135) at com.google.common.collect.AbstractIterator.hasNext(AbstractIterator.java:130) at org.obiba.onyx.engine.variable.export.OnyxDataPurge.getParticipantsToPurge(OnyxDataPurge.java:57) at WICKET_org.obiba.onyx.engine.variable.export.OnyxDataPurge$$FastClassByCGLIB$$7262acdc.invoke(<generated>) at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149) at org.apache.wicket.proxy.LazyInitProxyFactory$CGLibInterceptor.intercept(LazyInitProxyFactory.java:319) at WICKET_org.obiba.onyx.engine.variable.export.OnyxDataPurge$$EnhancerByCGLIB$$7502752f.getParticipantsToPurge(<generated>) at org.obiba.onyx.wicket.model.OnyxDataPurgeModel.load(OnyxDataPurgeModel.java:47) at org.obiba.onyx.wicket.model.OnyxDataPurgeModel.<init>(OnyxDataPurgeModel.java:42) at org.obiba.onyx.webapp.administration.panel.PurgeDialogPanel$ConfirmationFragment.<init>(PurgeDialogPanel.java:91) at org.obiba.onyx.webapp.administration.panel.PurgeDialogPanel.<init>(PurgeDialogPanel.java:39) at org.obiba.onyx.webapp.administration.panel.PurgeDialog.<init>(PurgeDialog.java:76) at org.obiba.onyx.webapp.administration.panel.DataManagementPanel.<init>(DataManagementPanel.java:49) at org.obiba.onyx.webapp.administration.page.AdministrationPage$2.onClick(AdministrationPage.java:61) at org.apache.wicket.ajax.markup.html.AjaxLink$1.onEvent(AjaxLink.java:68) at org.apache.wicket.ajax.AjaxEventBehavior.respond(AjaxEventBehavior.java:177) at org.apache.wicket.ajax.AbstractDefaultAjaxBehavior.onRequest(AbstractDefaultAjaxBehavior.java:299) at org.apache.wicket.request.target.component.listener.BehaviorRequestTarget.processEvents(BehaviorRequestTarget.java:119) at org.apache.wicket.request.AbstractRequestCycleProcessor.processEvents(AbstractRequestCycleProcessor.java:92) at org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1250) at org.apache.wicket.RequestCycle.step(RequestCycle.java:1329) at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1428) at org.apache.wicket.RequestCycle.request(RequestCycle.java:545) at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:468) at org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:301) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:198) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293) at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:859) at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:574) at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1527) at java.lang.Thread.run(Unknown Source) Caused by: org.obiba.magma.NoSuchVariableException: No such variable 'Participant.Interview.status' in collection 'Participants' at org.obiba.magma.support.AbstractValueTable.getVariableValueSource(AbstractValueTable.java:108) at org.obiba.magma.support.MagmaEngineReferenceResolver.resolveSource(MagmaEngineReferenceResolver.java:52) at org.obiba.magma.js.methods.GlobalMethods.valueOf(GlobalMethods.java:59) 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) ... 61 more

    JIRA | 7 years ago
    org.mozilla.javascript.WrappedException: Wrapped org.obiba.magma.NoSuchVariableException: No such variable 'Participant.Interview.status' in collection 'Participants' (JAVASCRIPT_FILTER_SCRIPT#1)

    Root Cause Analysis

    1. org.obiba.magma.NoSuchVariableException

      No such variable 'Participant.Interview.status' in collection 'Participants'

      at org.obiba.magma.support.AbstractValueTable.getVariableValueSource()
    2. org.obiba.magma
      GlobalMethods.valueOf
      1. org.obiba.magma.support.AbstractValueTable.getVariableValueSource(AbstractValueTable.java:108)
      2. org.obiba.magma.support.MagmaEngineReferenceResolver.resolveSource(MagmaEngineReferenceResolver.java:52)
      3. org.obiba.magma.js.methods.GlobalMethods.valueOf(GlobalMethods.java:59)
      3 frames
    3. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      4. java.lang.reflect.Method.invoke(Unknown Source)
      4 frames
    4. Rhino
      OptRuntime.callName
      1. org.mozilla.javascript.MemberBox.invoke(MemberBox.java:161)
      2. org.mozilla.javascript.FunctionObject.call(FunctionObject.java:413)
      3. org.mozilla.javascript.optimizer.OptRuntime.callName(OptRuntime.java:97)
      3 frames
    5. org.mozilla.javascript
      c787.call
      1. org.mozilla.javascript.gen.c787._c0(JAVASCRIPT_FILTER_SCRIPT:1)
      2. org.mozilla.javascript.gen.c787.call(JAVASCRIPT_FILTER_SCRIPT)
      2 frames
    6. Rhino
      ScriptRuntime.doTopCall
      1. org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:398)
      2. org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3065)
      2 frames
    7. org.mozilla.javascript
      c787.exec
      1. org.mozilla.javascript.gen.c787.call(JAVASCRIPT_FILTER_SCRIPT)
      2. org.mozilla.javascript.gen.c787.exec(JAVASCRIPT_FILTER_SCRIPT)
      2 frames
    8. org.obiba.magma
      JavascriptValueSource$1.run
      1. org.obiba.magma.js.JavascriptValueSource$1.run(JavascriptValueSource.java:68)
      1 frame
    9. Rhino
      ContextFactory.call
      1. org.mozilla.javascript.Context.call(Context.java:515)
      2. org.mozilla.javascript.ContextFactory.call(ContextFactory.java:507)
      2 frames
    10. org.obiba.magma
      FilteredValueTable$1.apply
      1. org.obiba.magma.js.JavascriptValueSource.getValue(JavascriptValueSource.java:60)
      2. org.obiba.magma.filter.JavaScriptFilter.runFilter(JavaScriptFilter.java:49)
      3. org.obiba.magma.filter.JavaScriptFilter.runFilter(JavaScriptFilter.java:12)
      4. org.obiba.magma.filter.AbstractFilter.updateStateEnvelope(AbstractFilter.java:33)
      5. org.obiba.magma.filter.AbstractFilter.doIt(AbstractFilter.java:27)
      6. org.obiba.magma.filter.CollectionFilterChain.filter(CollectionFilterChain.java:32)
      7. org.obiba.magma.filter.FilteredValueTable$1.apply(FilteredValueTable.java:44)
      8. org.obiba.magma.filter.FilteredValueTable$1.apply(FilteredValueTable.java:41)
      8 frames
    11. Guava
      AbstractIterator.hasNext
      1. com.google.common.collect.Iterators$7.computeNext(Iterators.java:603)
      2. com.google.common.collect.AbstractIterator.tryToComputeNext(AbstractIterator.java:135)
      3. com.google.common.collect.AbstractIterator.hasNext(AbstractIterator.java:130)
      3 frames
    12. org.obiba.onyx
      OnyxDataPurge.getParticipantsToPurge
      1. org.obiba.onyx.engine.variable.export.OnyxDataPurge.getParticipantsToPurge(OnyxDataPurge.java:57)
      1 frame
    13. WICKET_org.obiba.onyx
      OnyxDataPurge$$FastClassByCGLIB$$7262acdc.invoke
      1. WICKET_org.obiba.onyx.engine.variable.export.OnyxDataPurge$$FastClassByCGLIB$$7262acdc.invoke(<generated>)
      1 frame
    14. IDEA
      MethodProxy.invoke
      1. net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
      1 frame
    15. Wicket IoC common code
      LazyInitProxyFactory$CGLibInterceptor.intercept
      1. org.apache.wicket.proxy.LazyInitProxyFactory$CGLibInterceptor.intercept(LazyInitProxyFactory.java:319)
      1 frame
    16. WICKET_org.obiba.onyx
      OnyxDataPurge$$EnhancerByCGLIB$$7502752f.getParticipantsToPurge
      1. WICKET_org.obiba.onyx.engine.variable.export.OnyxDataPurge$$EnhancerByCGLIB$$7502752f.getParticipantsToPurge(<generated>)
      1 frame
    17. org.obiba.onyx
      AdministrationPage$2.onClick
      1. org.obiba.onyx.wicket.model.OnyxDataPurgeModel.load(OnyxDataPurgeModel.java:47)
      2. org.obiba.onyx.wicket.model.OnyxDataPurgeModel.<init>(OnyxDataPurgeModel.java:42)
      3. org.obiba.onyx.webapp.administration.panel.PurgeDialogPanel$ConfirmationFragment.<init>(PurgeDialogPanel.java:91)
      4. org.obiba.onyx.webapp.administration.panel.PurgeDialogPanel.<init>(PurgeDialogPanel.java:39)
      5. org.obiba.onyx.webapp.administration.panel.PurgeDialog.<init>(PurgeDialog.java:76)
      6. org.obiba.onyx.webapp.administration.panel.DataManagementPanel.<init>(DataManagementPanel.java:49)
      7. org.obiba.onyx.webapp.administration.page.AdministrationPage$2.onClick(AdministrationPage.java:61)
      7 frames
    18. Wicket Core
      AbstractDefaultAjaxBehavior.onRequest
      1. org.apache.wicket.ajax.markup.html.AjaxLink$1.onEvent(AjaxLink.java:68)
      2. org.apache.wicket.ajax.AjaxEventBehavior.respond(AjaxEventBehavior.java:177)
      3. org.apache.wicket.ajax.AbstractDefaultAjaxBehavior.onRequest(AbstractDefaultAjaxBehavior.java:299)
      3 frames
    19. org.apache.wicket
      BehaviorRequestTarget.processEvents
      1. org.apache.wicket.request.target.component.listener.BehaviorRequestTarget.processEvents(BehaviorRequestTarget.java:119)
      1 frame
    20. Wicket Request
      AbstractRequestCycleProcessor.processEvents
      1. org.apache.wicket.request.AbstractRequestCycleProcessor.processEvents(AbstractRequestCycleProcessor.java:92)
      1 frame
    21. Wicket Core
      WicketFilter.doFilter
      1. org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1250)
      2. org.apache.wicket.RequestCycle.step(RequestCycle.java:1329)
      3. org.apache.wicket.RequestCycle.steps(RequestCycle.java:1428)
      4. org.apache.wicket.RequestCycle.request(RequestCycle.java:545)
      5. org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:468)
      6. org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:301)
      6 frames
    22. Glassfish Core
      ApplicationFilterChain.doFilter
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      2 frames
    23. Hibernate
      OpenSessionInViewFilter.doFilterInternal
      1. org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:198)
      1 frame
    24. Spring
      OncePerRequestFilter.doFilter
      1. org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
      1 frame
    25. Glassfish Core
      CoyoteAdapter.service
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      3. org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
      4. org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
      5. org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
      6. org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
      7. org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
      8. org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
      8 frames
    26. Grizzly HTTP
      AprEndpoint$Worker.run
      1. org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:859)
      2. org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:574)
      3. org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1527)
      3 frames
    27. Java RT
      Thread.run
      1. java.lang.Thread.run(Unknown Source)
      1 frame