The requested scope session has not been enabled. Type:Expression Before session variables can be used, the session state management system must be enabled using the cfapplication tag.

26 views
Skip to first unread message

John Sieber

unread,
Jul 21, 2020, 7:36:34 PM7/21/20
to Slatwall Commerce

I'm attempting to use a Mura WebService and REST API but I get the following error from Slatwall.

The requested scope session has not been enabled.
Type:Expression
Before session variables can be used, the session state management system must be enabled using the cfapplication tag.

The error is coming from the hasSessionValue function in HibachiScope.cfc

This is on a current Mura 7.1 install but with an older version of Slatwall running 4.3.023.

This error only occurs when I try to use the Mura REST endpoint. Session management seems to be enabled, so I'm not sure why this error is occurring? Anyone else running into this with their Mura/Slatwall instances?

Sumit Verma

unread,
Jul 21, 2020, 10:43:12 PM7/21/20
to SlatwallEcommerce
John,

I have not seen that error before. Might be related to mura. Can you please post the stack trace?

Thanks,
Sumit


Sumit Verma
Partner / Vice President | ten24, LLC
office: 877.886.5806 x 103 | mobile: 617.290.8214
www.ten24web.com | www.linkedin.com/in/sverma | twitter: blogonria


--
You received this message because you are subscribed to the Google Groups "Slatwall Commerce" group.
To unsubscribe from this group and stop receiving emails from it, send an email to slatwallecomme...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/slatwallecommerce/64f2ae8d-0784-498f-9f9d-1c3a6d80efebn%40googlegroups.com.

John Sieber

unread,
Jul 22, 2020, 12:41:23 AM7/22/20
to Slatwall Commerce
Hi Sumit,
Thanks for taking a look at this. Hope all is well. Here is the stack trace.

-John

coldfusion.runtime.NoOperScope$ScopeDisabledException: The requested scope session has not been enabled.

    at coldfusion.runtime.NoOperScope.resolveName(NoOperScope.java:36)

    at coldfusion.runtime.Scope.get(Scope.java:60)

    at coldfusion.runtime.Struct.StructKeyExists(Struct.java:769)

    at coldfusion.runtime.CFPage.StructKeyExists(CFPage.java:4954)

    at cfHibachiScope2ecfc1105625875$funcHASSESSIONVALUE.runFunction(C:\Users\john\Documents\GitHub\advc.org\Slatwall\org\Hibachi\HibachiScope.cfc:46)

    at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:493)

    at coldfusion.runtime.UDFMethod$ReturnTypeFilter.invoke(UDFMethod.java:426)

    at coldfusion.runtime.UDFMethod$ArgumentCollectionFilter.invoke(UDFMethod.java:389)

    at coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:95)

    at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:340)

    at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:235)

    at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:654)

    at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:443)

    at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:413)

    at coldfusion.runtime.CfJspPage._invoke(CfJspPage.java:3247)

    at coldfusion.runtime.CfJspPage._invoke(CfJspPage.java:3224)

    at cfHibachiSessionService2ecfc875964027$funcSETPROPPERSESSION.runFunction(C:\Users\john\Documents\GitHub\advc.org\Slatwall\org\Hibachi\HibachiSessionService.cfc:31)

    at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:493)

    at coldfusion.runtime.UDFMethod$ReturnTypeFilter.invoke(UDFMethod.java:426)

    at coldfusion.runtime.UDFMethod$ArgumentCollectionFilter.invoke(UDFMethod.java:389)

    at coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:95)

    at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:340)

    at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:235)

    at coldfusion.runtime.CfJspPage._invokeUDF(CfJspPage.java:3697)

    at coldfusion.runtime.CfJspPage._invokeUDF(CfJspPage.java:3677)

    at coldfusion.runtime.CfJspPage._invoke(CfJspPage.java:3267)

    at coldfusion.runtime.CfJspPage._invoke(CfJspPage.java:3224)

    at cfHibachiSessionService2ecfc696039557$funcSETPROPPERSESSION.runFunction(C:\Users\john\Documents\GitHub\advc.org\Slatwall\model\service\HibachiSessionService.cfc:98)

    at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:493)

    at coldfusion.runtime.UDFMethod$ReturnTypeFilter.invoke(UDFMethod.java:426)

    at coldfusion.runtime.UDFMethod$ArgumentCollectionFilter.invoke(UDFMethod.java:389)

    at coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:95)

    at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:340)

    at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:235)

    at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:654)

    at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:443)

    at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:413)

    at coldfusion.runtime.CfJspPage._invoke(CfJspPage.java:3247)

    at coldfusion.runtime.CfJspPage._invoke(CfJspPage.java:3224)

    at cfHibachi2ecfc95960743$funcSETUPGLOBALREQUEST.runFunction(C:\Users\john\Documents\GitHub\advc.org\Slatwall\org\Hibachi\Hibachi.cfc:209)

    at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:493)

    at coldfusion.runtime.UDFMethod$ReturnTypeFilter.invoke(UDFMethod.java:426)

    at coldfusion.runtime.UDFMethod$ArgumentCollectionFilter.invoke(UDFMethod.java:389)

    at coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:95)

    at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:340)

    at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:235)

    at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:654)

    at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:443)

    at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:413)

    at coldfusion.runtime.CfJspPage._invoke(CfJspPage.java:3247)

    at coldfusion.runtime.CfJspPage._invoke(CfJspPage.java:3224)

    at cfHandler2ecfc1240422237$funcVERIFYSLATWALLREQUEST.runFunction(C:\Users\john\Documents\GitHub\advc.org\Slatwall\integrationServices\mura\model\handler\Handler.cfc:73)

    at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:493)

    at coldfusion.runtime.UDFMethod$ReturnTypeFilter.invoke(UDFMethod.java:426)

    at coldfusion.runtime.UDFMethod$ArgumentCollectionFilter.invoke(UDFMethod.java:389)

    at coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:95)

    at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:340)

    at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:539)

    at coldfusion.runtime.CfJspPage._invokeUDF(CfJspPage.java:3638)

    at coldfusion.runtime.CfJspPage._invokeUDF(CfJspPage.java:3619)

    at cfMuraEventHandler2ecfc1455081016$funcONGLOBALREQUESTSTART.runFunction(C:\Users\john\Documents\GitHub\advc.org\Slatwall\integrationServices\mura\model\handler\MuraEventHandler.cfc:370)

    at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:493)

    at coldfusion.runtime.UDFMethod$ReturnTypeFilter.invoke(UDFMethod.java:426)

    at coldfusion.runtime.UDFMethod$ArgumentCollectionFilter.invoke(UDFMethod.java:389)

    at coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:95)

    at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:340)

    at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:539)

    at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:659)

    at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:468)

    at coldfusion.runtime.CfJspPage._invoke(CfJspPage.java:3169)

    at coldfusion.runtime.CfJspPage._invoke(CfJspPage.java:3144)

    at coldfusion.tagext.lang.InvokeTag.doEndTag(InvokeTag.java:477)

    at cfpluginManager2ecfc2049107919$funcEXECUTESCRIPTS.runFunction(C:\Users\john\Documents\GitHub\advc.org\core\mura\plugin\pluginManager.cfc:1820)

    at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:493)

    at coldfusion.filter.SilentFilter.invoke(SilentFilter.java:47)

    at coldfusion.runtime.UDFMethod$ArgumentCollectionFilter.invoke(UDFMethod.java:389)

    at coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:95)

    at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:340)

    at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:235)

    at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:654)

    at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:443)

    at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:413)

    at coldfusion.runtime.CfJspPage._invoke(CfJspPage.java:3247)

    at coldfusion.runtime.CfJspPage._invoke(CfJspPage.java:3224)

    at cfonRequestStart_include2ecfm1107875196._factor4(C:\Users\john\Documents\GitHub\advc.org\core\appcfc\onRequestStart_include.cfm:270)

    at cfonRequestStart_include2ecfm1107875196.runPage(C:\Users\john\Documents\GitHub\advc.org\core\appcfc\onRequestStart_include.cfm:2)

    at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:254)

    at coldfusion.tagext.lang.IncludeTag.handlePageInvoke(IncludeTag.java:743)

    at coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:573)

    at coldfusion.runtime.CfJspPage._emptyTcfTag(CfJspPage.java:3851)

    at cfonRequestStart_scriptProtect_method2ecfm1728590014$funcONREQUESTSTART.runFunction(C:\Users\john\Documents\GitHub\advc.org\core\appcfc\onRequestStart_scriptProtect_method.cfm:47)

    at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:493)

    at coldfusion.filter.SilentFilter.invoke(SilentFilter.java:47)

    at coldfusion.runtime.UDFMethod$ReturnTypeFilter.invoke(UDFMethod.java:426)

    at coldfusion.runtime.UDFMethod$ArgumentCollectionFilter.invoke(UDFMethod.java:389)

    at coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:95)

    at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:340)

    at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:235)

    at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:654)

    at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:443)

    at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:413)

    at coldfusion.runtime.AppEventInvoker.invoke(AppEventInvoker.java:114)

    at coldfusion.runtime.AppEventInvoker.onRequestStart(AppEventInvoker.java:285)

    at coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:473)

    at coldfusion.filter.RequestMonitorFilter.invoke(RequestMonitorFilter.java:43)

    at coldfusion.filter.MonitoringFilter.invoke(MonitoringFilter.java:40)

    at coldfusion.filter.PathFilter.invoke(PathFilter.java:153)

    at coldfusion.filter.LicenseFilter.invoke(LicenseFilter.java:30)

    at coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:94)

    at coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFilter.java:28)

    at coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:38)

    at coldfusion.filter.NoCacheFilter.invoke(NoCacheFilter.java:60)

    at coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:38)

    at coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22)

    at coldfusion.filter.CachingFilter.invoke(CachingFilter.java:62)

    at coldfusion.CfmServlet.service(CfmServlet.java:223)

    at coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:89)

    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)

    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)

    at coldfusion.monitor.event.MonitoringServletFilter.doFilter(MonitoringServletFilter.java:42)

    at coldfusion.bootstrap.BootstrapFilter.doFilter(BootstrapFilter.java:46)

    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)

    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)

    at coldfusion.inspect.weinre.MobileDeviceDomInspectionFilter.doFilter(MobileDeviceDomInspectionFilter.java:121)

    at coldfusion.bootstrap.BootstrapFilter.doFilter(BootstrapFilter.java:46)

    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)

    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)

    at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)

    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)

    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)

    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:200)

    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)

    at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:493)

    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)

    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:81)

    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)

    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:356)

    at org.apache.coyote.ajp.AjpProcessor.service(AjpProcessor.java:544)

    at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)

    at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:808)

    at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1498)

    at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)

    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)

    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)

    at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)

    at java.lang.Thread.run(Thread.java:745)


Column: 0
ID: CF_CFPAGE
Line: 46
Raw Trace: at cfHibachiScope2ecfc1105625875$funcHASSESSIONVALUE.runFunction(C:\Users\john\Documents\GitHub\advc.org\Slatwall\org\Hibachi\HibachiScope.cfc:46)
Template: C:\Users\john\Documents\GitHub\advc.org\Slatwall\org\Hibachi\HibachiScope.cfc
Type: CFML

Column: 0
ID: CF_TEMPLATEPROXY
Line: 31
Raw Trace: at cfHibachiSessionService2ecfc875964027$funcSETPROPPERSESSION.runFunction(C:\Users\john\Documents\GitHub\advc.org\Slatwall\org\Hibachi\HibachiSessionService.cfc:31)
Template: C:\Users\john\Documents\GitHub\advc.org\Slatwall\org\Hibachi\HibachiSessionService.cfc
Type: CFML

Column: 0
ID: CF_UDFMETHOD
Line: 98
Raw Trace: at cfHibachiSessionService2ecfc696039557$funcSETPROPPERSESSION.runFunction(C:\Users\john\Documents\GitHub\advc.org\Slatwall\model\service\HibachiSessionService.cfc:98)
Template: C:\Users\john\Documents\GitHub\advc.org\Slatwall\model\service\HibachiSessionService.cfc
Type: CFML

Column: 0
ID: CF_TEMPLATEPROXY
Line: 209
Raw Trace: at cfHibachi2ecfc95960743$funcSETUPGLOBALREQUEST.runFunction(C:\Users\john\Documents\GitHub\advc.org\Slatwall\org\Hibachi\Hibachi.cfc:209)
Template: C:\Users\john\Documents\GitHub\advc.org\Slatwall\org\Hibachi\Hibachi.cfc
Type: CFML

Column: 0
ID: CF_TEMPLATEPROXY
Line: 73
Raw Trace: at cfHandler2ecfc1240422237$funcVERIFYSLATWALLREQUEST.runFunction(C:\Users\john\Documents\GitHub\advc.org\Slatwall\integrationServices\mura\model\handler\Handler.cfc:73)
Template: C:\Users\john\Documents\GitHub\advc.org\Slatwall\integrationServices\mura\model\handler\Handler.cfc
Type: CFML

Column: 0
ID: CF_UDFMETHOD
Line: 370
Raw Trace: at cfMuraEventHandler2ecfc1455081016$funcONGLOBALREQUESTSTART.runFunction(C:\Users\john\Documents\GitHub\advc.org\Slatwall\integrationServices\mura\model\handler\MuraEventHandler.cfc:370)
Template: C:\Users\john\Documents\GitHub\advc.org\Slatwall\integrationServices\mura\model\handler\MuraEventHandler.cfc
Type: CFML

Column: 0
ID: CFINVOKE
Line: 1820
Raw Trace: at cfpluginManager2ecfc2049107919$funcEXECUTESCRIPTS.runFunction(C:\Users\john\Documents\GitHub\advc.org\core\mura\plugin\pluginManager.cfc:1820)
Template: C:\Users\john\Documents\GitHub\advc.org\core\mura\plugin\pluginManager.cfc
Type: CFML

Column: 0
ID: CF_TEMPLATEPROXY
Line: 270
Raw Trace: at cfonRequestStart_include2ecfm1107875196._factor4(C:\Users\john\Documents\GitHub\advc.org\core\appcfc\onRequestStart_include.cfm:270)
Template: C:\Users\john\Documents\GitHub\advc.org\core\appcfc\onRequestStart_include.cfm
Type: CFML

Column: 0
ID: CF_ONREQUESTSTART_INCLUDE
Line: 2
Raw Trace: at cfonRequestStart_include2ecfm1107875196.runPage(C:\Users\john\Documents\GitHub\advc.org\core\appcfc\onRequestStart_include.cfm:2)
Template: C:\Users\john\Documents\GitHub\advc.org\core\appcfc\onRequestStart_include.cfm
Type: CFML

Column: 0
ID: CFINCLUDE
Line: 47
Raw Trace: at cfonRequestStart_scriptProtect_method2ecfm1728590014$funcONREQUESTSTART.runFunction(C:\Users\john\Documents\GitHub\advc.org\core\appcfc\onRequestStart_scriptProtect_method.cfm:47)
Template: C:\Users\john\Documents\GitHub\advc.org\core\appcfc\onRequestStart_scriptProtect_method.cfm
Type: CFML

John Sieber

unread,
Jul 22, 2020, 12:50:18 PM7/22/20
to Slatwall Commerce
Requests to the JSON API endpoint all work correctly, ie... /_api/json/v1/

but I'm getting the error above with any attempt to use the REST api, ie... /_api/rest/v1

Could this be an issue with how Mura is defining the session in the header instead of through a cookie?

Sumit Verma

unread,
Jul 22, 2020, 1:22:13 PM7/22/20
to SlatwallEcommerce
My guess would be session management is disabled on the REST endpoint in Mura. 


Sumit Verma
Partner / Vice President | ten24, LLC
office: 877.886.5806 x 103 | mobile: 617.290.8214
www.ten24web.com | www.linkedin.com/in/sverma | twitter: blogonria

John Sieber

unread,
Jul 22, 2020, 1:43:39 PM7/22/20
to Slatwall Commerce
Thanks, Sumit. I think that appears to be the case looking at the code in apiUtility.cfc.

Matt Levine

unread,
Jul 23, 2020, 11:37:55 AM7/23/20
to slatwall...@googlegroups.com
If you use a Mura rest based web service it's truly rest.  There is no session and there are no cookies.  Methods created for use in this context need to use Mura's getSession() when referencing session data.  And that session data is immutable.

Reply all
Reply to author
Forward
0 new messages