Ticket #64 (closed defect: fixed)
Session required for instantiating framework
| Reported by: | Jason | Owned by: | joe.rinehart |
|---|---|---|---|
| Priority: | normal | Milestone: | 2.0 Beta 1 Bugfixes |
| Version: | 2.0.304 | Severity: | major |
| Keywords: | session scope | Cc: |
Description
I wouldn't mind enabling session, but I know that session is not supposed to be required any more, so I'll post this. When running an upgraded M-G 1.x app under Beta 2, I get:
The requested scope session has not been enabled.
Before session variables can be used, the session state management system must be enabled using the CFAPPLICATION tag.
The error occurred in E:\web\inetprivate\wwwroot\ModelGlue?\unity\statebuilder\StateBuilder?.cfc: line 63
So, I checked into StateBuilder?.cfc, line 63 and found that it is, in fact, config'd to *not* require session, by testing against arguments.framework.getUseSession(). So, that line is apparently reading 'true', yet when I add a debug to FrameworkLoader?.cfc, I see see that the framework correctly sets 'false'.
[I added the following as line 40 in FrameworkLoader?.cfc: <cfoutput>#mg.getUseSession()#</cfoutput><cfabort> to get a screen dump saying 'false'.]
Basically, not sure where it's getting reset to true along the way. I can load the framework with sessionmanagement="yes".
Error Message:
Error Occurred While Processing Request The requested scope session has not been enabled. Before session variables can be used, the session state management system must be enabled using the CFAPPLICATION tag. The error occurred in E:\web\inetprivate\wwwroot\ModelGlue?\unity\statebuilder\StateBuilder?.cfc: line 63 Called from E:\web\inetprivate\wwwroot\ModelGlue?\unity\eventrequest\EventRequest?.cfc: line 26 Called from E:\web\inetprivate\wwwroot\ModelGlue?\unity\framework\ModelGlue?.cfc: line 196 Called from E:\web\inetprivate\wwwroot\ModelGlue?\unity\ModelGlue?.cfm: line 46 Called from E:\web\inetprivate\wwwroot\ModelGlue?\ModelGlue?.cfm: line 1 Called from E:\web\inetprivate\wwwroot\gc200X\index.cfm: line 19 61 : 62 : <cfif variables._useSession> 63 : <cfparam name="session._ModelGlue.forwardedRequestLog" default="" /> 64 : </cfif> 65 :
Also, getting a lot of exceptions for ColdSpring?, but don't know whether or not they play a role.
Exceptions:
16:39:09.009 - coldspring.beanDefException - in E:\web\inetprivate\wwwroot\coldspring\beans\BeanDefinition?.cfc : line 168
property requested does not exist for bean: frameworkLoader
16:39:10.010 - coldspring.beanDefException - in E:\web\inetprivate\wwwroot\coldspring\beans\BeanDefinition?.cfc : line 168
property requested does not exist for bean: modelGlue
16:39:10.010 - coldspring.beanDefException - in E:\web\inetprivate\wwwroot\coldspring\beans\BeanDefinition?.cfc : line 168
property requested does not exist for bean: modelGlue
16:39:10.010 - coldspring.beanDefException - in E:\web\inetprivate\wwwroot\coldspring\beans\BeanDefinition?.cfc : line 168
property requested does not exist for bean: modelGlue
16:39:10.010 - coldspring.beanDefException - in E:\web\inetprivate\wwwroot\coldspring\beans\BeanDefinition?.cfc : line 168
property requested does not exist for bean: modelGlue
16:39:10.010 - coldspring.beanDefException - in E:\web\inetprivate\wwwroot\coldspring\beans\BeanDefinition?.cfc : line 168
property requested does not exist for bean: modelGlue
16:39:10.010 - coldspring.beanDefException - in E:\web\inetprivate\wwwroot\coldspring\beans\BeanDefinition?.cfc : line 168
property requested does not exist for bean: modelGlue
16:39:10.010 - coldspring.beanDefException - in E:\web\inetprivate\wwwroot\coldspring\beans\BeanDefinition?.cfc : line 168
property requested does not exist for bean: stateBuilder
16:39:10.010 - coldspring.beanDefException - in E:\web\inetprivate\wwwroot\coldspring\beans\BeanDefinition?.cfc : line 168
property requested does not exist for bean: coldSpringAdapter
16:39:10.010 - coldspring.beanDefException - in E:\web\inetprivate\wwwroot\coldspring\beans\BeanDefinition?.cfc : line 168
property requested does not exist for bean: eventLoader
16:39:11.011 - Expression Exception - in E:\web\inetprivate\wwwroot\ModelGlue?\unity\loader\FrameworkLoader?.cfc : line 35
The requested scope session has not been enabled.
16:39:16.016 - coldspring.beanDefException - in E:\web\inetprivate\wwwroot\coldspring\beans\BeanDefinition?.cfc : line 168
property requested does not exist for bean: ormService
16:39:16.016 - coldspring.beanDefException - in E:\web\inetprivate\wwwroot\coldspring\beans\BeanDefinition?.cfc : line 168
property requested does not exist for bean: reactorConfiguration
16:39:16.016 - coldspring.beanDefException - in E:\web\inetprivate\wwwroot\coldspring\beans\BeanDefinition?.cfc : line 168
property requested does not exist for bean: reactorConfiguration
16:39:35.035 - coldspring.beanDefException - in E:\web\inetprivate\wwwroot\coldspring\beans\BeanDefinition?.cfc : line 168
property requested does not exist for bean: ormController
16:39:35.035 - coldspring.beanDefException - in E:\web\inetprivate\wwwroot\coldspring\beans\BeanDefinition?.cfc : line 168
property requested does not exist for bean: ormController
16:39:36.036 - Expression Exception - in E:\web\inetprivate\wwwroot\ModelGlue?\unity\statebuilder\StateBuilder?.cfc : line 63
The requested scope session has not been enabled.
16:39:36.036 - Expression Exception - in E:\web\inetprivate\wwwroot\ModelGlue?\unity\statebuilder\StateBuilder?.cfc : line 63
The requested scope session has not been enabled.
![(please configure the [header_logo] section in trac.ini)](/ModelGlue.com/trac.cgi/chrome/site/your_project_logo.png)